]> granicus.if.org Git - python/log
python
11 years agomerge 3.3
Benjamin Peterson [Fri, 24 May 2013 21:36:04 +0000 (14:36 -0700)]
merge 3.3

11 years agoindicate that read/write work with bytes (closes #18009)
Benjamin Peterson [Fri, 24 May 2013 21:35:57 +0000 (14:35 -0700)]
indicate that read/write work with bytes (closes #18009)

11 years agomerge fix for issue #17953
Brett Cannon [Fri, 24 May 2013 21:31:37 +0000 (17:31 -0400)]
merge fix for issue #17953

11 years agoFix #17272 - Make Request.full_url and Request.get_full_url return same result under...
Senthil Kumaran [Fri, 24 May 2013 16:14:12 +0000 (09:14 -0700)]
Fix #17272 - Make Request.full_url and Request.get_full_url return same result under all circumstances.
Document the change of Request.full_url to a property.

11 years agoIssue #17953: document that sys.modules shouldn't be replaced (thanks
Brett Cannon [Fri, 24 May 2013 12:05:07 +0000 (08:05 -0400)]
Issue #17953: document that sys.modules shouldn't be replaced (thanks
to interp->modules) and that deleting essential items from the dict
can cause Python to blow up.

Thanks to Terry Reedy for coming up with initial wording and Yogesh
Chaudhari for coming up with a patch using that wording in parallel to
my own patch.

11 years ago(3.3->default) Issue #17269: Workaround for a platform bug in getaddrinfo on OSX
Ronald Oussoren [Fri, 24 May 2013 11:51:21 +0000 (13:51 +0200)]
(3.3->default) Issue #17269: Workaround for a platform bug in getaddrinfo on OSX

Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.

11 years agoIssue #17269: Workaround for a platform bug in getaddrinfo on OSX
Ronald Oussoren [Fri, 24 May 2013 11:47:37 +0000 (13:47 +0200)]
Issue #17269: Workaround for a platform bug in getaddrinfo on OSX

Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.

11 years agomerge from 3.3
Senthil Kumaran [Thu, 23 May 2013 12:28:34 +0000 (05:28 -0700)]
merge from 3.3

Fix #18007 : Document CookieJar.add_cookie_header request parameter changes in 3.3 and 3.4.

11 years agoFix #18007 : Document CookieJar.add_cookie_header request parameter changes in 3.3
Senthil Kumaran [Thu, 23 May 2013 12:27:38 +0000 (05:27 -0700)]
Fix #18007 : Document CookieJar.add_cookie_header request parameter changes in 3.3

11 years agoMerge issue 17844 from 3.3
Nick Coghlan [Thu, 23 May 2013 10:25:09 +0000 (20:25 +1000)]
Merge issue 17844 from 3.3

11 years agoIssue 17844: Clarify meaning of different codec tables
Nick Coghlan [Thu, 23 May 2013 10:24:02 +0000 (20:24 +1000)]
Issue 17844: Clarify meaning of different codec tables

11 years agomerge
Raymond Hettinger [Thu, 23 May 2013 07:15:19 +0000 (00:15 -0700)]
merge

11 years agoIssue #18031: %-formatting isn't dead yet and might pull through.
Raymond Hettinger [Thu, 23 May 2013 07:14:47 +0000 (00:14 -0700)]
Issue #18031:  %-formatting isn't dead yet and might pull through.

11 years agoIssue #17532: merge
Ned Deily [Wed, 22 May 2013 22:24:44 +0000 (15:24 -0700)]
Issue #17532: merge

11 years agoIssue #17532: Always include Options menu for IDLE on OS X.
Ned Deily [Wed, 22 May 2013 22:19:40 +0000 (15:19 -0700)]
Issue #17532: Always include Options menu for IDLE on OS X.
Patch by Guilherme Simões.

11 years agomerge 3.3
Benjamin Peterson [Wed, 22 May 2013 20:27:32 +0000 (13:27 -0700)]
merge 3.3

11 years agoadd test for inequality
Benjamin Peterson [Wed, 22 May 2013 20:27:25 +0000 (13:27 -0700)]
add test for inequality

11 years agoIssue #16986: ElementTree now correctly parses a string input not only when
Serhiy Storchaka [Wed, 22 May 2013 14:21:06 +0000 (17:21 +0300)]
Issue #16986: ElementTree now correctly parses a string input not only when
an internal XML encoding is UTF-8 or US-ASCII.

11 years agoMove a NEWS entity to a correct place.
Serhiy Storchaka [Wed, 22 May 2013 14:19:41 +0000 (17:19 +0300)]
Move a NEWS entity to a correct place.

11 years agoIssue #16986: ElementTree now correctly parses a string input not only when
Serhiy Storchaka [Wed, 22 May 2013 14:07:51 +0000 (17:07 +0300)]
Issue #16986: ElementTree now correctly parses a string input not only when
an internal XML encoding is UTF-8 or US-ASCII.

11 years agoIssue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.
Serhiy Storchaka [Wed, 22 May 2013 12:35:35 +0000 (15:35 +0300)]
Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.

11 years agoIssue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.
Serhiy Storchaka [Wed, 22 May 2013 12:33:09 +0000 (15:33 +0300)]
Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.

11 years agoFix issue #17996: expose socket.AF_LINK constant on BSD and OSX.
Giampaolo Rodola' [Tue, 21 May 2013 19:02:04 +0000 (21:02 +0200)]
Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.

11 years agomerge #17973: fix technical inaccuracy in faq entry (it now passes doctest).
R David Murray [Tue, 21 May 2013 15:45:09 +0000 (11:45 -0400)]
merge #17973: fix technical inaccuracy in faq entry (it now passes doctest).

11 years ago#17973: fix technical inaccuracy in faq entry (it now passes doctest).
R David Murray [Tue, 21 May 2013 15:44:41 +0000 (11:44 -0400)]
#17973: fix technical inaccuracy in faq entry (it now passes doctest).

11 years agoIssue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickled
Serhiy Storchaka [Tue, 21 May 2013 09:47:57 +0000 (12:47 +0300)]
Issue #17900: Allowed pickling of recursive OrderedDicts.  Decreased pickled
size and pickling time.

11 years agoBacked out changeset c0f2b038fc12
Charles-François Natali [Tue, 21 May 2013 08:45:46 +0000 (10:45 +0200)]
Backed out changeset c0f2b038fc12

11 years agoIssue #17683: socket module: return AF_UNIX addresses in Linux abstract
Charles-François Natali [Tue, 21 May 2013 07:49:18 +0000 (09:49 +0200)]
Issue #17683: socket module: return AF_UNIX addresses in Linux abstract
namespace as string.

11 years ago#14146: merge with 3.3.
Roger Serwy [Tue, 21 May 2013 03:16:53 +0000 (22:16 -0500)]
#14146: merge with 3.3.

11 years ago#14146: Highlight source line while debugging on Windows.
Roger Serwy [Tue, 21 May 2013 03:13:39 +0000 (22:13 -0500)]
#14146: Highlight source line while debugging on Windows.

11 years agoCloses #17743: Merged fix from 3.3.
Vinay Sajip [Mon, 20 May 2013 22:39:11 +0000 (15:39 -0700)]
Closes #17743: Merged fix from 3.3.

11 years agoIssue #17743: Now use extended syntax of set command in .bat files.
Vinay Sajip [Mon, 20 May 2013 22:38:12 +0000 (15:38 -0700)]
Issue #17743: Now use extended syntax of set command in .bat files.

11 years agoCloses #17744: Merged fix from 3.3.
Vinay Sajip [Mon, 20 May 2013 22:30:10 +0000 (15:30 -0700)]
Closes #17744: Merged fix from 3.3.

11 years agoIssue #17744: Now unset VIRTUAL_ENV environment variable when deactivating.
Vinay Sajip [Mon, 20 May 2013 22:28:52 +0000 (15:28 -0700)]
Issue #17744: Now unset VIRTUAL_ENV environment variable when deactivating.

11 years agoIssue #18026: merge
Ned Deily [Mon, 20 May 2013 21:32:06 +0000 (14:32 -0700)]
Issue #18026: merge

11 years agoIssue #18026: fix ctypes doc typo
Ned Deily [Mon, 20 May 2013 21:29:44 +0000 (14:29 -0700)]
Issue #18026: fix ctypes doc typo

11 years agochange AST codegen to use PyModule_AddIntMacro
Benjamin Peterson [Mon, 20 May 2013 17:28:48 +0000 (10:28 -0700)]
change AST codegen to use PyModule_AddIntMacro

11 years agoIssue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
Charles-Francois Natali [Mon, 20 May 2013 17:13:19 +0000 (19:13 +0200)]
Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
when applicable.

11 years agoIssue #17684: Fix some test_socket failures due to limited FD passing support
Charles-Francois Natali [Mon, 20 May 2013 17:08:19 +0000 (19:08 +0200)]
Issue #17684: Fix some test_socket failures due to limited FD passing support
on OS-X. Patch by Jeff Ramnani.

11 years agoIssue #17914: We can now inline _bsd_cpu_count().
Charles-Francois Natali [Mon, 20 May 2013 15:40:32 +0000 (17:40 +0200)]
Issue #17914: We can now inline _bsd_cpu_count().

11 years agoIssue #17914: Remove OS-X special-case, and use the correct int type.
Charles-Francois Natali [Mon, 20 May 2013 15:31:06 +0000 (17:31 +0200)]
Issue #17914: Remove OS-X special-case, and use the correct int type.

11 years agotest that the compiler support -Werror=statement-after-declaration before using it
Benjamin Peterson [Mon, 20 May 2013 15:22:04 +0000 (08:22 -0700)]
test that the compiler support -Werror=statement-after-declaration before using it

11 years agoMerge #17973: Add FAQ entry for ([],)[0] += [1] both extending and raising.
R David Murray [Mon, 20 May 2013 14:33:27 +0000 (10:33 -0400)]
Merge #17973: Add FAQ entry for ([],)[0] += [1] both extending and raising.

11 years ago#17973: Add FAQ entry for ([],)[0] += [1] both extending and raising.
R David Murray [Mon, 20 May 2013 14:32:46 +0000 (10:32 -0400)]
#17973: Add FAQ entry for ([],)[0] += [1] both extending and raising.

This has come up often enough now on the tracker that it deserves a FAQ entry.

11 years ago#17955: minor updates to Functional howto
Andrew Kuchling [Mon, 20 May 2013 14:14:53 +0000 (10:14 -0400)]
#17955: minor updates to Functional howto

* Describe compress() and accumulate()
* Add a subsection on combinatoric functions.
* Add a forward link to skip the theoretical discussion in the first section.
* Clarify what filterfalse() is the opposite of.
* Remove the old outline and some notes at the end.
* Various small edits.

11 years agoIssue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
Charles-Francois Natali [Mon, 20 May 2013 12:40:46 +0000 (14:40 +0200)]
Issue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
initial patch by Trent Nelson.

11 years ago#14097: merge with 3.3.
Ezio Melotti [Mon, 20 May 2013 05:14:14 +0000 (08:14 +0300)]
#14097: merge with 3.3.

11 years ago#14097: improve the "introduction" page of the tutorial.
Ezio Melotti [Mon, 20 May 2013 05:12:32 +0000 (08:12 +0300)]
#14097: improve the "introduction" page of the tutorial.

11 years agomerge 3.3
Benjamin Peterson [Mon, 20 May 2013 02:39:46 +0000 (19:39 -0700)]
merge 3.3

11 years agoadd recursive repr test
Benjamin Peterson [Mon, 20 May 2013 02:39:38 +0000 (19:39 -0700)]
add recursive repr test

11 years agoGet rid of ugly code duplication for ElementTree.parse when the accelerator
Eli Bendersky [Mon, 20 May 2013 01:47:23 +0000 (18:47 -0700)]
Get rid of ugly code duplication for ElementTree.parse when the accelerator
is imported. Instead, ElementTree.parse can look for a special internal method
defined by the accelerator.

11 years agoAdd some testing to verify which module was imported in ET tests.
Eli Bendersky [Mon, 20 May 2013 00:49:54 +0000 (17:49 -0700)]
Add some testing to verify which module was imported in ET tests.

This is useful when mucking with import_fresh_module to either force or block
importing of the _elementtree accelerator. These tests in place provide an
immediate indication whether the accelerator was actually imported and overrode
the classes it should have.

11 years agoIssue #17989: fix typo in error message
Eli Bendersky [Mon, 20 May 2013 00:00:28 +0000 (17:00 -0700)]
Issue #17989: fix typo in error message

11 years agoIssue #17989: fix typo in error message
Eli Bendersky [Sun, 19 May 2013 23:59:59 +0000 (16:59 -0700)]
Issue #17989: fix typo in error message

11 years agonormalize whitespace
Eli Bendersky [Sun, 19 May 2013 16:27:13 +0000 (09:27 -0700)]
normalize whitespace

11 years agoCleanup even more dead code
Eli Bendersky [Sun, 19 May 2013 16:25:52 +0000 (09:25 -0700)]
Cleanup even more dead code

11 years agoCleanup more old ET library leftovers
Eli Bendersky [Sun, 19 May 2013 16:24:43 +0000 (09:24 -0700)]
Cleanup more old ET library leftovers

11 years agoIssue #17988: remove unused alias for Element and rename the used one
Eli Bendersky [Sun, 19 May 2013 16:20:50 +0000 (09:20 -0700)]
Issue #17988: remove unused alias for Element and rename the used one

Renaming to _Element_Py for clarity and moving it to a more logical location.
_ElementInterface OTOH is unused and is therefore removed.

Close #17988

11 years agoClarify docs too: events can be any sequence (not that the C code supports it)
Eli Bendersky [Sun, 19 May 2013 16:09:24 +0000 (09:09 -0700)]
Clarify docs too: events can be any sequence (not that the C code supports it)

11 years ago_elementtree.XMLParser._setevents should support any sequence, not just tuples
Eli Bendersky [Sun, 19 May 2013 16:01:49 +0000 (09:01 -0700)]
_elementtree.XMLParser._setevents should support any sequence, not just tuples

Also clean up some code around this

11 years agoTry to make test more reliable (saw some sporadic failures on buildbots)
Antoine Pitrou [Sun, 19 May 2013 13:55:59 +0000 (15:55 +0200)]
Try to make test more reliable (saw some sporadic failures on buildbots)

11 years agoTry to make test more reliable (saw some sporadic failures on buildbots)
Antoine Pitrou [Sun, 19 May 2013 13:55:40 +0000 (15:55 +0200)]
Try to make test more reliable (saw some sporadic failures on buildbots)

11 years agoIssue #11995: test_pydoc doesn't import all sys.path modules anymore.
Antoine Pitrou [Sun, 19 May 2013 13:46:37 +0000 (15:46 +0200)]
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.

11 years agoIssue #11995: test_pydoc doesn't import all sys.path modules anymore.
Antoine Pitrou [Sun, 19 May 2013 13:44:54 +0000 (15:44 +0200)]
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.

11 years agoIssue #17812: Fixed quadratic complexity of base64.b32encode().
Serhiy Storchaka [Sun, 19 May 2013 08:49:32 +0000 (11:49 +0300)]
Issue #17812: Fixed quadratic complexity of base64.b32encode().
Optimize base64.b32encode() and base64.b32decode() (speed up to 3x).

11 years agoIssue #17812: Fixed quadratic complexity of base64.b32encode().
Serhiy Storchaka [Sun, 19 May 2013 08:41:15 +0000 (11:41 +0300)]
Issue #17812: Fixed quadratic complexity of base64.b32encode().

11 years agoIssue #17937: Try harder to collect cyclic garbage at shutdown.
Antoine Pitrou [Sat, 18 May 2013 23:11:58 +0000 (01:11 +0200)]
Issue #17937: Try harder to collect cyclic garbage at shutdown.

11 years agoIssue #17901: fix TreeBuilder construction for an explicit element_factory=None
Eli Bendersky [Sat, 18 May 2013 22:47:58 +0000 (15:47 -0700)]
Issue #17901: fix TreeBuilder construction for an explicit element_factory=None

Based on report and patch by Aaron Oakley.

11 years agoIssue #17901: fix TreeBuilder construction for an explicit element_factory=None
Eli Bendersky [Sat, 18 May 2013 22:47:16 +0000 (15:47 -0700)]
Issue #17901: fix TreeBuilder construction for an explicit element_factory=None

Based on report and patch by Aaron Oakley.

11 years agoRe-enabled skipped test.
Vinay Sajip [Sat, 18 May 2013 17:19:54 +0000 (10:19 -0700)]
Re-enabled skipped test.

11 years agoMerge.
Richard Oudkerk [Sat, 18 May 2013 17:13:16 +0000 (18:13 +0100)]
Merge.

11 years agoClose file before reopening to keep Windows happy in test_sax.
Richard Oudkerk [Sat, 18 May 2013 17:11:30 +0000 (18:11 +0100)]
Close file before reopening to keep Windows happy in test_sax.

11 years agoUse PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
Richard Oudkerk [Sat, 18 May 2013 16:35:19 +0000 (17:35 +0100)]
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.

11 years agoIssue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using...
Antoine Pitrou [Sat, 18 May 2013 15:59:12 +0000 (17:59 +0200)]
Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).

