]>
granicus.if.org Git - python/log
Victor Stinner [Sat, 21 May 2011 00:13:22 +0000 (02:13 +0200)]
Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
Benjamin Peterson [Fri, 20 May 2011 16:49:06 +0000 (11:49 -0500)]
this should actually be an IOError
Benjamin Peterson [Fri, 20 May 2011 16:41:13 +0000 (11:41 -0500)]
add example for not using access
Ezio Melotti [Fri, 20 May 2011 12:04:38 +0000 (15:04 +0300)]
#12072: add missing parenthesis in the doc. Patch by Sandro Tosi.
Raymond Hettinger [Wed, 18 May 2011 22:28:50 +0000 (17:28 -0500)]
Minor code cleanup.
Benjamin Peterson [Tue, 17 May 2011 23:32:26 +0000 (18:32 -0500)]
merge heads
Benjamin Peterson [Tue, 17 May 2011 23:31:20 +0000 (18:31 -0500)]
stop using the old brain-dead interface for providing attributes/methods
This closes #12099.
Victor Stinner [Tue, 17 May 2011 13:49:56 +0000 (15:49 +0200)]
Issue #12057: Fix .hgeol and test_multibytecodec_support for the conversion of
the CJK encoding testcase BLOB into multiple text files.
Ronald Oussoren [Tue, 17 May 2011 13:13:46 +0000 (15:13 +0200)]
(backport) Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5
Without this patch IDLE will crash reliably on OSX when Tkinter
is linked to TkCocoa 8.5.x.
To reproduce:
* Create a new file (script.py) with the following two lines:
x = raw_input('prompt: ')
print x
* Save the script
* Run the script using the F5 keyboard shortcut
(running from the menu works fine)
The patch is a fairly crude hack, but we haven't found a better
workaround for this Tk bug yet.
Ronald Oussoren [Tue, 17 May 2011 11:22:30 +0000 (13:22 +0200)]
(backport)Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8"
On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale
while "en_US.UTF8" is not. As the former works on Linux as well it is better
to normalize to that value.
Ezio Melotti [Tue, 17 May 2011 02:39:22 +0000 (05:39 +0300)]
#12092: backport rephrasing of a paragraph in the tutorial.
Ezio Melotti [Tue, 17 May 2011 02:17:35 +0000 (05:17 +0300)]
#12093: fix typo in struct doc. Patch by Sandro Tosi.
Senthil Kumaran [Tue, 17 May 2011 02:12:18 +0000 (10:12 +0800)]
Fix closes issue #12088 - fixes the tarfile.extractall issue when the
symlinks/hardlink was broken. It handles now in a graceful manner (No exception
is raised, behavior similar GNU tar).
Victor Stinner [Mon, 16 May 2011 23:18:33 +0000 (01:18 +0200)]
Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore
Victor Stinner [Mon, 16 May 2011 15:16:18 +0000 (17:16 +0200)]
Issue #12057: Convert CJK encoding testcase BLOB into multiple text files
Ronald Oussoren [Sun, 15 May 2011 14:51:10 +0000 (16:51 +0200)]
NEWS entry for fix of issue #9516
Ronald Oussoren [Sun, 15 May 2011 14:44:27 +0000 (16:44 +0200)]
Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
Georg Brandl [Sun, 15 May 2011 06:50:32 +0000 (08:50 +0200)]
Port #6498 fix: fix several misspellings of "SystemExit" as "SystemError".
Gregory P. Smith [Sat, 14 May 2011 22:07:53 +0000 (15:07 -0700)]
Fixes Issue #12059: Properly handle missing hash functions even when
the expected builtin modules are not present.
This includes a unittest for __get_builtin_constructor() in the face
of such an error.
Nadeem Vawda [Sat, 14 May 2011 12:29:07 +0000 (14:29 +0200)]
Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
Ezio Melotti [Sat, 14 May 2011 06:17:52 +0000 (09:17 +0300)]
#11979: improve wording and markup in sockets howto. Patch by Xavier Morel.
Ezio Melotti [Sat, 14 May 2011 05:19:43 +0000 (08:19 +0300)]
#7960: fix docstrings for captured_output and captured_stdout.
Ezio Melotti [Sat, 14 May 2011 03:24:53 +0000 (06:24 +0300)]
#5723: Improve json tests to be executed with and without accelerations.
Ezio Melotti [Sat, 14 May 2011 03:02:25 +0000 (06:02 +0300)]
Change import_fresh_module to work with packages.
Kurt B. Kaiser [Fri, 13 May 2011 01:18:47 +0000 (21:18 -0400)]
Issue #11896: Save on Close failed despite selecting "Yes" in dialog.
Backport 70055:
35ed0efd7dd3
Antoine Pitrou [Thu, 12 May 2011 22:31:52 +0000 (00:31 +0200)]
Issue #12062: In the `io` module, fix a flushing bug when doing a certain
type of I/O sequence on a file opened in read+write mode (namely: reading,
seeking a bit forward, writing, then seeking before the previous write but
still within buffered data, and writing again).
Georg Brandl [Thu, 12 May 2011 05:47:06 +0000 (07:47 +0200)]
#12061: remove duplicate glossary entry.
Ezio Melotti [Tue, 10 May 2011 21:55:35 +0000 (00:55 +0300)]
#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.
Antoine Pitrou [Tue, 10 May 2011 17:16:03 +0000 (19:16 +0200)]
Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection. Patch by Daniel Evers.
Raymond Hettinger [Tue, 10 May 2011 07:39:02 +0000 (00:39 -0700)]
Issue 12047: Expand the style guide.
Victor Stinner [Mon, 9 May 2011 23:52:03 +0000 (01:52 +0200)]
(Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.
Optimize also ssl.get_protocol_name(): speed does matter!
Victor Stinner [Mon, 9 May 2011 22:22:59 +0000 (00:22 +0200)]
(Merge 3.1) Issue #1195: Fix input() if it is interrupted by CTRL+d and then
CTRL+c, clear the end-of-file indicator after CTRL+d.
Ezio Melotti [Mon, 9 May 2011 15:32:18 +0000 (18:32 +0300)]
Some more tests were incorrectly marked as C specific.
Martin v. Löwis [Mon, 9 May 2011 06:19:13 +0000 (08:19 +0200)]
Issue 11164: Remove obsolete allnodes test from minidom test.
Patch by Arfrever Frehtes Taifersar Arahesis.
Ezio Melotti [Mon, 9 May 2011 03:54:53 +0000 (06:54 +0300)]
#11910: Fix test_heapq to skip the C tests when _heapq is missing.
Ezio Melotti [Mon, 9 May 2011 03:28:42 +0000 (06:28 +0300)]
#11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported.
Ezio Melotti [Mon, 9 May 2011 02:58:17 +0000 (05:58 +0300)]
Fix deprecation warnings in test_unittest.
Ezio Melotti [Mon, 9 May 2011 00:54:30 +0000 (03:54 +0300)]
Add a note to the str.find doc to suggest the use of the "in" operator.
Benjamin Peterson [Sun, 8 May 2011 20:32:04 +0000 (15:32 -0500)]
import_fresh_module ought to be in __all__
Raymond Hettinger [Sat, 7 May 2011 22:19:34 +0000 (15:19 -0700)]
Fix cut and paste error.
Raymond Hettinger [Sat, 7 May 2011 21:16:42 +0000 (14:16 -0700)]
Some tests were incorrectly marked as C specific.
Antoine Pitrou [Sat, 7 May 2011 17:59:33 +0000 (19:59 +0200)]
Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.
Ezio Melotti [Sat, 7 May 2011 16:21:22 +0000 (19:21 +0300)]
#10169: Fix argument parsing in socket.sendto() to avoid error masking.
Ezio Melotti [Sat, 7 May 2011 14:40:23 +0000 (17:40 +0300)]
#12017: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.
Nadeem Vawda [Sat, 7 May 2011 12:34:22 +0000 (14:34 +0200)]
Fix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:12:12 +0000 (14:12 +0200)]
Issue #11277: Fix tests - crash will not trigger if the file is closed and reopened.
Nadeem Vawda [Sat, 7 May 2011 11:17:16 +0000 (13:17 +0200)]
Issue #11277: Add tests for mmap crash when using large sparse files on OS X.
Also, reduce code duplication in LargeMmapTests.
Original patch by Steffen Daode Nurpmeso.
Nadeem Vawda [Sat, 7 May 2011 09:28:03 +0000 (11:28 +0200)]
Issue #11277: Remove useless test from test_zlib.
R David Murray [Sat, 7 May 2011 01:56:22 +0000 (21:56 -0400)]
#11999: sync based on comparing mtimes, not mtime to system clock
Ronald Oussoren [Fri, 6 May 2011 09:31:33 +0000 (11:31 +0200)]
Backport fix for issue #10684 from 3.x
Ezio Melotti [Thu, 5 May 2011 11:19:48 +0000 (14:19 +0300)]
#11997: fix typo in init.rst.
R David Murray [Thu, 5 May 2011 01:05:52 +0000 (21:05 -0400)]
#8158: add missing 'description' description to optparse docstring.
Victor Stinner [Wed, 4 May 2011 19:40:36 +0000 (21:40 +0200)]
Issue #11277: oops, fix checksum values of test_zlib on 32 bits
Victor Stinner [Wed, 4 May 2011 19:27:39 +0000 (21:27 +0200)]
Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits
(instead of a buffer of 2 GB)
Ezio Melotti [Wed, 4 May 2011 15:37:50 +0000 (18:37 +0300)]
#11985: update docstring of platform.python_implementation.
Ezio Melotti [Wed, 4 May 2011 12:28:31 +0000 (15:28 +0300)]
#11982: remove now unused function.
Victor Stinner [Wed, 4 May 2011 12:02:11 +0000 (14:02 +0200)]
Issue #11277: fix issue number in a test_zlib comment
Ezio Melotti [Wed, 4 May 2011 11:40:53 +0000 (14:40 +0300)]
#11982: fix json.loads('""') to return u'' rather than ''.
Brian Curtin [Wed, 4 May 2011 03:01:53 +0000 (22:01 -0500)]
Fix #11834. Correct site-packages paths.
Patch by Bryce Verdier.
Brian Curtin [Tue, 3 May 2011 18:36:34 +0000 (13:36 -0500)]
Denote 3.3.0 as the last supported Windows 2000 release.
This corresponds with change
b9390aa12855 to PEP-11.
Ezio Melotti [Tue, 3 May 2011 17:41:48 +0000 (20:41 +0300)]
#11985: document the return value of platform.python_implementation for PyPy.
Victor Stinner [Tue, 3 May 2011 15:25:28 +0000 (17:25 +0200)]
Issue #10276: Fix test_zlib, m may be undefined in the finally block
Victor Stinner [Tue, 3 May 2011 13:19:23 +0000 (15:19 +0200)]
Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by
crc32() and adler32(). Patch written by Steffen Daode Nurpmeso.
Victor Stinner [Tue, 3 May 2011 13:09:24 +0000 (15:09 +0200)]
Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length
bigger than 2^31-1 bytes).
Victor Stinner [Tue, 3 May 2011 13:06:11 +0000 (15:06 +0200)]
Issue #8651: Fix "z#" format of PyArg_Parse*() function: the size was not
written if PY_SSIZE_T_CLEAN is defined.
Victor Stinner [Tue, 3 May 2011 12:36:36 +0000 (14:36 +0200)]
(Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
Éric Araujo [Mon, 2 May 2011 11:36:18 +0000 (13:36 +0200)]
Branch merge
Éric Araujo [Mon, 2 May 2011 11:09:36 +0000 (13:09 +0200)]
Fix grammar to include both integer types in 2.x
Raymond Hettinger [Mon, 2 May 2011 01:14:49 +0000 (18:14 -0700)]
Fix spelling.
Benjamin Peterson [Sun, 1 May 2011 22:38:17 +0000 (17:38 -0500)]
note abcs of int and float (closes #11977)
Victor Stinner [Sun, 1 May 2011 21:51:11 +0000 (23:51 +0200)]
(Merge 3.1) Issue #9756: credit the author, Andreas Stührk (Trundle)
Victor Stinner [Sun, 1 May 2011 21:43:37 +0000 (23:43 +0200)]
(Merge 3.1) Issue #9756: When calling a method descriptor or a slot wrapper
descriptor, the check of the object type doesn't read the __class__ attribute
anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy
of the str type).
Georg Brandl [Sun, 1 May 2011 20:36:31 +0000 (22:36 +0200)]
Split combined code/doctest code blocks in two blocks, to enable proper highlighting.
R David Murray [Sun, 1 May 2011 15:12:35 +0000 (11:12 -0400)]
#11971: fix man page; it's -OO not -O0
Patch by Lars Michelsen.
Éric Araujo [Sun, 1 May 2011 00:15:03 +0000 (02:15 +0200)]
Fix wording
Éric Araujo [Sun, 1 May 2011 00:09:37 +0000 (02:09 +0200)]
Branch merge
Éric Araujo [Sun, 1 May 2011 00:02:30 +0000 (02:02 +0200)]
Add docstring to anydbm.open
Éric Araujo [Sun, 1 May 2011 00:05:58 +0000 (02:05 +0200)]
Fix file handle leak
R David Murray [Sat, 30 Apr 2011 21:26:02 +0000 (17:26 -0400)]
#11883: fix email examples by adding 'localhost' to SMTP constructor calls
R David Murray [Sat, 30 Apr 2011 20:34:35 +0000 (16:34 -0400)]
#11901: post-commit review fixes per Georg Brandl
Benjamin Peterson [Sat, 30 Apr 2011 18:14:56 +0000 (13:14 -0500)]
fix function name in example (closes #11966)
Eli Bendersky [Sat, 30 Apr 2011 06:02:12 +0000 (09:02 +0300)]
fix formatting, :c:func: --> :cfunc:
Eli Bendersky [Sat, 30 Apr 2011 05:51:55 +0000 (08:51 +0300)]
Issue #10912: add clarification for PyObject_RichCompareBool comparing identical objects
Brian Curtin [Sat, 30 Apr 2011 03:23:46 +0000 (22:23 -0500)]
Fix #11961. Document STARTUPINFO and creation flag options.
Brian Curtin [Fri, 29 Apr 2011 21:28:52 +0000 (16:28 -0500)]
whitespace fix
Brian Curtin [Fri, 29 Apr 2011 21:21:51 +0000 (16:21 -0500)]
merge
Ezio Melotti [Fri, 29 Apr 2011 04:10:24 +0000 (07:10 +0300)]
#11952: Fix typo in multiprocessing doc.
Łukasz Langa [Thu, 28 Apr 2011 15:40:19 +0000 (17:40 +0200)]
Merged solution for #11786 from 2.6
Łukasz Langa [Thu, 28 Apr 2011 15:27:59 +0000 (17:27 +0200)]
Closes #11786: ConfigParser.[Raw]ConfigParser optionxform().
Senthil Kumaran [Thu, 28 Apr 2011 09:00:19 +0000 (17:00 +0800)]
skip the extractall test on platforms where os.symlink is not available.
Senthil Kumaran [Thu, 28 Apr 2011 07:30:31 +0000 (15:30 +0800)]
Fix closes issue10761: tarfile.extractall failure when symlinked files are present.
Ezio Melotti [Thu, 28 Apr 2011 04:59:33 +0000 (07:59 +0300)]
Backport test from #11926.
Raymond Hettinger [Wed, 27 Apr 2011 23:34:07 +0000 (16:34 -0700)]
Issue #11940: Update external link.
Ezio Melotti [Wed, 27 Apr 2011 21:48:46 +0000 (00:48 +0300)]
#11942: Fix return type of Py_AddPendingCall. Patch by Sandro Tosi.
Antoine Pitrou [Wed, 27 Apr 2011 17:26:06 +0000 (19:26 +0200)]
Move NEWS entry to the right section.
Antoine Pitrou [Wed, 27 Apr 2011 17:20:48 +0000 (19:20 +0200)]
Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch
by Charles-François Natali.
Ezio Melotti [Wed, 27 Apr 2011 06:45:46 +0000 (09:45 +0300)]
#11763: don't use difflib in TestCase.assertMultiLineEqual if the strings are too long.
Senthil Kumaran [Tue, 26 Apr 2011 13:17:45 +0000 (21:17 +0800)]
Update NEWS for Issue11236.
Senthil Kumaran [Tue, 26 Apr 2011 13:02:26 +0000 (21:02 +0800)]
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
Ezio Melotti [Tue, 26 Apr 2011 02:12:51 +0000 (05:12 +0300)]
#6780: fix starts/endswith error message to mention that tuples are accepted too.