]> granicus.if.org Git - python/log
python
14 years agoIssue #10359: Remove useless comma, invalid in ISO C
Victor Stinner [Tue, 9 Nov 2010 09:39:41 +0000 (09:39 +0000)]
Issue #10359: Remove useless comma, invalid in ISO C

14 years agoIssue #10359: Use Py_UNICODE for the typecode in array
Victor Stinner [Tue, 9 Nov 2010 09:38:30 +0000 (09:38 +0000)]
Issue #10359: Use Py_UNICODE for the typecode in array

And don't create non constant array, invalid in ISO C.

14 years agoIssue #10359: Remove ";" after function definition, invalid in ISO C
Victor Stinner [Tue, 9 Nov 2010 09:32:19 +0000 (09:32 +0000)]
Issue #10359: Remove ";" after function definition, invalid in ISO C

14 years agoSimplify code
Raymond Hettinger [Tue, 9 Nov 2010 03:43:58 +0000 (03:43 +0000)]
Simplify code

14 years agoFixed a typo in ReST markup.
Alexander Belopolsky [Tue, 9 Nov 2010 03:13:43 +0000 (03:13 +0000)]
Fixed a typo in ReST markup.

14 years agoFix Issue10205 - XML QName error when different tags have same QName.
Senthil Kumaran [Tue, 9 Nov 2010 02:36:59 +0000 (02:36 +0000)]
Fix Issue10205 - XML QName error when different tags have same QName.

14 years agotest_tokenize: use self.assertEqual() instead of plain assert
Victor Stinner [Tue, 9 Nov 2010 01:11:31 +0000 (01:11 +0000)]
test_tokenize: use self.assertEqual() instead of plain assert

14 years agoIssue #10335: Add tokenize.open(), detect the file encoding using
Victor Stinner [Tue, 9 Nov 2010 01:08:59 +0000 (01:08 +0000)]
Issue #10335: Add tokenize.open(), detect the file encoding using
tokenize.detect_encoding() and open it in read only mode.

14 years agoIssue #6011: decode PREFIX, EXEC_PREFIX and PYTHONPATH variables using
Victor Stinner [Mon, 8 Nov 2010 23:49:47 +0000 (23:49 +0000)]
Issue #6011: decode PREFIX, EXEC_PREFIX and PYTHONPATH variables using
_Py_char2wchar(), instead of L"" VAR hack, to escape undecodable bytes using
the surrogateescape error handler.

14 years agoPyUnicode_DecodeFSDefaultAndSize() raises MemoryError if _Py_char2wchar() fails
Victor Stinner [Mon, 8 Nov 2010 23:34:29 +0000 (23:34 +0000)]
PyUnicode_DecodeFSDefaultAndSize() raises MemoryError if _Py_char2wchar() fails

14 years ago_Py_char2wchar() frees the memory on conversion error
Victor Stinner [Mon, 8 Nov 2010 23:30:46 +0000 (23:30 +0000)]
_Py_char2wchar() frees the memory on conversion error

Explain in the documentation that conversion errors should never happen.

14 years agoFixed unit test failure on Windows
Alexander Belopolsky [Mon, 8 Nov 2010 23:10:20 +0000 (23:10 +0000)]
Fixed unit test failure on Windows

14 years agoPyUnicode_EncodeFS() raises an exception if _Py_wchar2char() fails
Victor Stinner [Mon, 8 Nov 2010 22:43:46 +0000 (22:43 +0000)]
PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() fails

 * Add error_pos optional argument to _Py_wchar2char()
 * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if
   _Py_wchar2char() fails

14 years agoThis was actually fixed for the previous alpha.
Éric Araujo [Mon, 8 Nov 2010 21:48:23 +0000 (21:48 +0000)]
This was actually fixed for the previous alpha.

14 years agoFix memory consumption advertised by some test cases
Antoine Pitrou [Mon, 8 Nov 2010 21:40:13 +0000 (21:40 +0000)]
Fix memory consumption advertised by some test cases

14 years agoFix test_hashlib with the bigmem option
Antoine Pitrou [Mon, 8 Nov 2010 20:36:57 +0000 (20:36 +0000)]
Fix test_hashlib with the bigmem option

