]> granicus.if.org Git - python/log
python
13 years agoIssue #11614: Fix importlib tests for the new __hello__ module
Victor Stinner [Mon, 16 May 2011 14:57:18 +0000 (16:57 +0200)]
Issue #11614: Fix importlib tests for the new __hello__ module

13 years agoIssue #12057: Convert CJK encoding testcase BLOB into multiple text files
Victor Stinner [Mon, 16 May 2011 14:43:38 +0000 (16:43 +0200)]
Issue #12057: Convert CJK encoding testcase BLOB into multiple text files

13 years agoIssue #11614: import __hello__ prints "Hello World!". Patch written by Andreas
Victor Stinner [Mon, 16 May 2011 14:29:35 +0000 (16:29 +0200)]
Issue #11614: import __hello__ prints "Hello World!". Patch written by Andreas
Stührk.

13 years agoIssue #10756: atexit normalizes the exception before displaying it. Patch by
Victor Stinner [Sun, 15 May 2011 16:57:44 +0000 (18:57 +0200)]
Issue #10756: atexit normalizes the exception before displaying it. Patch by
Andreas Stührk.

Backport a fix already applied to Python 3.2+ (4a82be47a948 + 5060a92a8597).

13 years agoIssue #12060: Use sig_atomic_t type and volatile keyword in the signal module.
Victor Stinner [Sun, 15 May 2011 08:21:59 +0000 (10:21 +0200)]
Issue #12060: Use sig_atomic_t type and volatile keyword in the signal module.
Patch written by Charles-François Natali.

13 years agoCloses #6498: fix several misspellings of "SystemExit" as "SystemError".
Georg Brandl [Sun, 15 May 2011 06:49:12 +0000 (08:49 +0200)]
Closes #6498: fix several misspellings of "SystemExit" as "SystemError".

13 years agoFix copy-paste mistake in new zlib test.
Nadeem Vawda [Sat, 14 May 2011 22:48:24 +0000 (00:48 +0200)]
Fix copy-paste mistake in new zlib test.

13 years agoIssue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Nadeem Vawda [Sat, 14 May 2011 22:19:50 +0000 (00:19 +0200)]
Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.

Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.

13 years agoMerge heads
Kurt B. Kaiser [Sat, 14 May 2011 21:30:58 +0000 (17:30 -0400)]
Merge heads

13 years agoIssue #6378: Further adjust idle.bat to start associated Python
Kurt B. Kaiser [Sat, 14 May 2011 21:20:09 +0000 (17:20 -0400)]
Issue #6378: Further adjust idle.bat to start associated Python

13 years agopprint usage example rethought.
Łukasz Langa [Sat, 14 May 2011 20:43:44 +0000 (22:43 +0200)]
pprint usage example rethought.

13 years agoIssue #8650: Backport 64-bit safety fixes for compress() and decompress().
Nadeem Vawda [Sat, 14 May 2011 20:26:55 +0000 (22:26 +0200)]
Issue #8650: Backport 64-bit safety fixes for compress() and decompress().

13 years agoIssue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
Nadeem Vawda [Sat, 14 May 2011 12:05:20 +0000 (14:05 +0200)]
Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.

13 years ago#11979: improve wording and markup in sockets howto. Patch by Xavier Morel.
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.

13 years ago#7960: fix docstrings for captured_output and captured_stdout.
Ezio Melotti [Sat, 14 May 2011 05:22:47 +0000 (08:22 +0300)]
#7960: fix docstrings for captured_output and captured_stdout.

13 years ago#5723: Improve json tests to be executed with and without accelerations.
Ezio Melotti [Sat, 14 May 2011 03:38:03 +0000 (06:38 +0300)]
#5723: Improve json tests to be executed with and without accelerations.

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 #12062: Fix a flushing bug when doing a certain type of I/O sequence
Antoine Pitrou [Thu, 12 May 2011 22:13:33 +0000 (00:13 +0200)]
Issue #12062: 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 agoIssue #11896: Save on Close failed despite selecting "Yes" in dialog.
Kurt B. Kaiser [Thu, 12 May 2011 19:25:24 +0000 (15:25 -0400)]
Issue #11896: Save on Close failed despite selecting "Yes" in dialog.

