]> granicus.if.org Git - python/log
python
13 years agoChange import_fresh_module to work with packages.
Ezio Melotti [Sat, 14 May 2011 03:02:25 +0000 (06:02 +0300)]
Change import_fresh_module to work with packages.

13 years agoIssue #11896: Save on Close failed despite selecting "Yes" in dialog.
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

13 years agoIssue #12062: In the `io` module, fix a flushing bug when doing a certain
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).

13 years ago#12061: remove duplicate glossary entry.
Georg Brandl [Thu, 12 May 2011 05:47:06 +0000 (07:47 +0200)]
#12061: remove duplicate glossary entry.

13 years ago#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the...
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.

13 years agoIssue #8498: In socket.accept(), allow to specify 0 as a backlog value in
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.

13 years agoIssue 12047: Expand the style guide.
Raymond Hettinger [Tue, 10 May 2011 07:39:02 +0000 (00:39 -0700)]
Issue 12047: Expand the style guide.

13 years ago(Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
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!

13 years ago(Merge 3.1) Issue #1195: Fix input() if it is interrupted by CTRL+d and then
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.

13 years agoSome more tests were incorrectly marked as C specific.
Ezio Melotti [Mon, 9 May 2011 15:32:18 +0000 (18:32 +0300)]
Some more tests were incorrectly marked as C specific.

13 years agoIssue 11164: Remove obsolete allnodes test from minidom test.
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.

13 years ago#11910: Fix test_heapq to skip the C tests when _heapq is missing.
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.

13 years ago#11910: change import_fresh_module to return None when one of the "fresh" modules...
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.

13 years agoFix deprecation warnings in test_unittest.
Ezio Melotti [Mon, 9 May 2011 02:58:17 +0000 (05:58 +0300)]
Fix deprecation warnings in test_unittest.

13 years agoAdd a note to the str.find doc to suggest the use of the "in" operator.
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.

13 years agoimport_fresh_module ought to be in __all__
Benjamin Peterson [Sun, 8 May 2011 20:32:04 +0000 (15:32 -0500)]
import_fresh_module ought to be in __all__

13 years agoFix cut and paste error.
Raymond Hettinger [Sat, 7 May 2011 22:19:34 +0000 (15:19 -0700)]
Fix cut and paste error.

13 years agoSome tests were incorrectly marked as C specific.
Raymond Hettinger [Sat, 7 May 2011 21:16:42 +0000 (14:16 -0700)]
Some tests were incorrectly marked as C specific.

13 years agoIssue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun...
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.

13 years ago#10169: Fix argument parsing in socket.sendto() to avoid error masking.
Ezio Melotti [Sat, 7 May 2011 16:21:22 +0000 (19:21 +0300)]
#10169: Fix argument parsing in socket.sendto() to avoid error masking.

13 years ago#12017: Fix segfault in json.loads() while decoding highly-nested objects using the...
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.

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.