14 years agoStreamlined code in trace.Ignore and added unit tests.
Alexander Belopolsky [Mon, 8 Nov 2010 18:32:40 +0000 (18:32 +0000)]
Streamlined code in trace.Ignore and added unit tests.

14 years agoAdd missing NEWS entry for a fix committed by Senthil.
Éric Araujo [Mon, 8 Nov 2010 18:15:17 +0000 (18:15 +0000)]
Add missing NEWS entry for a fix committed by Senthil.

All recent modifications to distutils should now be covered in NEWS.

14 years ago#10321: Add support for sending binary DATA and Message objects to smtplib
R. David Murray [Mon, 8 Nov 2010 17:15:13 +0000 (17:15 +0000)]
#10321: Add support for sending binary DATA and Message objects to smtplib

14 years agoMove a news entry to the right section (+ light reformatting)
Éric Araujo [Mon, 8 Nov 2010 17:13:03 +0000 (17:13 +0000)]
Move a news entry to the right section (+ light reformatting)

14 years agoFix next version name.
Georg Brandl [Mon, 8 Nov 2010 16:57:52 +0000 (16:57 +0000)]
Fix next version name.

14 years agoFix typo.
Georg Brandl [Mon, 8 Nov 2010 11:08:35 +0000 (11:08 +0000)]
Fix typo.

14 years agoFix latex conversion glitch in property/feature descriptions.
Georg Brandl [Mon, 8 Nov 2010 11:05:18 +0000 (11:05 +0000)]
Fix latex conversion glitch in property/feature descriptions.

14 years agoExtra space caught by the post-commit-hook, aka Taggnostr :)
Senthil Kumaran [Mon, 8 Nov 2010 02:04:05 +0000 (02:04 +0000)]
Extra space caught by the post-commit-hook, aka Taggnostr :)

14 years agoFix Issue 10303: a small clarification in the tutorial.
Senthil Kumaran [Mon, 8 Nov 2010 01:53:13 +0000 (01:53 +0000)]
Fix Issue 10303: a small clarification in the tutorial.

14 years agotypo: annually->manually
Brian Curtin [Sun, 7 Nov 2010 22:09:05 +0000 (22:09 +0000)]
typo: annually->manually

...unless these are commands you only run once a year :)

14 years agoRemoving reference to ftp.python.org and enhancing RPM README.
Sean Reifscheider [Sun, 7 Nov 2010 21:26:53 +0000 (21:26 +0000)]
Removing reference to ftp.python.org and enhancing RPM README.

14 years agoIssue #10347: ignore leading test count ("[ 1/340]") when using the -f option to...
Antoine Pitrou [Sun, 7 Nov 2010 20:50:51 +0000 (20:50 +0000)]
Issue #10347: ignore leading test count ("[  1/340]") when using the -f option to regrtest.

14 years agostr, bytes, bytearray docstring: remove unnecessary [...]
Victor Stinner [Sun, 7 Nov 2010 19:04:46 +0000 (19:04 +0000)]
str, bytes, bytearray docstring: remove unnecessary [...]

14 years agoFix encode/decode method doc of str, bytes, bytearray types
Victor Stinner [Sun, 7 Nov 2010 18:41:46 +0000 (18:41 +0000)]
Fix encode/decode method doc of str, bytes, bytearray types

 * Specify the default encoding: write 'utf-8' instead of
   sys.getdefaultencoding(), because the default encoding is now constant
 * Specify the default errors value

14 years agoIssue #10329: The trace module writes reports using the input Python script
Victor Stinner [Sun, 7 Nov 2010 15:47:36 +0000 (15:47 +0000)]
Issue #10329: The trace module writes reports using the input Python script
encoding, instead of the locale encoding. Patch written by Alexander
Belopolsky.

14 years agoos module: remove nonbreaking space in a comment
Victor Stinner [Sun, 7 Nov 2010 15:43:39 +0000 (15:43 +0000)]
os module: remove nonbreaking space in a comment

14 years agoUpdate assertComplexIdentical to handle nans correctly.
Mark Dickinson [Sun, 7 Nov 2010 15:31:41 +0000 (15:31 +0000)]
Update assertComplexIdentical to handle nans correctly.

