]>
granicus.if.org Git - python/log
Eli Bendersky [Sat, 25 May 2013 12:27:10 +0000 (05:27 -0700)]
Issue #13612: handle unknown encodings without a buffer overflow.
This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new
function - DefaultUnknownEncodingHandler.
Based on a patch by Serhiy Storchaka.
Eli Bendersky [Sat, 25 May 2013 12:25:48 +0000 (05:25 -0700)]
Issue #13612: handle unknown encodings without a buffer overflow.
This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new
function - DefaultUnknownEncodingHandler.
Based on a patch by Serhiy Storchaka.
Antoine Pitrou [Sat, 25 May 2013 11:23:03 +0000 (13:23 +0200)]
Fix compilation under MSVC: ssl_set_mode() is a macro, and the MSVC preprocessor doesn't process #ifdef's inside a macro argument list.
(found explanation at http://www.tech-archive.net/Archive/VC/microsoft.public.vc.language/2007-05/msg00385.html)
Antoine Pitrou [Sat, 25 May 2013 11:08:34 +0000 (13:08 +0200)]
Fix test_bad_address on Ubuntu 13.04
Antoine Pitrou [Sat, 25 May 2013 11:08:13 +0000 (13:08 +0200)]
Fix test_bad_address on Ubuntu 13.04
Antoine Pitrou [Sat, 25 May 2013 11:02:32 +0000 (13:02 +0200)]
Issue #8240: Set the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag on SSL sockets.
Vinay Sajip [Sat, 25 May 2013 10:20:34 +0000 (03:20 -0700)]
Closes #18046: Simplified logging internals relating to levels and their names. Thanks to Alex Gaynor for the patch.
Benjamin Peterson [Fri, 24 May 2013 21:36:04 +0000 (14:36 -0700)]
merge 3.3
Benjamin Peterson [Fri, 24 May 2013 21:35:57 +0000 (14:35 -0700)]
indicate that read/write work with bytes (closes #18009)
Brett Cannon [Fri, 24 May 2013 21:31:37 +0000 (17:31 -0400)]
merge fix for issue #17953
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.
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.
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.
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.
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.
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
Nick Coghlan [Thu, 23 May 2013 10:25:09 +0000 (20:25 +1000)]
Merge issue 17844 from 3.3
Nick Coghlan [Thu, 23 May 2013 10:24:02 +0000 (20:24 +1000)]
Issue 17844: Clarify meaning of different codec tables
Raymond Hettinger [Thu, 23 May 2013 07:15:19 +0000 (00:15 -0700)]
merge
Raymond Hettinger [Thu, 23 May 2013 07:14:47 +0000 (00:14 -0700)]
Issue #18031: %-formatting isn't dead yet and might pull through.
Ned Deily [Wed, 22 May 2013 22:24:44 +0000 (15:24 -0700)]
Issue #17532: merge
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.
Benjamin Peterson [Wed, 22 May 2013 20:27:32 +0000 (13:27 -0700)]
merge 3.3
Benjamin Peterson [Wed, 22 May 2013 20:27:25 +0000 (13:27 -0700)]
add test for inequality
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.
Serhiy Storchaka [Wed, 22 May 2013 14:19:41 +0000 (17:19 +0300)]
Move a NEWS entity to a correct place.
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.
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.
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.
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.
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).
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).
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.
Charles-François Natali [Tue, 21 May 2013 08:45:46 +0000 (10:45 +0200)]
Backed out changeset
c0f2b038fc12
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.
Roger Serwy [Tue, 21 May 2013 03:16:53 +0000 (22:16 -0500)]
#14146: merge with 3.3.
Roger Serwy [Tue, 21 May 2013 03:13:39 +0000 (22:13 -0500)]
#14146: Highlight source line while debugging on Windows.
Vinay Sajip [Mon, 20 May 2013 22:39:11 +0000 (15:39 -0700)]
Closes #17743: Merged fix from 3.3.
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.
Vinay Sajip [Mon, 20 May 2013 22:30:10 +0000 (15:30 -0700)]
Closes #17744: Merged fix from 3.3.
Vinay Sajip [Mon, 20 May 2013 22:28:52 +0000 (15:28 -0700)]
Issue #17744: Now unset VIRTUAL_ENV environment variable when deactivating.
Ned Deily [Mon, 20 May 2013 21:32:06 +0000 (14:32 -0700)]
Issue #18026: merge
Ned Deily [Mon, 20 May 2013 21:29:44 +0000 (14:29 -0700)]
Issue #18026: fix ctypes doc typo
Benjamin Peterson [Mon, 20 May 2013 17:28:48 +0000 (10:28 -0700)]
change AST codegen to use PyModule_AddIntMacro
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.
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.
Charles-Francois Natali [Mon, 20 May 2013 15:40:32 +0000 (17:40 +0200)]
Issue #17914: We can now inline _bsd_cpu_count().
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.
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
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.
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.
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.
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.
Ezio Melotti [Mon, 20 May 2013 05:14:14 +0000 (08:14 +0300)]
#14097: merge with 3.3.
Ezio Melotti [Mon, 20 May 2013 05:12:32 +0000 (08:12 +0300)]
#14097: improve the "introduction" page of the tutorial.
Benjamin Peterson [Mon, 20 May 2013 02:39:46 +0000 (19:39 -0700)]
merge 3.3
Benjamin Peterson [Mon, 20 May 2013 02:39:38 +0000 (19:39 -0700)]
add recursive repr test
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.
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.
Eli Bendersky [Mon, 20 May 2013 00:00:28 +0000 (17:00 -0700)]
Issue #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
Eli Bendersky [Sun, 19 May 2013 16:27:13 +0000 (09:27 -0700)]
normalize whitespace
Eli Bendersky [Sun, 19 May 2013 16:25:52 +0000 (09:25 -0700)]
Cleanup even more dead code
Eli Bendersky [Sun, 19 May 2013 16:24:43 +0000 (09:24 -0700)]
Cleanup more old ET library leftovers
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
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)
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
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)
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)
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.
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.
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).
Serhiy Storchaka [Sun, 19 May 2013 08:41:15 +0000 (11:41 +0300)]
Issue #17812: Fixed quadratic complexity of base64.b32encode().
Antoine Pitrou [Sat, 18 May 2013 23:11:58 +0000 (01:11 +0200)]
Issue #17937: Try harder to collect cyclic garbage at shutdown.
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.
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.
Vinay Sajip [Sat, 18 May 2013 17:19:54 +0000 (10:19 -0700)]
Re-enabled skipped test.
Richard Oudkerk [Sat, 18 May 2013 17:13:16 +0000 (18:13 +0100)]
Merge.
Richard Oudkerk [Sat, 18 May 2013 17:11:30 +0000 (18:11 +0100)]
Close file before reopening to keep Windows happy in test_sax.
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.
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).
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).
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.
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.
Raymond Hettinger [Sat, 18 May 2013 07:05:20 +0000 (00:05 -0700)]
Undo the deprecation of _asdict().
Backed out changeset
c4ca39bece9d
Raymond Hettinger [Sat, 18 May 2013 00:14:27 +0000 (17:14 -0700)]
Deprecate nametuple._asdict()
Raymond Hettinger [Fri, 17 May 2013 23:43:58 +0000 (16:43 -0700)]
merge
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.
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
Benjamin Peterson [Fri, 17 May 2013 22:35:28 +0000 (17:35 -0500)]
merge 3.3
Victor Stinner [Fri, 17 May 2013 22:38:43 +0000 (00:38 +0200)]
FileIO.readall(): remove trailing space from an exception message
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.
Benjamin Peterson [Fri, 17 May 2013 22:34:30 +0000 (17:34 -0500)]
only recursively expand in the format spec (closes #17644)
Benjamin Peterson [Fri, 17 May 2013 16:33:26 +0000 (11:33 -0500)]
reset __class__, so multiple runs don't fail (closes #17999)
Raymond Hettinger [Fri, 17 May 2013 10:24:54 +0000 (03:24 -0700)]
merge
Raymond Hettinger [Fri, 17 May 2013 10:01:13 +0000 (03:01 -0700)]
Issue #17563: Fix dict resize performance regression.
Raymond Hettinger [Fri, 17 May 2013 09:29:27 +0000 (02:29 -0700)]
merge
Raymond Hettinger [Fri, 17 May 2013 09:28:33 +0000 (02:28 -0700)]
Remove unnecessary exception handler.
Raymond Hettinger [Fri, 17 May 2013 09:24:18 +0000 (02:24 -0700)]
merge
Raymond Hettinger [Fri, 17 May 2013 09:23:16 +0000 (02:23 -0700)]
Ignore Mac OS X entries for .DS_Store