_tkinter.c is returning <class '_tkinter.Tcl_Obj'> sometimes.  Don't use
tkinter.messagebox.Message - use the helper functions which convert to str.

13 years agoIssue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.
Kurt B. Kaiser [Wed, 11 May 2011 16:24:17 +0000 (12:24 -0400)]
Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.

With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to
exit.  Converted to valid Unicode null in PythonCmd().

13 years agoIssue #10419: Fix build_scripts command of distutils to handle correctly
Victor Stinner [Tue, 10 May 2011 22:57:29 +0000 (00:57 +0200)]
Issue #10419: Fix build_scripts command of distutils to handle correctly
non-ASCII scripts. Open and write the script in binary mode, but ensure that
the shebang is decodable from UTF-8 and from the encoding of the script.

13 years ago#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the...
Ezio Melotti [Tue, 10 May 2011 22:02:56 +0000 (01:02 +0300)]
#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.

13 years agoIssue #12012: ssl.PROTOCOL_SSLv2 becomes optional
Victor Stinner [Mon, 9 May 2011 22:38:00 +0000 (00:38 +0200)]
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 agoIssue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
Victor Stinner [Mon, 9 May 2011 22:19:53 +0000 (00:19 +0200)]
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:36:53 +0000 (18:36 +0300)]
Some more tests were incorrectly marked as C specific.

13 years agoStop trying to use _xmlplus in the xml module. Closes #11164.
Martin v. Löwis [Mon, 9 May 2011 06:05:43 +0000 (08:05 +0200)]
Stop trying to use _xmlplus in the xml module. Closes #11164.
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 04:15:04 +0000 (07:15 +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:41:55 +0000 (06:41 +0300)]
#11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported.

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 agoput import_fresh_module in __all__
Benjamin Peterson [Sun, 8 May 2011 20:32:46 +0000 (15:32 -0500)]
put import_fresh_module in __all__

13 years agoAdd back Misc/NEWS entry that got lost during merge, and fix a couple of other things.
Ezio Melotti [Sun, 8 May 2011 16:58:08 +0000 (19:58 +0300)]
Add back Misc/NEWS entry that got lost during merge, and fix a couple of other things.

13 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:45:34 +0000 (19:45 +0200)]
Merge

13 years agoIssue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun...
Antoine Pitrou [Sat, 7 May 2011 17:39:37 +0000 (19:39 +0200)]
Issue #11927: SMTP_SSL now uses port 465 by default as documented.  Patch by Kasun Herath.

13 years agomerge
Giampaolo Rodola' [Sat, 7 May 2011 17:35:36 +0000 (19:35 +0200)]
merge

13 years ago#12002 - ftplib's abort() method raises TypeError
Giampaolo Rodola' [Sat, 7 May 2011 17:03:47 +0000 (19:03 +0200)]
#12002 - ftplib's abort() method raises TypeError

13 years ago#5421: add tests.
Ezio Melotti [Sat, 7 May 2011 16:47:48 +0000 (19:47 +0300)]
#5421: add tests.