14 years agoIssue #6317: Now winsound.PlaySound only accepts unicode with MvL's approval.
Hirokazu Yamamoto [Sun, 7 Nov 2010 14:29:26 +0000 (14:29 +0000)]
Issue #6317: Now winsound.PlaySound only accepts unicode with MvL's approval.

14 years agoIssue #10337: skip tests of tanh() sign in test_math and test_cmath if tanh()
Victor Stinner [Sun, 7 Nov 2010 14:14:27 +0000 (14:14 +0000)]
Issue #10337: skip tests of tanh() sign in test_math and test_cmath if tanh()
doesn't preserve the zero sign (if TANH_PRESERVES_ZERO_SIGN define is 0).

14 years agoFix Issue10226 - Clarifying the role of the netloc separator.
Senthil Kumaran [Sun, 7 Nov 2010 12:57:04 +0000 (12:57 +0000)]
Fix Issue10226 - Clarifying the role of the netloc separator.

14 years agoIssue #10145: the float.is_integer method was undocumented.
Mark Dickinson [Sun, 7 Nov 2010 12:48:18 +0000 (12:48 +0000)]
Issue #10145: the float.is_integer method was undocumented.

14 years agoChanged entry name because it's hard to merge.
Hirokazu Yamamoto [Sun, 7 Nov 2010 11:32:01 +0000 (11:32 +0000)]
Changed entry name because it's hard to merge.

14 years agoIssue 10297: Add missing import in decimal example snippet.
Mark Dickinson [Sun, 7 Nov 2010 11:24:44 +0000 (11:24 +0000)]
Issue 10297: Add missing import in decimal example snippet.

14 years agoReformatted code a bit.
Hirokazu Yamamoto [Sun, 7 Nov 2010 11:07:44 +0000 (11:07 +0000)]
Reformatted code a bit.

14 years agoAdd a dtoa.c test value that triggered a bug in recent versions of
Mark Dickinson [Sun, 7 Nov 2010 10:01:46 +0000 (10:01 +0000)]
Add a dtoa.c test value that triggered a bug in recent versions of
Gay's dtoa.c (but not for current versions of Python's dtoa.c).
Thanks Rick Regan for finding and reporting this.

14 years agoIssue #6317: Now winsound.PlaySound can accept non ascii filename.
Hirokazu Yamamoto [Sun, 7 Nov 2010 09:23:15 +0000 (09:23 +0000)]
Issue #6317: Now winsound.PlaySound can accept non ascii filename.

14 years agotest_concurrent_futures: remove temporary hack
Victor Stinner [Sun, 7 Nov 2010 04:36:56 +0000 (04:36 +0000)]
test_concurrent_futures: remove temporary hack

14 years agoFormatted code. (Tabify, etc)
Hirokazu Yamamoto [Sun, 7 Nov 2010 02:45:19 +0000 (02:45 +0000)]
Formatted code. (Tabify, etc)

14 years agoAdded more to docstrings for str.format, format_map, and __format__.
Eric Smith [Sat, 6 Nov 2010 19:27:37 +0000 (19:27 +0000)]
Added more to docstrings for str.format, format_map, and __format__.

14 years agoFix #10252 again (hopefully definitely). Patch by Brian Curtin.
Éric Araujo [Sat, 6 Nov 2010 18:03:52 +0000 (18:03 +0000)]
Fix #10252 again (hopefully definitely).  Patch by Brian Curtin.