11 years agoIssue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using...
Antoine Pitrou [Sat, 18 May 2013 15:56:42 +0000 (17:56 +0200)]
Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).

11 years agoIssue #17989: element_setattro returned incorrect error value.
Eli Bendersky [Sat, 18 May 2013 14:53:47 +0000 (07:53 -0700)]
Issue #17989: element_setattro returned incorrect error value.

This caused an exception to be raised later than expected.

11 years agoIssue #17989: element_setattro returned incorrect error value.
Eli Bendersky [Sat, 18 May 2013 14:52:34 +0000 (07:52 -0700)]
Issue #17989: element_setattro returned incorrect error value.

This caused an exception to be raised later than expected.

11 years agoUndo the deprecation of _asdict().
Raymond Hettinger [Sat, 18 May 2013 07:05:20 +0000 (00:05 -0700)]
Undo the deprecation of _asdict().

Backed out changeset c4ca39bece9d

11 years agoDeprecate nametuple._asdict()
Raymond Hettinger [Sat, 18 May 2013 00:14:27 +0000 (17:14 -0700)]
Deprecate nametuple._asdict()

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 23:43:58 +0000 (16:43 -0700)]
merge

11 years agoUpdate docstring for _asdict() to indicate it is obsolete.
Raymond Hettinger [Fri, 17 May 2013 23:43:14 +0000 (16:43 -0700)]
Update docstring for _asdict() to indicate it is obsolete.
Use the cleaner looking @property style for __dict__.
Move _replace() to be just after make() to indicate that
it is a core method on named tuples.

