]> granicus.if.org Git - python/log
python
13 years agoFix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:34:22 +0000 (14:34 +0200)]
Fix potential resource leak in test_mmap.

13 years agoIssue #11277: Fix tests - crash will not trigger if the file is closed and reopened.
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.

13 years agoIssue #11277: Add tests for mmap crash when using large sparse files on OS X.
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.

13 years agoIssue #11277: Remove useless test from test_zlib.
Nadeem Vawda [Sat, 7 May 2011 09:28:03 +0000 (11:28 +0200)]
Issue #11277: Remove useless test from test_zlib.

13 years ago#11999: sync based on comparing mtimes, not mtime to system clock
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

13 years agoBackport fix for issue #10684 from 3.x
Ronald Oussoren [Fri, 6 May 2011 09:31:33 +0000 (11:31 +0200)]
Backport fix for issue #10684 from 3.x

13 years ago#11997: fix typo in init.rst.
Ezio Melotti [Thu, 5 May 2011 11:19:48 +0000 (14:19 +0300)]
#11997: fix typo in init.rst.

13 years ago#8158: add missing 'description' description to optparse docstring.
R David Murray [Thu, 5 May 2011 01:05:52 +0000 (21:05 -0400)]
#8158: add missing 'description' description to optparse docstring.

13 years agoIssue #11277: oops, fix checksum values of test_zlib on 32 bits
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

13 years agoIssue #11277: test_zlib tests a buffer of 1 GB 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)

13 years ago#11985: update docstring of platform.python_implementation.
Ezio Melotti [Wed, 4 May 2011 15:37:50 +0000 (18:37 +0300)]
#11985: update docstring of platform.python_implementation.

13 years ago#11982: remove now unused function.
Ezio Melotti [Wed, 4 May 2011 12:28:31 +0000 (15:28 +0300)]
#11982: remove now unused function.

13 years agoIssue #11277: fix issue number in a test_zlib comment
Victor Stinner [Wed, 4 May 2011 12:02:11 +0000 (14:02 +0200)]
Issue #11277: fix issue number in a test_zlib comment

13 years ago#11982: fix json.loads('""') to return u'' rather than ''.
Ezio Melotti [Wed, 4 May 2011 11:40:53 +0000 (14:40 +0300)]
#11982: fix json.loads('""') to return u'' rather than ''.

13 years agoFix #11834. Correct site-packages paths.
Brian Curtin [Wed, 4 May 2011 03:01:53 +0000 (22:01 -0500)]
Fix #11834. Correct site-packages paths.

Patch by Bryce Verdier.

13 years agoDenote 3.3.0 as the last supported Windows 2000 release.
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.

13 years ago#11985: document the return value of platform.python_implementation for PyPy.
Ezio Melotti [Tue, 3 May 2011 17:41:48 +0000 (20:41 +0300)]
#11985: document the return value of platform.python_implementation for PyPy.

13 years agoIssue #10276: Fix test_zlib, m may be undefined in the finally block
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

13 years agoIssue #10276: test_zlib checks that inputs of 2 GB are handled correctly by
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.

13 years agoIssue #8651: PyArg_Parse*() functions raise an OverflowError if the file
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).

13 years agoIssue #8651: Fix "z#" format of PyArg_Parse*() function: the size was not
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.