13 years ago#12017: Fix segfault in json.loads() while decoding highly-nested objects using the...
Ezio Melotti [Sat, 7 May 2011 14:58:09 +0000 (17:58 +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:35:05 +0000 (14:35 +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:14:53 +0000 (14:14 +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:01:50 +0000 (13:01 +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 ago#11999: sync based on comparing mtimes, not mtime to system clock
R David Murray [Sat, 7 May 2011 02:07:19 +0000 (22:07 -0400)]
#11999: sync based on comparing mtimes, not mtime to system clock

13 years agoFix for issue 10684: Folders get deleted when trying to change case with shutil.move...
Ronald Oussoren [Fri, 6 May 2011 08:23:04 +0000 (10:23 +0200)]
Fix for issue 10684: Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

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:06:57 +0000 (21:06 -0400)]
#8158: add missing 'description' description to optparse docstring.

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 agoFix #11834. Correct site-packages paths.
Brian Curtin [Wed, 4 May 2011 02:57:00 +0000 (21:57 -0500)]
Fix #11834. Correct site-packages paths.

Patch by Bryce Verdier.

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 agoBranch merge
Éric Araujo [Mon, 2 May 2011 11:10:36 +0000 (13:10 +0200)]
Branch merge

13 years agoAdd missing colon
Éric Araujo [Mon, 2 May 2011 11:10:18 +0000 (13:10 +0200)]
Add missing colon

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

13 years agoIssue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a
Victor Stinner [Sun, 1 May 2011 23:05:37 +0000 (01:05 +0200)]
Issue #11277: 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 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 agoIssue #9756: credit the author, Andreas Stührk (Trundle)
Victor Stinner [Sun, 1 May 2011 21:46:48 +0000 (23:46 +0200)]
Issue #9756: credit the author, Andreas Stührk (Trundle)

13 years agoIssue #9756: When calling a method descriptor or a slot wrapper descriptor, the
Victor Stinner [Sun, 1 May 2011 21:19:15 +0000 (23:19 +0200)]
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 ago#11971: fix man page; it's -OO not -O0
R David Murray [Sun, 1 May 2011 15:13:56 +0000 (11:13 -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:14:48 +0000 (02:14 +0200)]
Fix wording

13 years ago#11883: fix email examples by adding 'localhost' to SMTP constructor calls
R David Murray [Sat, 30 Apr 2011 21:26:32 +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:35:29 +0000 (16:35 -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 agowhitespace...
Brian Curtin [Sat, 30 Apr 2011 03:18:33 +0000 (22:18 -0500)]
whitespace...

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

13 years agoWrap the testskip decorator for the proper test to resolve bb failure.
Senthil Kumaran [Fri, 29 Apr 2011 22:06:28 +0000 (06:06 +0800)]
Wrap the testskip decorator for the proper test to resolve bb failure.

13 years agoFurther fix #7838. CREATE_NEW_CONSOLE was exposed, but none of the
Brian Curtin [Fri, 29 Apr 2011 20:48:13 +0000 (15:48 -0500)]
Further fix #7838. CREATE_NEW_CONSOLE was exposed, but none of the
constants to be used for STARTUPINFO were exposed due to the change.

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 agoskip the extractall test on platforms where os.symlink is not available.
Senthil Kumaran [Thu, 28 Apr 2011 09:05:55 +0000 (17:05 +0800)]
skip the extractall test on platforms where os.symlink is not available.

13 years agoAdd tests for tarfile extractall feature when with symlinks
Senthil Kumaran [Thu, 28 Apr 2011 07:38:12 +0000 (15:38 +0800)]
Add tests for tarfile extractall feature when with symlinks

13 years ago#11926: add missing keywords to help("keywords").
Ezio Melotti [Thu, 28 Apr 2011 04:42:55 +0000 (07:42 +0300)]
#11926: add missing keywords to help("keywords").

13 years agoIssue #11940: Update external link.
Raymond Hettinger [Wed, 27 Apr 2011 23:32:08 +0000 (16:32 -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 agoBranch merge
Éric Araujo [Wed, 27 Apr 2011 14:23:56 +0000 (16:23 +0200)]
Branch merge

13 years agoChange markup so it generates a link
Éric Araujo [Wed, 27 Apr 2011 14:22:32 +0000 (16:22 +0200)]
Change markup so it generates a link

13 years ago#11763: don't use difflib in TestCase.assertMultiLineEqual if the strings are too...
Ezio Melotti [Wed, 27 Apr 2011 07:17:34 +0000 (10:17 +0300)]
#11763: don't use difflib in TestCase.assertMultiLineEqual if the strings are too long.

13 years agoUpdate News entry for Issue11236
Senthil Kumaran [Tue, 26 Apr 2011 13:09:49 +0000 (21:09 +0800)]
Update News entry for Issue11236

13 years agoFix for issue11236 getpass.getpass to respond ctrl-c or ctrl-z
Senthil Kumaran [Tue, 26 Apr 2011 12:59:46 +0000 (20:59 +0800)]
Fix for 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 03:09:45 +0000 (06:09 +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:12:26 +0000 (16:12 -0400)]
#11901: add description of how bitfields are laid out to hexversion docs

Patch by Sijin Joseph.

13 years agoChange markup so that it creates a link
Éric Araujo [Mon, 25 Apr 2011 17:05:53 +0000 (19:05 +0200)]
Change markup so that it creates a link

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

13 years agoRemove obsolete/duplicate docstring
Éric Araujo [Sun, 24 Apr 2011 15:10:30 +0000 (17:10 +0200)]
Remove obsolete/duplicate docstring

13 years agoBranch merge
Éric Araujo [Sun, 24 Apr 2011 00:34:11 +0000 (02:34 +0200)]
Branch merge

13 years agoFix weird executable name
Éric Araujo [Fri, 22 Apr 2011 19:27:10 +0000 (21:27 +0200)]
Fix weird executable name

13 years agoAdd a space to make json doc a bit more readable
Éric Araujo [Thu, 21 Apr 2011 00:37:41 +0000 (02:37 +0200)]
Add a space to make json doc a bit more readable

13 years agomerge heads
Jesus Cea [Wed, 20 Apr 2011 20:38:26 +0000 (22:38 +0200)]
merge heads

13 years agoPort 5b607cd8c71b (closes #11892)
Jesus Cea [Wed, 20 Apr 2011 20:26:57 +0000 (22:26 +0200)]
Port 5b607cd8c71b (closes #11892)

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

13 years agomerge
Jesus Cea [Wed, 20 Apr 2011 18:51:09 +0000 (20:51 +0200)]
merge

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 agoUp-port changeset 5cf8f6da8743 (closes #11890)
Jesus Cea [Wed, 20 Apr 2011 18:24:57 +0000 (20:24 +0200)]
Up-port changeset 5cf8f6da8743 (closes #11890)

13 years agoFix argument name in reST doc to match the code
Éric Araujo [Wed, 20 Apr 2011 17:11:12 +0000 (19:11 +0200)]
Fix argument name in reST doc to match the code

13 years agoBranch merge
Éric Araujo [Wed, 20 Apr 2011 16:54:12 +0000 (18:54 +0200)]
Branch merge

13 years agoAdd docstring to dbm.open
Éric Araujo [Wed, 20 Apr 2011 16:52:55 +0000 (18:52 +0200)]
Add docstring to dbm.open

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

13 years agoIssue #11875: Alter the previous fix to work better with subclasses
Raymond Hettinger [Wed, 20 Apr 2011 00:17:23 +0000 (17:17 -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:15:13 +0000 (23:15 +0300)]
Fix wrong number of functions noticed by Sandro Tosi.

13 years agomerge
Raymond Hettinger [Tue, 19 Apr 2011 18:12:47 +0000 (11:12 -0700)]
merge

13 years agoHmm, __ne__ was missing
Raymond Hettinger [Tue, 19 Apr 2011 17:05:53 +0000 (10:05 -0700)]
Hmm, __ne__ was missing

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

13 years agoFix sporadic failure in test_startfile.
Nadeem Vawda [Mon, 18 Apr 2011 23:38:47 +0000 (01:38 +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: The signal handler of the signal module only calls
Victor Stinner [Mon, 18 Apr 2011 14:25:56 +0000 (16:25 +0200)]
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.