14 years agoRemove traces of setuptools (#10341)
Éric Araujo [Sat, 6 Nov 2010 16:06:37 +0000 (16:06 +0000)]
Remove traces of setuptools (#10341)

14 years agoCorrect the fix for #10252: Popen objects have no close method.
Éric Araujo [Sat, 6 Nov 2010 15:57:52 +0000 (15:57 +0000)]
Correct the fix for #10252: Popen objects have no close method.

14 years agoAdd missing NEWS entries for some of my commits.
Éric Araujo [Sat, 6 Nov 2010 15:01:07 +0000 (15:01 +0000)]
Add missing NEWS entries for some of my commits.

14 years agoRemoved unused test classes from test_format_map().
Eric Smith [Sat, 6 Nov 2010 14:43:26 +0000 (14:43 +0000)]
Removed unused test classes from test_format_map().

14 years agoAdded example for str.format_map().
Eric Smith [Sat, 6 Nov 2010 13:22:13 +0000 (13:22 +0000)]
Added example for str.format_map().

14 years agotest_concurrent_futures: dump ulimit -a to check a failure on x86 FreeBSD 7.2 3.x...
Victor Stinner [Sat, 6 Nov 2010 13:10:29 +0000 (13:10 +0000)]
test_concurrent_futures: dump ulimit -a to check a failure on x86 FreeBSD 7.2 3.x, buildbot

14 years agoos.get_exec_path() ignores BytesWarning instead of recoding them
Victor Stinner [Sat, 6 Nov 2010 12:59:33 +0000 (12:59 +0000)]
os.get_exec_path() ignores BytesWarning instead of recoding them

Use only one global warning.catch_warnings() context, instead of two local
contexts. Improve also the explaination why the function uses a local import.

14 years ago#10334: add a role to refer to Python source files in SVN.
Georg Brandl [Sat, 6 Nov 2010 07:19:35 +0000 (07:19 +0000)]
#10334: add a role to refer to Python source files in SVN.

14 years agoTweak example to make clear the argument is a boolean, not any integer.
Éric Araujo [Sat, 6 Nov 2010 07:03:07 +0000 (07:03 +0000)]
Tweak example to make clear the argument is a boolean, not any integer.

With Raymond’s approval.

14 years agoFix wrapper/wrapped typo (with Raymond’s blessing)
Éric Araujo [Sat, 6 Nov 2010 06:33:03 +0000 (06:33 +0000)]
Fix wrapper/wrapped typo (with Raymond’s blessing)

14 years agoFix typo
Éric Araujo [Sat, 6 Nov 2010 06:30:16 +0000 (06:30 +0000)]
Fix typo

14 years agoRemove traces of Mac OS 9 support, again (#9508).
Éric Araujo [Sat, 6 Nov 2010 06:00:54 +0000 (06:00 +0000)]
Remove traces of Mac OS 9 support, again (#9508).

This was done in r80805 (#7908) and erroneously brought back by the
distutils revert.  This commit removes more code than the original,
which was uncomplete.  There is no NEWS entry, like in r80805.

14 years agoFix typo from r86170.
Éric Araujo [Sat, 6 Nov 2010 04:59:27 +0000 (04:59 +0000)]
Fix typo from r86170.

14 years agoPrevent race condition with mkdir in distutils. Patch by Arfrever on #9281.
Éric Araujo [Sat, 6 Nov 2010 04:48:05 +0000 (04:48 +0000)]
Prevent race condition with mkdir in distutils.  Patch by Arfrever on #9281.

14 years agoAdd missing NEWS entry for r86239.
Éric Araujo [Sat, 6 Nov 2010 04:24:00 +0000 (04:24 +0000)]
Add missing NEWS entry for r86239.

14 years agoPrevent ResourceWarnings in test_gettext
Éric Araujo [Sat, 6 Nov 2010 04:11:59 +0000 (04:11 +0000)]
Prevent ResourceWarnings in test_gettext

14 years agoFix caching error found by regrtest -R (#10229)
Éric Araujo [Sat, 6 Nov 2010 04:09:29 +0000 (04:09 +0000)]
Fix caching error found by regrtest -R (#10229)

14 years agoMake sure each test can be run standalone (./python Lib/distutils/tests/x.py)
Éric Araujo [Sat, 6 Nov 2010 02:44:43 +0000 (02:44 +0000)]
Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)

14 years agoFix one omission in r78359
Éric Araujo [Sat, 6 Nov 2010 02:12:51 +0000 (02:12 +0000)]
Fix one omission in r78359

14 years agoAlso close file descriptors from os.popen and subprocess.Popen
Éric Araujo [Sat, 6 Nov 2010 02:10:32 +0000 (02:10 +0000)]
Also close file descriptors from os.popen and subprocess.Popen

14 years agoIssue #10330: trace module can now be used with python built without threads.
Alexander Belopolsky [Sat, 6 Nov 2010 01:31:16 +0000 (01:31 +0000)]
Issue #10330: trace module can now be used with python built without threads.

14 years agoClear up ResourceWarnings
Brian Curtin [Sat, 6 Nov 2010 01:30:41 +0000 (01:30 +0000)]
Clear up ResourceWarnings

14 years agoOf course, I forgot one file in r86223.
Éric Araujo [Fri, 5 Nov 2010 23:59:32 +0000 (23:59 +0000)]
Of course, I forgot one file in r86223.

14 years agoAdd missing entry for r86223.
Éric Araujo [Fri, 5 Nov 2010 23:58:34 +0000 (23:58 +0000)]
Add missing entry for r86223.

14 years agoAlways close files in distutils code and tests (#10252).
Éric Araujo [Fri, 5 Nov 2010 23:51:56 +0000 (23:51 +0000)]
Always close files in distutils code and tests (#10252).

14 years agoMore what's new
Antoine Pitrou [Fri, 5 Nov 2010 22:18:28 +0000 (22:18 +0000)]
More what's new

14 years agoUpdate 3.2 what's new
Antoine Pitrou [Fri, 5 Nov 2010 22:13:55 +0000 (22:13 +0000)]
Update 3.2 what's new

14 years agoIssue #10180: Pickling file objects is now explicitly forbidden, since
Antoine Pitrou [Fri, 5 Nov 2010 21:15:39 +0000 (21:15 +0000)]
Issue #10180: Pickling file objects is now explicitly forbidden, since
unpickling them produced nonsensical results.

14 years agoOutput served URL when running ssl_servers
Antoine Pitrou [Fri, 5 Nov 2010 20:26:59 +0000 (20:26 +0000)]
Output served URL when running ssl_servers

14 years agoFix test_httplib when built without threads
Antoine Pitrou [Fri, 5 Nov 2010 20:17:55 +0000 (20:17 +0000)]
Fix test_httplib when built without threads

14 years agoFix bootstrap issues when building without threads
Antoine Pitrou [Fri, 5 Nov 2010 19:58:28 +0000 (19:58 +0000)]
Fix bootstrap issues when building without threads

14 years agoIssue #10311: The signal module now restores errno before returning from
Antoine Pitrou [Fri, 5 Nov 2010 19:47:27 +0000 (19:47 +0000)]
Issue #10311: The signal module now restores errno before returning from
its low-level signal handler.  Patch by Hallvard B Furuseth.

14 years agoIssue #10282: Add a `nntp_implementation` attribute to NNTP objects.
Antoine Pitrou [Fri, 5 Nov 2010 19:16:37 +0000 (19:16 +0000)]
Issue #10282: Add a `nntp_implementation` attribute to NNTP objects.

14 years agoFixed socket_gethostname() on windows.
Hirokazu Yamamoto [Fri, 5 Nov 2010 17:24:13 +0000 (17:24 +0000)]
Fixed socket_gethostname() on windows.

14 years agoIssue #10288: The deprecated family of "char"-handling macros
David Malcolm [Fri, 5 Nov 2010 17:23:41 +0000 (17:23 +0000)]
Issue #10288: The deprecated family of "char"-handling macros
(ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc
instead.

14 years agoClose subprocess pipes to clean up ResourceWarnings
Brian Curtin [Fri, 5 Nov 2010 17:22:46 +0000 (17:22 +0000)]
Close subprocess pipes to clean up ResourceWarnings

14 years agoFix a number of ResourceWarnings on Windows due to open pipes.
Brian Curtin [Fri, 5 Nov 2010 17:09:05 +0000 (17:09 +0000)]
Fix a number of ResourceWarnings on Windows due to open pipes.

14 years agoAdd socket cleanup for ResourceWarning and update test to use skip decorator
Brian Curtin [Fri, 5 Nov 2010 15:47:45 +0000 (15:47 +0000)]
Add socket cleanup for ResourceWarning and update test to use skip decorator

14 years agoMerge the doc for assertTrue/False, assert[Not]AlmostEqual, assert[Not]RegexpMatches...
Ezio Melotti [Fri, 5 Nov 2010 15:43:40 +0000 (15:43 +0000)]
Merge the doc for assertTrue/False, assert[Not]AlmostEqual, assert[Not]RegexpMatches, rephrase a couple of paragraphs, and remove redundant doc about the msg arg.

14 years agoFix ResourceWarning from subprocess pipes being left open.
Brian Curtin [Fri, 5 Nov 2010 15:40:27 +0000 (15:40 +0000)]
Fix ResourceWarning from subprocess pipes being left open.

14 years agoFix ResourceWarning from subprocess pipe.
Brian Curtin [Fri, 5 Nov 2010 15:38:47 +0000 (15:38 +0000)]
Fix ResourceWarning from subprocess pipe.

14 years agoClose subprocess pipes in _kill. Fixes a number of ResourceWarnings.
Brian Curtin [Fri, 5 Nov 2010 15:17:11 +0000 (15:17 +0000)]
Close subprocess pipes in _kill. Fixes a number of ResourceWarnings.

14 years agoClose subprocess pipes in the non-UNIX section of run_cgi.
Brian Curtin [Fri, 5 Nov 2010 15:04:48 +0000 (15:04 +0000)]
Close subprocess pipes in the non-UNIX section of run_cgi.
Clears a number of ResourceWarnings in test_httpservers.

14 years agoShift the pipe-using code into an else block, then close the pipe
Brian Curtin [Fri, 5 Nov 2010 14:48:35 +0000 (14:48 +0000)]
Shift the pipe-using code into an else block, then close the pipe
in finally. Removes two ResourceWarnings.

14 years agoFollowup to r86170: fix reference leak in str.format
Antoine Pitrou [Fri, 5 Nov 2010 12:23:55 +0000 (12:23 +0000)]
Followup to r86170: fix reference leak in str.format

14 years agoMove glossary entry to the right position and fix link.
Georg Brandl [Fri, 5 Nov 2010 07:10:41 +0000 (07:10 +0000)]
Move glossary entry to the right position and fix link.

14 years agoAdd cleanups to stdout/stderr pipes to remove ResourceWarnings.
Brian Curtin [Fri, 5 Nov 2010 03:58:52 +0000 (03:58 +0000)]
Add cleanups to stdout/stderr pipes to remove ResourceWarnings.

14 years agoIssue #10279: fix test_gc under Win64.
Antoine Pitrou [Fri, 5 Nov 2010 00:05:25 +0000 (00:05 +0000)]
Issue #10279: fix test_gc under Win64.

14 years agoIssue #10283: Add a `group_pattern` argument to NNTP.list().
Antoine Pitrou [Thu, 4 Nov 2010 21:36:15 +0000 (21:36 +0000)]
Issue #10283: Add a `group_pattern` argument to NNTP.list().

14 years agoIssue #3699: Fix test_bigaddrspace and extend it to test bytestrings
Antoine Pitrou [Thu, 4 Nov 2010 20:48:37 +0000 (20:48 +0000)]
Issue #3699: Fix test_bigaddrspace and extend it to test bytestrings
as well as unicode strings.  Initial patch by Sandro Tosi.

14 years agoIssue #10293: Remove obsolete field in the PyMemoryView structure,
Antoine Pitrou [Thu, 4 Nov 2010 20:30:33 +0000 (20:30 +0000)]
Issue #10293: Remove obsolete field in the PyMemoryView structure,
unused undocumented value PyBUF_SHADOW, and strangely-looking code in
PyMemoryView_GetContiguous.

14 years agoMove the deprecated aliases in a new section.
Ezio Melotti [Thu, 4 Nov 2010 19:09:28 +0000 (19:09 +0000)]
Move the deprecated aliases in a new section.

14 years agoIssue #6081: Add str.format_map. str.format_map(mapping) is similar to str.format...
Eric Smith [Thu, 4 Nov 2010 17:06:58 +0000 (17:06 +0000)]
Issue #6081: Add str.format_map. str.format_map(mapping) is similar to str.format(**mapping), except mapping does not get converted to a dict.

14 years agoIssue #10314: improve performance of JSON encoding with sort_keys=True
Antoine Pitrou [Thu, 4 Nov 2010 16:51:32 +0000 (16:51 +0000)]
Issue #10314: improve performance of JSON encoding with sort_keys=True