13 years ago(Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
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.

13 years agoBranch merge
Éric Araujo [Mon, 2 May 2011 11:36:18 +0000 (13:36 +0200)]
Branch merge

13 years agoFix grammar to include both integer types in 2.x
Éric Araujo [Mon, 2 May 2011 11:09:36 +0000 (13:09 +0200)]
Fix grammar to include both integer types in 2.x

13 years agoFix spelling.
Raymond Hettinger [Mon, 2 May 2011 01:14:49 +0000 (18:14 -0700)]
Fix spelling.

13 years agonote abcs of int and float (closes #11977)
Benjamin Peterson [Sun, 1 May 2011 22:38:17 +0000 (17:38 -0500)]
note abcs of int and float (closes #11977)

13 years ago(Merge 3.1) Issue #9756: credit the author, Andreas Stührk (Trundle)
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)

13 years ago(Merge 3.1) Issue #9756: When calling a method descriptor or a slot wrapper
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).

13 years agoSplit combined code/doctest code blocks in two blocks, to enable proper highlighting.
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.

13 years ago#11971: fix man page; it's -OO not -O0
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.

13 years agoFix wording
Éric Araujo [Sun, 1 May 2011 00:15:03 +0000 (02:15 +0200)]
Fix wording

13 years agoBranch merge
Éric Araujo [Sun, 1 May 2011 00:09:37 +0000 (02:09 +0200)]
Branch merge

13 years agoAdd docstring to anydbm.open
Éric Araujo [Sun, 1 May 2011 00:02:30 +0000 (02:02 +0200)]
Add docstring to anydbm.open

13 years agoFix file handle leak
Éric Araujo [Sun, 1 May 2011 00:05:58 +0000 (02:05 +0200)]
Fix file handle leak

13 years ago#11883: fix email examples by adding 'localhost' to SMTP constructor calls
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

13 years ago#11901: post-commit review fixes per Georg Brandl
R David Murray [Sat, 30 Apr 2011 20:34:35 +0000 (16:34 -0400)]
#11901: post-commit review fixes per Georg Brandl

13 years agofix function name in example (closes #11966)
Benjamin Peterson [Sat, 30 Apr 2011 18:14:56 +0000 (13:14 -0500)]
fix function name in example (closes #11966)

13 years agofix formatting, :c:func: --> :cfunc:
Eli Bendersky [Sat, 30 Apr 2011 06:02:12 +0000 (09:02 +0300)]
fix formatting, :c:func: --> :cfunc:

13 years agoIssue #10912: add clarification for PyObject_RichCompareBool comparing identical...
Eli Bendersky [Sat, 30 Apr 2011 05:51:55 +0000 (08:51 +0300)]
Issue #10912: add clarification for PyObject_RichCompareBool comparing identical objects

13 years agoFix #11961. Document STARTUPINFO and creation flag options.
Brian Curtin [Sat, 30 Apr 2011 03:23:46 +0000 (22:23 -0500)]
Fix #11961. Document STARTUPINFO and creation flag options.

13 years agowhitespace fix
Brian Curtin [Fri, 29 Apr 2011 21:28:52 +0000 (16:28 -0500)]
whitespace fix

13 years agomerge
Brian Curtin [Fri, 29 Apr 2011 21:21:51 +0000 (16:21 -0500)]
merge

13 years ago#11952: Fix typo in multiprocessing doc.
Ezio Melotti [Fri, 29 Apr 2011 04:10:24 +0000 (07:10 +0300)]
#11952: Fix typo in multiprocessing doc.

13 years agoMerged solution for #11786 from 2.6
Łukasz Langa [Thu, 28 Apr 2011 15:40:19 +0000 (17:40 +0200)]
Merged solution for #11786 from 2.6

13 years agoCloses #11786: ConfigParser.[Raw]ConfigParser optionxform().
Łukasz Langa [Thu, 28 Apr 2011 15:27:59 +0000 (17:27 +0200)]
Closes #11786: ConfigParser.[Raw]ConfigParser optionxform().

13 years agoskip the extractall test on platforms where os.symlink is not available.
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.

13 years agoFix closes issue10761: tarfile.extractall failure when symlinked files are present.
Senthil Kumaran [Thu, 28 Apr 2011 07:30:31 +0000 (15:30 +0800)]
Fix closes  issue10761: tarfile.extractall failure  when symlinked files are present.

13 years agoBackport test from #11926.
Ezio Melotti [Thu, 28 Apr 2011 04:59:33 +0000 (07:59 +0300)]
Backport test from #11926.

13 years agoIssue #11940: Update external link.
Raymond Hettinger [Wed, 27 Apr 2011 23:34:07 +0000 (16:34 -0700)]
Issue #11940: Update external link.

13 years ago#11942: Fix return type of Py_AddPendingCall. Patch by Sandro Tosi.
Ezio Melotti [Wed, 27 Apr 2011 21:48:46 +0000 (00:48 +0300)]
#11942: Fix return type of Py_AddPendingCall. Patch by Sandro Tosi.

13 years agoMove NEWS entry to the right section.
Antoine Pitrou [Wed, 27 Apr 2011 17:26:06 +0000 (19:26 +0200)]
Move NEWS entry to the right section.

13 years agoIssue #10517: After fork(), reinitialize the TLS used by the PyGILState_*
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.

13 years ago#11763: don't use difflib in TestCase.assertMultiLineEqual if the strings are too...
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.

13 years agoUpdate NEWS for Issue11236.
Senthil Kumaran [Tue, 26 Apr 2011 13:17:45 +0000 (21:17 +0800)]
Update NEWS for Issue11236.

13 years agoissue11236 getpass.getpass to respond ctrl-c or ctrl-z
Senthil Kumaran [Tue, 26 Apr 2011 13:02:26 +0000 (21:02 +0800)]
issue11236 getpass.getpass to respond ctrl-c or ctrl-z

13 years ago#6780: fix starts/endswith error message to mention that tuples are accepted too.
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.

13 years ago#11901: add description of how bitfields are laid out to hexversion docs
R David Murray [Mon, 25 Apr 2011 20:10:18 +0000 (16:10 -0400)]
#11901: add description of how bitfields are laid out to hexversion docs

Patch by Sijin Joseph.

13 years agopybench prep_times calculation error (closes #11895)
Jesus Cea [Mon, 25 Apr 2011 01:20:54 +0000 (03:20 +0200)]
pybench prep_times calculation error (closes #11895)

13 years agoOther minor clean-ups.
Raymond Hettinger [Sun, 24 Apr 2011 19:55:28 +0000 (12:55 -0700)]
Other minor clean-ups.

13 years agoRemove unused branch in the clear() method. Minor comment edits.
Raymond Hettinger [Sun, 24 Apr 2011 19:30:39 +0000 (12:30 -0700)]
Remove unused branch in the clear() method. Minor comment edits.

13 years agoMinor code clean-up.
Raymond Hettinger [Sun, 24 Apr 2011 03:11:50 +0000 (20:11 -0700)]
Minor code clean-up.

13 years agoRemove unused imports
Raymond Hettinger [Sun, 24 Apr 2011 01:37:37 +0000 (18:37 -0700)]
Remove unused imports

13 years agoMinor code simplification.
Raymond Hettinger [Sat, 23 Apr 2011 22:51:38 +0000 (15:51 -0700)]
Minor code simplification.

13 years agoMinor code simplification.
Raymond Hettinger [Sat, 23 Apr 2011 22:41:38 +0000 (15:41 -0700)]
Minor code simplification.

13 years agoCleanups to remove dependencies and add docstrings.
Raymond Hettinger [Sat, 23 Apr 2011 01:49:53 +0000 (18:49 -0700)]
Cleanups to remove dependencies and add docstrings.

13 years agoFix some more markup glitches in argparse doc.
Ezio Melotti [Thu, 21 Apr 2011 22:29:13 +0000 (01:29 +0300)]
Fix some more markup glitches in argparse doc.

13 years agoThe \ is not supported in Sphinx 0.6.
Ezio Melotti [Thu, 21 Apr 2011 20:30:27 +0000 (23:30 +0300)]
The \ is not supported in Sphinx 0.6.

13 years ago#11905: fix missing full stop in argparse doc. Noticed by Vladimir Rutsky.
Ezio Melotti [Thu, 21 Apr 2011 20:09:27 +0000 (23:09 +0300)]
#11905: fix missing full stop in argparse doc. Noticed by Vladimir Rutsky.

13 years ago#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.
Ezio Melotti [Thu, 21 Apr 2011 20:06:48 +0000 (23:06 +0300)]
#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.

13 years ago#11902: Fix typo in argparse doc. Noticed by Vladimir Rutsky.
Ezio Melotti [Thu, 21 Apr 2011 19:56:51 +0000 (22:56 +0300)]
#11902: Fix typo in argparse doc. Noticed by Vladimir Rutsky.

13 years agoAdd the :mod: role where it was missing.
Ezio Melotti [Thu, 21 Apr 2011 13:12:17 +0000 (16:12 +0300)]
Add the :mod: role where it was missing.

13 years ago#11885: capitalize Python.
Ezio Melotti [Thu, 21 Apr 2011 12:26:46 +0000 (15:26 +0300)]
#11885: capitalize Python.

13 years agoMinor text rearrangement.
Raymond Hettinger [Wed, 20 Apr 2011 20:11:38 +0000 (13:11 -0700)]
Minor text rearrangement.

13 years agoFix wrong function name. Noticed by Clive Darke.
Ezio Melotti [Wed, 20 Apr 2011 18:29:31 +0000 (21:29 +0300)]
Fix wrong function name. Noticed by Clive Darke.

13 years agostartswith and endswith don't accept None as slice index. Patch by Torsten Becker...
Jesus Cea [Wed, 20 Apr 2011 14:39:15 +0000 (16:39 +0200)]
startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828)

13 years agoFix #8886. Use context managers throughout zipfile tests.
Brian Curtin [Wed, 20 Apr 2011 02:15:55 +0000 (21:15 -0500)]
Fix #8886. Use context managers throughout zipfile tests.

This was fixed in py3k SVN. Consider this a backport.

13 years agoIssue #11875: Alter the previous fix to work better with subclasses
Raymond Hettinger [Tue, 19 Apr 2011 23:53:07 +0000 (16:53 -0700)]
Issue #11875: Alter the previous fix to work better with subclasses

13 years agoFix wrong number of functions noticed by Sandro Tosi.
Ezio Melotti [Tue, 19 Apr 2011 20:12:37 +0000 (23:12 +0300)]
Fix wrong number of functions noticed by Sandro Tosi.

13 years agoUse a generic class lookup.
Raymond Hettinger [Tue, 19 Apr 2011 16:52:21 +0000 (09:52 -0700)]
Use a generic class lookup.

13 years agoIssue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.
Raymond Hettinger [Tue, 19 Apr 2011 16:48:39 +0000 (09:48 -0700)]
Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.

13 years agoUpdated documentation on fileConfig().
Vinay Sajip [Tue, 19 Apr 2011 12:47:23 +0000 (13:47 +0100)]
Updated documentation on fileConfig().

13 years agoFix sporadic failure in test_startfile.
Nadeem Vawda [Mon, 18 Apr 2011 23:35:58 +0000 (01:35 +0200)]
Fix sporadic failure in test_startfile.

Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.

13 years agoIssue #11768: signal.set_wakeup_fd() and PySignal_SetWakeupFd() added in 2.6
Victor Stinner [Mon, 18 Apr 2011 14:34:31 +0000 (16:34 +0200)]
Issue #11768: signal.set_wakeup_fd() and PySignal_SetWakeupFd() added in 2.6

Fix the documentation.

13 years ago(Merge 3.1) Issue #11768: The signal handler of the signal module only calls
Victor Stinner [Mon, 18 Apr 2011 14:33:28 +0000 (16:33 +0200)]
(Merge 3.1) Issue #11768: The signal handler of the signal module only calls
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.

13 years ago#11865: fix typo in init.rst.
Ezio Melotti [Mon, 18 Apr 2011 07:11:21 +0000 (10:11 +0300)]
#11865: fix typo in init.rst.

13 years agoRework multiset methods to use less memory and to make fewer calls to __hash__.
Raymond Hettinger [Mon, 18 Apr 2011 03:08:41 +0000 (20:08 -0700)]
Rework multiset methods to use less memory and to make fewer calls to __hash__.

13 years agomerge 11442 NEWS
Martin v. Löwis [Sun, 17 Apr 2011 21:01:13 +0000 (23:01 +0200)]
merge 11442 NEWS

13 years agomerge 11442 NEWS
Martin v. Löwis [Sun, 17 Apr 2011 20:56:19 +0000 (22:56 +0200)]
merge 11442 NEWS

13 years agoIssue 11442: Add NEWS entry for e9724d7abbc2
Martin v. Löwis [Sun, 17 Apr 2011 20:29:40 +0000 (22:29 +0200)]
Issue 11442: Add NEWS entry for e9724d7abbc2

13 years agoAdvertise nesting directives for class/method and class/data combos.
Éric Araujo [Sat, 16 Apr 2011 21:47:53 +0000 (23:47 +0200)]
Advertise nesting directives for class/method and class/data combos.

Also fix a typo and a misleading example (method used to describe function).

13 years agoFix a few hyphens in argparse.rst.
Ezio Melotti [Sat, 16 Apr 2011 20:04:51 +0000 (23:04 +0300)]
Fix a few hyphens in argparse.rst.

13 years agoIssue #11855: Apply missing formatting for urlretrieve
Eli Bendersky [Sat, 16 Apr 2011 12:28:42 +0000 (15:28 +0300)]
Issue #11855: Apply missing formatting for urlretrieve

13 years agoAdd another example to the collections module docs.
Raymond Hettinger [Sat, 16 Apr 2011 00:55:36 +0000 (17:55 -0700)]
Add another example to the collections module docs.

13 years agoFix double use of f.close().
Éric Araujo [Fri, 15 Apr 2011 22:13:39 +0000 (00:13 +0200)]
Fix double use of f.close().

The other one is in a finally block not seen in the diff, which I added
in 3bf86785cd9c (for #10252).

13 years agoMinor tweaks to a few comments in heapq
Éric Araujo [Fri, 15 Apr 2011 21:34:31 +0000 (23:34 +0200)]
Minor tweaks to a few comments in heapq

13 years agoFix minor subclassing issue with collections.Counter
Raymond Hettinger [Fri, 15 Apr 2011 20:12:21 +0000 (13:12 -0700)]
Fix minor subclassing issue with collections.Counter

13 years ago#11843: remove duplicate line from table in distutil doc.
Ezio Melotti [Fri, 15 Apr 2011 15:05:09 +0000 (18:05 +0300)]
#11843: remove duplicate line from table in distutil doc.

13 years agoIssue #5057: fix a bug in the peepholer that led to non-portable pyc files between...
Ezio Melotti [Fri, 15 Apr 2011 13:14:04 +0000 (16:14 +0300)]
Issue #5057: fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u"\U00012345"[0]).

13 years agoIssue #11467: Fix urlparse behavior when handling urls which contains scheme
Senthil Kumaran [Fri, 15 Apr 2011 10:07:33 +0000 (18:07 +0800)]
Issue #11467: Fix urlparse behavior when handling urls which contains scheme
specific part only digits. Patch by Santoso Wijaya.

13 years ago#11848: replace dead link in random.betavariate comment.
Ezio Melotti [Fri, 15 Apr 2011 05:25:16 +0000 (08:25 +0300)]
#11848: replace dead link in random.betavariate comment.