11 years agorewrite the parsing of field names to be more consistent wrt recursive expansion
Benjamin Peterson [Fri, 17 May 2013 23:22:31 +0000 (18:22 -0500)]
rewrite the parsing of field names to be more consistent wrt recursive expansion

11 years agomerge 3.3
Benjamin Peterson [Fri, 17 May 2013 22:35:28 +0000 (17:35 -0500)]
merge 3.3

11 years agoFileIO.readall(): remove trailing space from an exception message
Victor Stinner [Fri, 17 May 2013 22:38:43 +0000 (00:38 +0200)]
FileIO.readall(): remove trailing space from an exception message

11 years agoIssue #15758: Fix FileIO.readall() so it no longer has O(n**2) complexity.
Richard Oudkerk [Fri, 17 May 2013 22:34:42 +0000 (23:34 +0100)]
Issue #15758: Fix FileIO.readall() so it no longer has O(n**2) complexity.

11 years agoonly recursively expand in the format spec (closes #17644)
Benjamin Peterson [Fri, 17 May 2013 22:34:30 +0000 (17:34 -0500)]
only recursively expand in the format spec (closes #17644)

11 years agoreset __class__, so multiple runs don't fail (closes #17999)
Benjamin Peterson [Fri, 17 May 2013 16:33:26 +0000 (11:33 -0500)]
reset __class__, so multiple runs don't fail (closes #17999)

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 10:24:54 +0000 (03:24 -0700)]
merge

11 years agoIssue #17563: Fix dict resize performance regression.
Raymond Hettinger [Fri, 17 May 2013 10:01:13 +0000 (03:01 -0700)]
Issue #17563: Fix dict resize performance regression.

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 09:29:27 +0000 (02:29 -0700)]
merge

