]> granicus.if.org Git - python/log
python
13 years agoCloses #13291: NameError in xmlrpc package.
Florent Xicluna [Sun, 30 Oct 2011 19:18:50 +0000 (20:18 +0100)]
Closes #13291: NameError in xmlrpc package.

13 years agoremove unused variable
Benjamin Peterson [Sun, 30 Oct 2011 18:24:44 +0000 (14:24 -0400)]
remove unused variable

13 years agoIssue #10363: Deallocate global locks in Py_Finalize().
Antoine Pitrou [Sun, 30 Oct 2011 18:13:55 +0000 (19:13 +0100)]
Issue #10363: Deallocate global locks in Py_Finalize().

13 years agoFix the return value of set_discard (issue #10519)
Petri Lehtinen [Sun, 30 Oct 2011 12:31:27 +0000 (14:31 +0200)]
Fix the return value of set_discard (issue #10519)

13 years agoAvoid unnecessary recursive function calls (closes #10519)
Petri Lehtinen [Sun, 30 Oct 2011 11:56:41 +0000 (13:56 +0200)]
Avoid unnecessary recursive function calls (closes #10519)

13 years agoAdd a button to the code examples in the doc to show/hide the prompts and output.
Ezio Melotti [Sun, 30 Oct 2011 07:20:19 +0000 (09:20 +0200)]
Add a button to the code examples in the doc to show/hide the prompts and output.

13 years ago#13289: fix typo.
Ezio Melotti [Sat, 29 Oct 2011 07:41:51 +0000 (10:41 +0300)]
#13289: fix typo.

13 years agobring is_integer into tested existence
Benjamin Peterson [Fri, 28 Oct 2011 23:42:48 +0000 (19:42 -0400)]
bring is_integer into tested existence

13 years ago- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
Barry Warsaw [Fri, 28 Oct 2011 21:02:27 +0000 (17:02 -0400)]
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.

13 years ago- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
Barry Warsaw [Fri, 28 Oct 2011 20:52:17 +0000 (16:52 -0400)]
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.

13 years agoDocumentation typo
Florent Xicluna [Fri, 28 Oct 2011 20:14:41 +0000 (22:14 +0200)]
Documentation typo

13 years agoI should be someone
Florent Xicluna [Fri, 28 Oct 2011 20:03:55 +0000 (22:03 +0200)]
I should be someone

13 years agoRemove unused variable.
Florent Xicluna [Fri, 28 Oct 2011 13:00:50 +0000 (15:00 +0200)]
Remove unused variable.

13 years agoCloses #13258: Use callable() built-in in the standard library.
Florent Xicluna [Fri, 28 Oct 2011 12:45:05 +0000 (14:45 +0200)]
Closes #13258: Use callable() built-in in the standard library.

13 years agoImprove HTMLParser example in the doc and fix a couple minor things.
Ezio Melotti [Fri, 28 Oct 2011 11:34:56 +0000 (14:34 +0300)]
Improve HTMLParser example in the doc and fix a couple minor things.

13 years ago#13273: fix a bug that prevented HTMLParser to properly detect some tags when strict...
Ezio Melotti [Fri, 28 Oct 2011 10:21:09 +0000 (13:21 +0300)]
#13273: fix a bug that prevented HTMLParser to properly detect some tags when strict=False.

13 years agoMerge heads.
Ezio Melotti [Fri, 28 Oct 2011 09:32:53 +0000 (12:32 +0300)]
Merge heads.

13 years ago#13278: fix typo.
Ezio Melotti [Fri, 28 Oct 2011 09:22:25 +0000 (12:22 +0300)]
#13278: fix typo.

13 years agoFixes #13270: obsolete reference to old-style/new-style classes.
Florent Xicluna [Fri, 28 Oct 2011 09:21:19 +0000 (11:21 +0200)]
Fixes #13270: obsolete reference to old-style/new-style classes.

13 years agoAdded lost documentation cross-reference.
Vinay Sajip [Thu, 27 Oct 2011 16:50:55 +0000 (17:50 +0100)]
Added lost documentation cross-reference.

13 years agoIssue #10860: Skip the new test if HTTPS is not available
Petri Lehtinen [Wed, 26 Oct 2011 18:29:15 +0000 (21:29 +0300)]
Issue #10860: Skip the new test if HTTPS is not available

13 years agoRefactor a bit the codecs doc.
Ezio Melotti [Tue, 25 Oct 2011 07:40:38 +0000 (10:40 +0300)]
Refactor a bit the codecs doc.

13 years agoFix typo.
Ezio Melotti [Tue, 25 Oct 2011 06:41:13 +0000 (09:41 +0300)]
Fix typo.

13 years agomerge heads
Benjamin Peterson [Tue, 25 Oct 2011 04:04:37 +0000 (00:04 -0400)]
merge heads

13 years agodocument __bytes__ special method (closes #13259)
Benjamin Peterson [Tue, 25 Oct 2011 04:03:51 +0000 (00:03 -0400)]
document __bytes__ special method (closes #13259)

13 years agomerge heads
Petri Lehtinen [Mon, 24 Oct 2011 18:24:58 +0000 (21:24 +0300)]
merge heads

13 years agoIssue #13018: Fix reference leaks in error paths in dictobject.c.
Petri Lehtinen [Mon, 24 Oct 2011 18:12:58 +0000 (21:12 +0300)]
Issue #13018: Fix reference leaks in error paths in dictobject.c.
Patch by Suman Saha.

13 years agoIssue #10332: multiprocessing: fix a race condition when a Pool is closed
Charles-François Natali [Mon, 24 Oct 2011 16:45:29 +0000 (18:45 +0200)]
Issue #10332: multiprocessing: fix a race condition when a Pool is closed
before all tasks have completed.

13 years agonote callable is back in 3.2
Benjamin Peterson [Mon, 24 Oct 2011 12:51:15 +0000 (08:51 -0400)]
note callable is back in 3.2

13 years agoIssue #13255: wrong docstrings in array module.
Florent Xicluna [Mon, 24 Oct 2011 11:14:55 +0000 (13:14 +0200)]
Issue #13255: wrong docstrings in array module.

13 years agoIssue 13141: Demonstrate recommended style for socketserver examples.
Florent Xicluna [Sun, 23 Oct 2011 20:40:37 +0000 (22:40 +0200)]
Issue 13141: Demonstrate recommended style for socketserver examples.

13 years agoAdd the green "New reference" note to the doc of PyException_GetTraceback()
Petri Lehtinen [Sun, 23 Oct 2011 18:03:33 +0000 (21:03 +0300)]
Add the green "New reference" note to the doc of PyException_GetTraceback()

13 years agoIssue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass...
Nick Coghlan [Sun, 23 Oct 2011 12:04:16 +0000 (22:04 +1000)]
Issue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.

13 years agoIssue #9168: now smtpd is able to bind privileged port.
Florent Xicluna [Thu, 20 Oct 2011 21:03:43 +0000 (23:03 +0200)]
Issue #9168: now smtpd is able to bind privileged port.

13 years ago#13233: fix typo.
Ezio Melotti [Thu, 20 Oct 2011 16:51:18 +0000 (19:51 +0300)]
#13233: fix typo.

13 years ago#13219: clarify section about character sets in the re documentation.
Ezio Melotti [Thu, 20 Oct 2011 16:38:04 +0000 (19:38 +0300)]
#13219: clarify section about character sets in the re documentation.

13 years agoNews entry for Issue12529 and Issue12604
Senthil Kumaran [Thu, 20 Oct 2011 16:29:47 +0000 (00:29 +0800)]
News entry for Issue12529 and Issue12604

13 years agoIssue 12668: Fix wording in Whatsnew3.2
Raymond Hettinger [Wed, 19 Oct 2011 21:16:18 +0000 (14:16 -0700)]
Issue 12668: Fix wording in Whatsnew3.2

13 years agoIssue 11931: Minor punctuation/grammar/wording fixups to the regex docs
Raymond Hettinger [Wed, 19 Oct 2011 21:10:07 +0000 (14:10 -0700)]
Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs

13 years agoadjust braces a bit
Benjamin Peterson [Wed, 19 Oct 2011 20:57:40 +0000 (16:57 -0400)]
adjust braces a bit

13 years agourllib.request - syntax changes enhancing readability. By Éric Araujo
Senthil Kumaran [Wed, 19 Oct 2011 18:48:01 +0000 (02:48 +0800)]
urllib.request - syntax changes enhancing readability. By Éric Araujo

13 years ago3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
Senthil Kumaran [Wed, 19 Oct 2011 18:15:36 +0000 (02:15 +0800)]
3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c

13 years ago3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
Senthil Kumaran [Wed, 19 Oct 2011 17:46:00 +0000 (01:46 +0800)]
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by  Petri Lehtinen.

13 years ago3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
Senthil Kumaran [Wed, 19 Oct 2011 17:05:44 +0000 (01:05 +0800)]
3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.

13 years agoRemove duplication.
Ezio Melotti [Wed, 19 Oct 2011 07:58:56 +0000 (10:58 +0300)]
Remove duplication.

13 years agoFixes #10860: Handle empty port after port delimiter in httplib
Łukasz Langa [Tue, 18 Oct 2011 19:17:39 +0000 (21:17 +0200)]
Fixes #10860: Handle empty port after port delimiter in httplib

13 years agoIssue #13188: When called without an explicit traceback argument,
Antoine Pitrou [Tue, 18 Oct 2011 14:40:50 +0000 (16:40 +0200)]
Issue #13188: When called without an explicit traceback argument,
generator.throw() now gets the traceback from the passed exception's
`__traceback__` attribute.  Patch by Petri Lehtinen.

13 years ago#12448: smtplib now flushes stdout while running ``python -m smtplib``
Ezio Melotti [Tue, 18 Oct 2011 10:20:07 +0000 (13:20 +0300)]
#12448: smtplib now flushes stdout while running ``python -m smtplib``
  in order to display the prompt correctly.  Patch by Petri Lehtinen.

13 years ago#12277: add missing comma.
Ezio Melotti [Tue, 18 Oct 2011 09:59:39 +0000 (12:59 +0300)]
#12277: add missing comma.

13 years agoIssue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now avail...
Nadeem Vawda [Mon, 17 Oct 2011 17:34:22 +0000 (19:34 +0200)]
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.

13 years agoplug possible refleak (closes #13199)
Benjamin Peterson [Mon, 17 Oct 2011 17:09:27 +0000 (13:09 -0400)]
plug possible refleak (closes #13199)

13 years agonormalize whitespace in Lib/distutils/msvc9compiler.py
Mark Hammond [Mon, 17 Oct 2011 00:35:31 +0000 (11:35 +1100)]
normalize whitespace in Lib/distutils/msvc9compiler.py

13 years agoIssue #7833: Ext. modules built using distutils on Windows no longer get a manifest
Mark Hammond [Mon, 17 Oct 2011 00:05:57 +0000 (11:05 +1100)]
Issue #7833: Ext. modules built using distutils on Windows no longer get a manifest

13 years agoIssue #10653: Fix time.strftime() on Windows, check for invalid format strings
Victor Stinner [Sun, 16 Oct 2011 21:45:39 +0000 (23:45 +0200)]
Issue #10653: Fix time.strftime() on Windows, check for invalid format strings

13 years agoIssue 13177: Make tracebacks more readable by avoiding chained exceptions in the...
Raymond Hettinger [Sun, 16 Oct 2011 06:50:42 +0000 (23:50 -0700)]
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.

13 years agoUpdate dead references from py.org/dev/faq to the devguide (#13176)
Éric Araujo [Fri, 14 Oct 2011 15:37:45 +0000 (17:37 +0200)]
Update dead references from py.org/dev/faq to the devguide (#13176)

13 years agoBranch merge
Éric Araujo [Fri, 14 Oct 2011 14:50:09 +0000 (16:50 +0200)]
Branch merge

13 years agoIssue #13158: Fix decoding and encoding of base-256 number fields in tarfile.
Lars Gustäbel [Fri, 14 Oct 2011 10:46:40 +0000 (12:46 +0200)]
Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile.

The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.

13 years agoIssue #13025: mimetypes is now reading MIME types using the UTF-8 encoding,
Victor Stinner [Fri, 14 Oct 2011 01:03:35 +0000 (03:03 +0200)]
Issue #13025: mimetypes is now reading MIME types using the UTF-8 encoding,
instead of the locale encoding.

13 years agoIssue #10653: On Windows, use strftime() instead of wcsftime() because
Victor Stinner [Fri, 14 Oct 2011 00:36:13 +0000 (02:36 +0200)]
Issue #10653: On Windows, use strftime() instead of wcsftime() because
wcsftime() doesn't format time zone correctly.

13 years agoIssue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear...
Nadeem Vawda [Thu, 13 Oct 2011 11:34:16 +0000 (13:34 +0200)]
Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.

Also fix the bz2 module, whose classes used the same algorithm.

13 years agoIssue #13145. Fix incorrect documentation for PyNumber_ToBase. Thanks Sven Marnach.
Mark Dickinson [Tue, 11 Oct 2011 17:06:36 +0000 (18:06 +0100)]
Issue #13145. Fix incorrect documentation for PyNumber_ToBase.  Thanks Sven Marnach.

13 years agoIncrease test coverage for distutils.filelist (#11751).
Éric Araujo [Tue, 11 Oct 2011 00:45:51 +0000 (02:45 +0200)]
Increase test coverage for distutils.filelist (#11751).

Patch by Justin Love.

13 years agoFix/improve markup in whatsnew/2.7.
Ezio Melotti [Sun, 9 Oct 2011 21:30:14 +0000 (00:30 +0300)]
Fix/improve markup in whatsnew/2.7.

13 years ago#13138: add missing versionadded.
Ezio Melotti [Sun, 9 Oct 2011 21:02:03 +0000 (00:02 +0300)]
#13138: add missing versionadded.

13 years agoClean-up and improve the priority queue example in the heapq docs.
Raymond Hettinger [Sun, 9 Oct 2011 16:28:14 +0000 (17:28 +0100)]
Clean-up and improve the priority queue example in the heapq docs.

13 years agoBranch merge
Éric Araujo [Sun, 9 Oct 2011 05:32:35 +0000 (07:32 +0200)]
Branch merge

13 years agoAdd tests for Unicode handling in distutils’ check and register (#13114)
Éric Araujo [Sun, 9 Oct 2011 05:25:33 +0000 (07:25 +0200)]
Add tests for Unicode handling in distutils’ check and register (#13114)

13 years agoAs it turns out, this bug was already in the tracker: #11171
Éric Araujo [Sun, 9 Oct 2011 04:32:38 +0000 (06:32 +0200)]
As it turns out, this bug was already in the tracker: #11171

13 years agotest_unicode was forgetting to run the common string tests for str.find()
Antoine Pitrou [Sat, 8 Oct 2011 20:41:35 +0000 (22:41 +0200)]
test_unicode was forgetting to run the common string tests for str.find()

13 years agoFix a missing encoding argument when opening a text file in some of iobench's subtests.
Antoine Pitrou [Sat, 8 Oct 2011 17:40:04 +0000 (19:40 +0200)]
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)

13 years agoFix docstring of distutils.util.byte_compile (followup for #11254)
Éric Araujo [Sat, 8 Oct 2011 01:02:37 +0000 (03:02 +0200)]
Fix docstring of distutils.util.byte_compile (followup for #11254)

13 years agoFix distutils.sysconfig.get_makefile_filename when prefix != exec-prefix
Éric Araujo [Fri, 7 Oct 2011 23:56:52 +0000 (01:56 +0200)]
Fix distutils.sysconfig.get_makefile_filename when prefix != exec-prefix

13 years agoFix test_sysconfig when prefix != exec-prefix (#9100).
Éric Araujo [Fri, 7 Oct 2011 23:55:07 +0000 (01:55 +0200)]
Fix test_sysconfig when prefix != exec-prefix (#9100).

I tested this manually; it would be great to have buildbots using
installed Pythons, including Pythons configured with different prefix
and exec-prefix.

Reported by Zsolt Cserna.

13 years agoFix distutils byte-compilation to comply with PEP 3147 (#11254).
Éric Araujo [Fri, 7 Oct 2011 22:34:13 +0000 (00:34 +0200)]
Fix distutils byte-compilation to comply with PEP 3147 (#11254).

Patch by Jeff Ramnani.  Tested with -B, -O and -OO.

13 years agoMake C code in one distutils test comply with ISO C (#10359).
Éric Araujo [Fri, 7 Oct 2011 21:13:45 +0000 (23:13 +0200)]
Make C code in one distutils test comply with ISO C (#10359).

Patch by Hallvard B Furuseth.

13 years agoFix a typo and a broken link (part of #10536).
Éric Araujo [Fri, 7 Oct 2011 20:02:58 +0000 (22:02 +0200)]
Fix a typo and a broken link (part of #10536).

Found by Franz Glasner in #2504.

13 years agoMerged
Barry Warsaw [Fri, 7 Oct 2011 19:16:20 +0000 (15:16 -0400)]
Merged

13 years agoIssue #7367: Ensure test directory always gets removed.
Ned Deily [Fri, 7 Oct 2011 19:01:40 +0000 (12:01 -0700)]
Issue #7367: Ensure test directory always gets removed.

13 years agoBranch merge.
Barry Warsaw [Fri, 7 Oct 2011 18:45:25 +0000 (14:45 -0400)]
Branch merge.

13 years ago- Issue #11250: Back port fix from 3.3 branch, so that 2to3 can handle files
Barry Warsaw [Fri, 7 Oct 2011 18:44:49 +0000 (14:44 -0400)]
- Issue #11250: Back port fix from 3.3 branch, so that 2to3 can handle files
  with line feeds.  This was ported from the sandbox to the 3.3 branch, but
  didn't make it into 3.2.

- Re-enable lib2to3's test_parser.py tests, though with an expected failure
  (see issue 13125).

13 years agoIssue #12823: remove broken link and replace it with another resource.
Antoine Pitrou [Fri, 7 Oct 2011 14:58:07 +0000 (16:58 +0200)]
Issue #12823: remove broken link and replace it with another resource.

13 years agoIssue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
Antoine Pitrou [Fri, 7 Oct 2011 14:16:31 +0000 (16:16 +0200)]
Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
as "The pipe is being closed") is now mapped to POSIX errno EPIPE
(previously EINVAL).

13 years agoIssue #7367: add NEWS item.
Ned Deily [Thu, 6 Oct 2011 21:31:14 +0000 (14:31 -0700)]
Issue #7367: add NEWS item.

13 years agoIssue #7367: Fix pkgutil.walk_paths to skip directories whose
Ned Deily [Thu, 6 Oct 2011 21:19:08 +0000 (14:19 -0700)]
Issue #7367: Fix pkgutil.walk_paths to skip directories whose
contents cannot be read.

13 years agoIssue #7367: Add test case to test_pkgutil for walking path with
Ned Deily [Thu, 6 Oct 2011 21:19:06 +0000 (14:19 -0700)]
Issue #7367: Add test case to test_pkgutil for walking path with
an unreadable directory.

13 years agoIssue #7425: Refactor test_pydoc test case for '-k' behavior and add
Ned Deily [Thu, 6 Oct 2011 21:19:03 +0000 (14:19 -0700)]
Issue #7425: Refactor test_pydoc test case for '-k' behavior and add
new test cases for importing bad packages and unreadable packages dirs.

13 years agoIssue #12911: Fix memory consumption when calculating the repr() of huge tuples or...
Antoine Pitrou [Thu, 6 Oct 2011 16:57:27 +0000 (18:57 +0200)]
Issue #12911: Fix memory consumption when calculating the repr() of huge tuples or lists.

This introduces a small private API for this common pattern.
The issue has been discovered thanks to Martin's huge-mem buildbot.

13 years agoBranch merge
Éric Araujo [Thu, 6 Oct 2011 11:10:34 +0000 (13:10 +0200)]
Branch merge

13 years agoEnable the only tests for sys.gettrace
Amaury Forgeot d'Arc [Wed, 5 Oct 2011 20:36:05 +0000 (22:36 +0200)]
Enable the only tests for sys.gettrace

13 years agoIssue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle
Charles-François Natali [Wed, 5 Oct 2011 17:53:43 +0000 (19:53 +0200)]
Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.

13 years agoIssue13104 - Fix urllib.request.thishost() utility function.
Senthil Kumaran [Wed, 5 Oct 2011 16:32:02 +0000 (00:32 +0800)]
Issue13104 - Fix urllib.request.thishost() utility function.

13 years agoIssue #13073 - Address the review comments made by Ezio.
Senthil Kumaran [Wed, 5 Oct 2011 15:26:49 +0000 (23:26 +0800)]
Issue  #13073 - Address the review comments made by Ezio.

13 years agoFix typo and case in a recently added test
Éric Araujo [Tue, 4 Oct 2011 23:29:22 +0000 (01:29 +0200)]
Fix typo and case in a recently added test

13 years agoFix markup used in the documentation of sys.prefix and sys.exec_prefix.
Éric Araujo [Tue, 4 Oct 2011 23:28:24 +0000 (01:28 +0200)]
Fix markup used in the documentation of sys.prefix and sys.exec_prefix.

- Using the file role with {placeholders} is IMO clearer than fake
  Python code.

- The fact that sys.version[:3] gives '3.2' is a CPython detail and
  should not be advertised (see #9442), even if some stdlib modules
  currently rely on that detail.

13 years agoMove doc of sys.dont_write_bytecode to make all attributes sorted again
Éric Araujo [Tue, 4 Oct 2011 23:17:38 +0000 (01:17 +0200)]
Move doc of sys.dont_write_bytecode to make all attributes sorted again

13 years agoos.geteuid() may not be available...
Charles-François Natali [Tue, 4 Oct 2011 21:35:47 +0000 (23:35 +0200)]
os.geteuid() may not be available...

13 years agoIssue #11956: Always skip test_import.test_unwritable_directory when run as
Charles-François Natali [Tue, 4 Oct 2011 18:40:58 +0000 (20:40 +0200)]
Issue #11956: Always skip test_import.test_unwritable_directory when run as
root, since the semantics varies across Unix variants.

13 years agoIssue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as
Charles-François Natali [Tue, 4 Oct 2011 17:17:26 +0000 (19:17 +0200)]
Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as
root (directory permissions are ignored).

13 years agoTry to fix linking failures under Windows
Antoine Pitrou [Tue, 4 Oct 2011 12:43:47 +0000 (14:43 +0200)]
Try to fix linking failures under Windows