]>
granicus.if.org Git - python/log
Georg Brandl [Thu, 14 Oct 2010 07:04:07 +0000 (07:04 +0000)]
#9418: first step of moving private string methods to _string module.
Georg Brandl [Thu, 14 Oct 2010 06:59:45 +0000 (06:59 +0000)]
#
1710703 : write zipfile structures also in the case of closing a new, but empty, archive.
Georg Brandl [Thu, 14 Oct 2010 06:48:47 +0000 (06:48 +0000)]
Mention 2to3.
Georg Brandl [Thu, 14 Oct 2010 06:46:08 +0000 (06:46 +0000)]
#6825: small correction to split() docs.
Georg Brandl [Thu, 14 Oct 2010 06:43:22 +0000 (06:43 +0000)]
#10046: small correction to atexit docs.
Georg Brandl [Thu, 14 Oct 2010 06:41:42 +0000 (06:41 +0000)]
#3865: add note about benchmarking with profilers, and move licensing stuff to bottom of document.
Georg Brandl [Thu, 14 Oct 2010 06:35:53 +0000 (06:35 +0000)]
#7642: update to os.system() docs.
Antoine Pitrou [Wed, 13 Oct 2010 23:48:39 +0000 (23:48 +0000)]
Fix (hopefully) occasional failures in test_threaded_import.
`done` could be released multiple times because of concurrent
execution. We convert it to an Event, where calling set()
multiple times is not a problem.
Victor Stinner [Wed, 13 Oct 2010 23:41:57 +0000 (23:41 +0000)]
test_sys: Remove workaround #8611
It looks like it is no more needed: Python 3.2 is slowly able to support
non-ascii paths with an ascii locale.
Victor Stinner [Wed, 13 Oct 2010 23:24:06 +0000 (23:24 +0000)]
Revert r85435 (and r85440): decode command line arguments from utf-8
Python exits with a fatal error if the command line contains an undecodable
argument. PyUnicode_FromString() fails at the first undecodable byte because it
calls the error handler, but error handlers are not ready before Python
initialization.
Alexander Belopolsky [Wed, 13 Oct 2010 22:54:34 +0000 (22:54 +0000)]
Issue 9005: Removed dead code.
Victor Stinner [Wed, 13 Oct 2010 22:36:16 +0000 (22:36 +0000)]
main(): catch PyUnicode_FromString() failure (exit)
Benjamin Peterson [Wed, 13 Oct 2010 22:20:15 +0000 (22:20 +0000)]
put PYTHONIOENCODING in man page
Victor Stinner [Wed, 13 Oct 2010 22:15:06 +0000 (22:15 +0000)]
Issue #9992: On Mac OS X, decode command line arguments from utf-8 instead of
the locale encoding.
Benjamin Peterson [Wed, 13 Oct 2010 22:06:39 +0000 (22:06 +0000)]
constify to appease compiler warnings
Victor Stinner [Wed, 13 Oct 2010 22:02:27 +0000 (22:02 +0000)]
Issue #9992: Remove PYTHONFSENCODING environment variable.
Benjamin Peterson [Wed, 13 Oct 2010 21:59:36 +0000 (21:59 +0000)]
remove obselete import implementation #7287
Antoine Pitrou [Wed, 13 Oct 2010 17:14:16 +0000 (17:14 +0000)]
Protect test_smtpnet against connection failures
Antoine Pitrou [Wed, 13 Oct 2010 17:01:10 +0000 (17:01 +0000)]
Followup to #9437: since LDFLAGS is now appended to LDSHARED in the Makefile,
don't do in configure as well.
Hopefully this will solve a Makefile parsing issue on the FreeBSD buildbots.
Antoine Pitrou [Wed, 13 Oct 2010 16:17:14 +0000 (16:17 +0000)]
Issue #10041: The signature of optional arguments in socket.makefile()
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode. Patch by Kai Zhu.
Michael Foord [Wed, 13 Oct 2010 13:23:20 +0000 (13:23 +0000)]
Ignoring personal settings for Wing 3 project file
Michael Foord [Wed, 13 Oct 2010 13:15:02 +0000 (13:15 +0000)]
Adding Wing IDE version 4 project file
Antoine Pitrou [Wed, 13 Oct 2010 12:46:13 +0000 (12:46 +0000)]
Define a "session_id_context" at context creation. This is recommended
for the OpenSSL server-side session cache.
Antoine Pitrou [Wed, 13 Oct 2010 12:06:43 +0000 (12:06 +0000)]
Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo buildbot
Antoine Pitrou [Wed, 13 Oct 2010 11:51:05 +0000 (11:51 +0000)]
Print out socket errors in HTTPS server thread
Antoine Pitrou [Wed, 13 Oct 2010 11:38:36 +0000 (11:38 +0000)]
Let test_ssl fail gracefully if ssl support is not available
Antoine Pitrou [Wed, 13 Oct 2010 11:27:09 +0000 (11:27 +0000)]
Run a simple HTTPS server when Lib/test/ssl_servers.py is run as __main__
Victor Stinner [Wed, 13 Oct 2010 10:48:55 +0000 (10:48 +0000)]
ceval.c: catch recursion error on _PyUnicode_AsString(co->co_filename)
Antoine Pitrou [Wed, 13 Oct 2010 10:45:16 +0000 (10:45 +0000)]
Typo. It is rather obvious that this code isn't tested :/
Antoine Pitrou [Wed, 13 Oct 2010 10:39:21 +0000 (10:39 +0000)]
Fix grammar
Antoine Pitrou [Wed, 13 Oct 2010 10:36:15 +0000 (10:36 +0000)]
Issue #9003: http.client.HTTPSConnection, urllib.request.HTTPSHandler and
urllib.request.urlopen now take optional arguments to allow for
server certificate checking, as recommended in public uses of HTTPS.
Gregory P. Smith [Wed, 13 Oct 2010 03:53:21 +0000 (03:53 +0000)]
Fix compile on NetBSD 5.0 (or anything else using an old 0.9.9-dev OpenSSL).
Gregory P. Smith [Wed, 13 Oct 2010 03:39:47 +0000 (03:39 +0000)]
fix compliation on NetBSD
Brian Curtin [Wed, 13 Oct 2010 02:56:26 +0000 (02:56 +0000)]
Implement #7944. Use `with` throughout the test suite.
Brian Curtin [Wed, 13 Oct 2010 02:40:26 +0000 (02:40 +0000)]
Implement #7944. Use `with` throughout the test suite.
Brian Curtin [Wed, 13 Oct 2010 02:29:46 +0000 (02:29 +0000)]
Implement #7944. Use `with` throughout the test suite.
Brian Curtin [Wed, 13 Oct 2010 02:21:42 +0000 (02:21 +0000)]
Implement #7944. Use `with` throughout the test suite.
Benjamin Peterson [Wed, 13 Oct 2010 01:04:36 +0000 (01:04 +0000)]
account for the module __dict__ being cleared when its module is
Benjamin Peterson [Tue, 12 Oct 2010 23:07:13 +0000 (23:07 +0000)]
fix spelling #10078
Benjamin Peterson [Tue, 12 Oct 2010 22:57:59 +0000 (22:57 +0000)]
prefer clearing global objects to obscure module.__dict__ bugs #10068
Victor Stinner [Tue, 12 Oct 2010 22:42:37 +0000 (22:42 +0000)]
NEWS: Move #6612 to Library section
Victor Stinner [Tue, 12 Oct 2010 22:26:08 +0000 (22:26 +0000)]
#6612: add the author of the patch (W. Trevor King)
Victor Stinner [Tue, 12 Oct 2010 22:23:23 +0000 (22:23 +0000)]
Issue #6612: Fix site and sysconfig to catch os.getcwd() error, eg. if the
current directory was deleted.
Antoine Pitrou [Tue, 12 Oct 2010 21:07:20 +0000 (21:07 +0000)]
Update whatsnew about pickle optimizations
Antoine Pitrou [Tue, 12 Oct 2010 20:51:21 +0000 (20:51 +0000)]
Issue #3873: Speed up unpickling from file objects which have a peek()
method.
Antoine Pitrou [Tue, 12 Oct 2010 20:09:02 +0000 (20:09 +0000)]
Issue #10075: Add a session_stats() method to SSLContext objects.
Antoine Pitrou [Tue, 12 Oct 2010 16:44:39 +0000 (16:44 +0000)]
Make comment about SSL support more accurate
Georg Brandl [Tue, 12 Oct 2010 12:38:48 +0000 (12:38 +0000)]
Post-release bumps.
Martin v. Löwis [Mon, 11 Oct 2010 22:50:33 +0000 (22:50 +0000)]
Add entry for r85371.
Martin v. Löwis [Mon, 11 Oct 2010 22:42:28 +0000 (22:42 +0000)]
Upgrade to Unicode 6.0.0.
makeunicodedata.py: download all data files from unicode.org,
switch to extracting Unihan data from zip file.
Read linebreakprops and derivednormalizationprops even for
old versions, even though they are not used in delta records.
test:unicode.py: U+11000 is now assigned, use U+14000 instead.
Martin v. Löwis [Mon, 11 Oct 2010 22:38:01 +0000 (22:38 +0000)]
Add 3.2b1.
Vinay Sajip [Sun, 10 Oct 2010 20:36:04 +0000 (20:36 +0000)]
Issue #9948: logging: fixed problem of losing filename case information.
Georg Brandl [Sun, 10 Oct 2010 13:11:21 +0000 (13:11 +0000)]
Tag release 3.2a3.
Georg Brandl [Sun, 10 Oct 2010 09:49:21 +0000 (09:49 +0000)]
Rewrap.
Georg Brandl [Sun, 10 Oct 2010 09:40:34 +0000 (09:40 +0000)]
Bump to 3.2a3.
Georg Brandl [Sun, 10 Oct 2010 09:37:51 +0000 (09:37 +0000)]
Update pydoc topics.
Antoine Pitrou [Sun, 10 Oct 2010 09:37:12 +0000 (09:37 +0000)]
Issue #9437: Fix building C extensions with non-default LDFLAGS.
Antoine Pitrou [Sun, 10 Oct 2010 08:37:22 +0000 (08:37 +0000)]
Issue #10062: Allow building on platforms which do not have sem_timedwait.
Antoine Pitrou [Sun, 10 Oct 2010 08:10:16 +0000 (08:10 +0000)]
Some platforms provide uintptr_t in inttypes.h. Patch by
Akira Kitada.
Senthil Kumaran [Sun, 10 Oct 2010 06:13:49 +0000 (06:13 +0000)]
Fix Issue7285 - multiprocessing module, example code error.
Raymond Hettinger [Sun, 10 Oct 2010 05:54:39 +0000 (05:54 +0000)]
Issue #10029: Fix sample code in the docs for zip().
Antoine Pitrou [Sat, 9 Oct 2010 15:24:28 +0000 (15:24 +0000)]
Issue #10055: Make json C89-compliant in UCS4 mode.
Vinay Sajip [Sat, 9 Oct 2010 11:24:34 +0000 (11:24 +0000)]
Removed duplicated method.
Victor Stinner [Sat, 9 Oct 2010 10:34:37 +0000 (10:34 +0000)]
Document that the 'strict' error handler is used to encode/decode filenames on
Windows
Victor Stinner [Sat, 9 Oct 2010 10:12:11 +0000 (10:12 +0000)]
Issue #9738: Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename()
encodings
Benjamin Peterson [Sat, 9 Oct 2010 01:58:37 +0000 (01:58 +0000)]
remove author names from prose
Antoine Pitrou [Fri, 8 Oct 2010 23:06:24 +0000 (23:06 +0000)]
Issue #1051: Add a script (Lib/test/make_ssl_certs.py) to generate the
custom certificate and private key files used by SSL-related certs.
R. David Murray [Fri, 8 Oct 2010 21:37:39 +0000 (21:37 +0000)]
What's new entry for email 5.1.
Antoine Pitrou [Fri, 8 Oct 2010 18:46:09 +0000 (18:46 +0000)]
Add some debug output in verbose mode
Antoine Pitrou [Fri, 8 Oct 2010 18:05:42 +0000 (18:05 +0000)]
Better Python spawning primitives in test.script_helper, for
easier writing of unit tests and better error reporting.
Antoine Pitrou [Fri, 8 Oct 2010 16:46:17 +0000 (16:46 +0000)]
Update what's new
R. David Murray [Fri, 8 Oct 2010 15:55:28 +0000 (15:55 +0000)]
#4661: add bytes parsing and generation to email (email version bump to 5.1.0)
The work on this is not 100% complete, but everything is present to
allow real-world testing of the code. The only remaining major todo
item is to (hopefully!) enhance the handling of non-ASCII bytes in headers
converted to unicode by RFC2047 encoding them rather than replacing them with
'?'s.
Antoine Pitrou [Fri, 8 Oct 2010 10:37:08 +0000 (10:37 +0000)]
Issue #1589: Add ssl.match_hostname(), to help implement server identity
verification for higher-level protocols.
Hirokazu Yamamoto [Fri, 8 Oct 2010 08:46:30 +0000 (08:46 +0000)]
Follows Python/fileutils.c addition.
Hirokazu Yamamoto [Fri, 8 Oct 2010 08:38:15 +0000 (08:38 +0000)]
Issue #9978: Wait until subprocess completes initialization. (Win32KillTests in test_os)
Raymond Hettinger [Fri, 8 Oct 2010 00:47:45 +0000 (00:47 +0000)]
Fix handling on negative numbers in ast.literal_eval().
Victor Stinner [Thu, 7 Oct 2010 23:29:18 +0000 (23:29 +0000)]
copy_absolute() keeps the relative path on _Py_wgetcwd() failure
.. instead of raising a fatal error. Even if the current directory was deleted,
use relative paths may still work (eg. run Python with "../python").
Victor Stinner [Thu, 7 Oct 2010 22:53:43 +0000 (22:53 +0000)]
fileutils.c: document which encodings are used
Victor Stinner [Thu, 7 Oct 2010 22:42:51 +0000 (22:42 +0000)]
copy_absolute() raises a fatal error on _Py_wgetcwd() failure
Victor Stinner [Thu, 7 Oct 2010 22:29:53 +0000 (22:29 +0000)]
_Py_wrealpath() requires the size of the output buffer
Victor Stinner [Thu, 7 Oct 2010 22:23:10 +0000 (22:23 +0000)]
_Py_stat() and _Py_fopen(): avoid PyUnicode_AsWideCharString() on Windows
On Windows, Py_UNICODE is wchar_t, so we can avoid the expensive Py_UNICODE*
=> wchar_t* conversion.
Victor Stinner [Thu, 7 Oct 2010 22:09:40 +0000 (22:09 +0000)]
Fix fileutils for Windows
* Don't define _Py_wstat() on Windows, Windows has its own _wstat() function
with a different API (the stat buffer has another type)
* Include windows.h
Victor Stinner [Thu, 7 Oct 2010 21:55:44 +0000 (21:55 +0000)]
Ooops, fileutils.c contains twice the same code
I suppose that I reapplied my local patch creating Python/fileutils.c whereas
the file already existed.
Victor Stinner [Thu, 7 Oct 2010 21:45:39 +0000 (21:45 +0000)]
Create fileutils.c/.h
* _Py_fopen() and _Py_stat() come from Python/import.c
* (_Py)_wrealpath() comes from Python/sysmodule.c
* _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c
* (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c
Victor Stinner [Thu, 7 Oct 2010 11:06:49 +0000 (11:06 +0000)]
_wrealpath() and _Py_wreadlink() support surrogates (PEP 383)
Use _Py_wchar2char() to support surrogate characters in the input path.
Brian Curtin [Thu, 7 Oct 2010 01:12:19 +0000 (01:12 +0000)]
Fix #8584. Fix the skipping of a number of tests due to incorrect importing.
This undoes a previous attempt to fix some of the skips. Value and copy
come from sharedctypes rather than plain ctypes, and the test skipping is
then done at the class level rather than test-by-test.
There are zero skipped tests after the fix.
Victor Stinner [Thu, 7 Oct 2010 01:02:42 +0000 (01:02 +0000)]
PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the
prototype for the new function PyUnicode_AsWideCharString().
Victor Stinner [Thu, 7 Oct 2010 01:00:52 +0000 (01:00 +0000)]
time: fix gcc warning
* Create format_arg variable to use the right types
* Strip trailing spaces
Victor Stinner [Wed, 6 Oct 2010 23:24:57 +0000 (23:24 +0000)]
Rewrite RunMainFromImporter()
* fix argv0 reference counter if PyList_SetItem() fails
* don't use complex if conditions, but a simple indentation and "goto error"
* simplify error handling (remove Py_XDECREF(importer) from the error label)
* don't set sys_path to NULL (it's useless, sys_path is a borrowed reference
and sys_path is not a static variable)
* try to write only one instruction per line for better readability
Victor Stinner [Wed, 6 Oct 2010 22:44:06 +0000 (22:44 +0000)]
Create a subfunction for PySys_SetArgvEx()
Create sys_update_path() static function. Do nothing if argc==0.
Antoine Pitrou [Wed, 6 Oct 2010 21:21:18 +0000 (21:21 +0000)]
Issue #9759: GzipFile now raises ValueError when an operation is attempted
after the file is closed. Patch by Jeffrey Finkelstein.
Antoine Pitrou [Wed, 6 Oct 2010 21:13:56 +0000 (21:13 +0000)]
More new things in what's new
Antoine Pitrou [Wed, 6 Oct 2010 18:38:22 +0000 (18:38 +0000)]
FakeSocket is (supposed to be) gone in 3.x
Brian Quinlan [Wed, 6 Oct 2010 13:05:45 +0000 (13:05 +0000)]
Fixes 9903: test_concurrent_futures writes on stderr
Georg Brandl [Wed, 6 Oct 2010 12:29:49 +0000 (12:29 +0000)]
Update to Sphin 1.0.4.
Georg Brandl [Wed, 6 Oct 2010 10:35:24 +0000 (10:35 +0000)]
Fix the suspicious builder not to write CRLF, update suspicious file and add instructions to Makefile.
Georg Brandl [Wed, 6 Oct 2010 10:26:05 +0000 (10:26 +0000)]
Fix errors found by "make suspicious".
Georg Brandl [Wed, 6 Oct 2010 10:14:08 +0000 (10:14 +0000)]
Fix spelling and markup.
Georg Brandl [Wed, 6 Oct 2010 10:11:56 +0000 (10:11 +0000)]
Migrate to Sphinx 1.0 C language constructs.
Georg Brandl [Wed, 6 Oct 2010 08:52:48 +0000 (08:52 +0000)]
Copyedit of os.symlink() docs.