11 years agoRemove unnecessary exception handler.
Raymond Hettinger [Fri, 17 May 2013 09:28:33 +0000 (02:28 -0700)]
Remove unnecessary exception handler.

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 09:24:18 +0000 (02:24 -0700)]
merge

11 years agoIgnore Mac OS X entries for .DS_Store
Raymond Hettinger [Fri, 17 May 2013 09:23:16 +0000 (02:23 -0700)]
Ignore Mac OS X entries for .DS_Store

11 years agoIssue #14596: The struct.Struct() objects now use more compact implementation.
Serhiy Storchaka [Fri, 17 May 2013 07:49:44 +0000 (10:49 +0300)]
Issue #14596: The struct.Struct() objects now use more compact implementation.

11 years agoFix some bugs in Tools/scripts/abitype.py.
Serhiy Storchaka [Fri, 17 May 2013 07:18:40 +0000 (10:18 +0300)]
Fix some bugs in Tools/scripts/abitype.py.

11 years agoFix some bugs in Tools/scripts/abitype.py.
Serhiy Storchaka [Fri, 17 May 2013 07:17:43 +0000 (10:17 +0300)]
Fix some bugs in Tools/scripts/abitype.py.

11 years agomerge 3.3
Benjamin Peterson [Fri, 17 May 2013 00:38:48 +0000 (19:38 -0500)]
merge 3.3

11 years agomove definition to top of block
Benjamin Peterson [Fri, 17 May 2013 00:38:22 +0000 (19:38 -0500)]
move definition to top of block

11 years agoFix compilater warnings on Windows 64-bit
Victor Stinner [Thu, 16 May 2013 22:12:04 +0000 (00:12 +0200)]
Fix compilater warnings on Windows 64-bit

11 years agoFix a compilater warning on Windows 64-bit
Victor Stinner [Thu, 16 May 2013 22:04:56 +0000 (00:04 +0200)]
Fix a compilater warning on Windows 64-bit