]>
granicus.if.org Git - python/log
Victor Stinner [Tue, 9 Apr 2013 20:38:52 +0000 (22:38 +0200)]
Don't calls macros in PyUnicode_WRITE() parameters
PyUnicode_WRITE() expands some parameters twice or more.
Victor Stinner [Tue, 9 Apr 2013 20:21:08 +0000 (22:21 +0200)]
Fix do_strip(): don't call PyUnicode_READ() in Py_UNICODE_ISSPACE() to not call
it twice
Victor Stinner [Tue, 9 Apr 2013 20:19:21 +0000 (22:19 +0200)]
Fix _PyUnicode_XStrip()
Inline the BLOOM_MEMBER() to only call PyUnicode_READ() only once (per loop
iteration). Store also the length of the seperator in a variable to avoid calls
to PyUnicode_GET_LENGTH().
Victor Stinner [Tue, 9 Apr 2013 20:13:33 +0000 (22:13 +0200)]
Optimize PyUnicode_DecodeCharmap()
Avoid expensive PyUnicode_READ() and PyUnicode_WRITE(), manipulate pointers
instead.
Victor Stinner [Tue, 9 Apr 2013 19:53:54 +0000 (21:53 +0200)]
Optimize make_bloom_mask(), used by str.strip(), str.lstrip() and str.rstrip()
Write specialized functions per Unicode kind to avoid the expensive
PyUnicode_READ() macro.
Victor Stinner [Tue, 9 Apr 2013 19:48:24 +0000 (21:48 +0200)]
Use PyUnicode_READ() instead of PyUnicode_READ_CHAR()
"PyUnicode_READ_CHAR() is less efficient than PyUnicode_READ() because it calls
PyUnicode_KIND() and might call it twice." according to its documentation.
Victor Stinner [Tue, 9 Apr 2013 19:53:09 +0000 (21:53 +0200)]
Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:
cp037, cp500 and iso8859_1 codecs
Giampaolo Rodola' [Tue, 9 Apr 2013 15:23:27 +0000 (17:23 +0200)]
merge heads
Giampaolo Rodola' [Tue, 9 Apr 2013 15:21:25 +0000 (17:21 +0200)]
Do not raise exception on close() on account of socket attribute still being None:
>>> import asyncore
>>> d = asyncore.dispatcher()
>>> d.close()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/asyncore.py", line 401, in close
self.socket.close()
AttributeError: 'NoneType' object has no attribute 'close'
>>>
Senthil Kumaran [Tue, 9 Apr 2013 14:11:07 +0000 (07:11 -0700)]
#17678: Remove the use of a deprecated method http/cookiejar.py. Changing the
usage of get_origin_req_host() to origin_req_host.
Patch by Wei-Cheng Pan
Senthil Kumaran [Tue, 9 Apr 2013 14:07:59 +0000 (07:07 -0700)]
#17678: Fix DeprecationWarning in the http/cookiejar.py by changing the usage
of get_origin_req_host() to origin_req_host.
Patch by Wei-Cheng Pan
Senthil Kumaran [Tue, 9 Apr 2013 13:01:17 +0000 (06:01 -0700)]
null merge
Senthil Kumaran [Tue, 9 Apr 2013 13:00:16 +0000 (06:00 -0700)]
#17648 - convert test_urllib2.py doctests to unittests
Senthil Kumaran [Tue, 9 Apr 2013 05:24:17 +0000 (22:24 -0700)]
#17648 - Clean up test_urllib2.py. Converted doctests to unittest for
expansion.
Roger Serwy [Tue, 9 Apr 2013 01:59:11 +0000 (20:59 -0500)]
#17657: merge with 3.3.
Roger Serwy [Tue, 9 Apr 2013 01:57:13 +0000 (20:57 -0500)]
#17657: Show full Tk version in IDLE's about dialog.
Patch by Todd Rovito.
Victor Stinner [Mon, 8 Apr 2013 20:43:44 +0000 (22:43 +0200)]
Issue #17615: Comparing two Unicode strings now uses wmemcmp() when possible
wmemcmp() is twice faster than a dummy loop (342 usec vs 744 usec) on Fedora
18/x86_64, GCC 4.7.2.
Victor Stinner [Mon, 8 Apr 2013 20:34:43 +0000 (22:34 +0200)]
Issue #17615: Add tests comparing Unicode strings of different kinds
Kinds: ascii, latin, bmp, astral.
Victor Stinner [Mon, 8 Apr 2013 19:50:54 +0000 (21:50 +0200)]
Issue #17615: Expand expensive PyUnicode_READ() macro in unicode_compare():
write specialized functions for each combination of Unicode kinds.
Serhiy Storchaka [Mon, 8 Apr 2013 19:37:15 +0000 (22:37 +0300)]
Close #17666: Fix reading gzip files with an extra field.
Serhiy Storchaka [Mon, 8 Apr 2013 19:35:02 +0000 (22:35 +0300)]
Close #17666: Fix reading gzip files with an extra field.
R David Murray [Mon, 8 Apr 2013 12:48:03 +0000 (08:48 -0400)]
#17484: Actually add the getpass tests this time.
Andrew Svetlov [Mon, 8 Apr 2013 10:18:47 +0000 (13:18 +0300)]
Add NEWS entry for #17502: Process DEFAULT values in mock side_effect that returns iterator.
Andrew Svetlov [Mon, 8 Apr 2013 09:59:30 +0000 (12:59 +0300)]
Add NEWS entry for #17502: Process DEFAULT values in mock side_effect that returns iterator.
R David Murray [Mon, 8 Apr 2013 05:48:22 +0000 (01:48 -0400)]
#17484: add tests for getpass.
Patch by Thomas Fenzl.
Victor Stinner [Sun, 7 Apr 2013 22:26:43 +0000 (00:26 +0200)]
Close #13126: "Simplify" FASTSEARCH() code to help the compiler to emit more
efficient machine code. Patch written by Antoine Pitrou.
Without this change, str.find() was 10% slower than str.rfind() in the worst
case.
Antoine Pitrou [Sun, 7 Apr 2013 21:46:52 +0000 (23:46 +0200)]
gibibytes (Arfrever)
Roger Serwy [Sun, 7 Apr 2013 17:42:13 +0000 (12:42 -0500)]
#17613: merge with 3.3.
Roger Serwy [Sun, 7 Apr 2013 17:41:16 +0000 (12:41 -0500)]
#17613: Prevent traceback when removing syntax colorizer in IDLE.
Roger Serwy [Sun, 7 Apr 2013 17:17:17 +0000 (12:17 -0500)]
#
1207589 : merge with 3.3.
Roger Serwy [Sun, 7 Apr 2013 17:15:52 +0000 (12:15 -0500)]
#
1207589 : Backwards-compatibility patch for right-click menu in IDLE.
Antoine Pitrou [Sun, 7 Apr 2013 15:38:11 +0000 (17:38 +0200)]
Issue #15596: Faster pickling of unicode strings.
Benjamin Peterson [Sun, 7 Apr 2013 13:53:49 +0000 (09:53 -0400)]
merge heads
Benjamin Peterson [Sun, 7 Apr 2013 13:53:42 +0000 (09:53 -0400)]
add Zbigniew Halas to ACKS
Andrew Svetlov [Sun, 7 Apr 2013 13:44:07 +0000 (16:44 +0300)]
Process DEFAULT values in mock side_effect that returns iterator.
Patch by Michael Ford.
Andrew Svetlov [Sun, 7 Apr 2013 13:42:24 +0000 (16:42 +0300)]
Process DEFAULT values in mock side_effect that returns iterator.
Patch by Michael Ford.
Andrew Svetlov [Sun, 7 Apr 2013 11:47:05 +0000 (14:47 +0300)]
Merge heads
Andrew Svetlov [Sun, 7 Apr 2013 11:44:34 +0000 (14:44 +0300)]
Update argparse docs to follow order of ArgumentParser() arguments.
Andrew Svetlov [Sun, 7 Apr 2013 11:43:17 +0000 (14:43 +0300)]
Update argparse docs to follow order of ArgumentParser() arguments.
Raymond Hettinger [Sun, 7 Apr 2013 03:53:12 +0000 (20:53 -0700)]
Remove redundant imports
Raymond Hettinger [Sun, 7 Apr 2013 03:28:05 +0000 (20:28 -0700)]
merge
Raymond Hettinger [Sun, 7 Apr 2013 03:27:33 +0000 (20:27 -0700)]
Clean-up lru_cache examples. The print() not is needed. Set maxsize to a power of two.
Roger Serwy [Sun, 7 Apr 2013 01:31:26 +0000 (20:31 -0500)]
#16887: merge with 3.3.
Roger Serwy [Sun, 7 Apr 2013 01:26:53 +0000 (20:26 -0500)]
#16887: IDLE now accepts Cancel in tabify/untabify dialog box.
Serhiy Storchaka [Sat, 6 Apr 2013 19:55:12 +0000 (22:55 +0300)]
Revert a premature patch for issue #14010 (changeset
846bd418aee5 ).
Serhiy Storchaka [Sat, 6 Apr 2013 19:52:34 +0000 (22:52 +0300)]
Revert a premature patch for issue #14010 (changeset
aaaf36026511 ).
Antoine Pitrou [Sat, 6 Apr 2013 19:23:57 +0000 (21:23 +0200)]
Merge
Antoine Pitrou [Sat, 6 Apr 2013 19:23:47 +0000 (21:23 +0200)]
Merge
Antoine Pitrou [Sat, 6 Apr 2013 19:21:46 +0000 (21:21 +0200)]
Issue #17645: convert an assert() into a proper exception in _Py_Mangle().
Antoine Pitrou [Sat, 6 Apr 2013 19:21:04 +0000 (21:21 +0200)]
Issue #17645: convert an assert() into a proper exception in _Py_Mangle().
Benjamin Peterson [Sat, 6 Apr 2013 19:18:15 +0000 (15:18 -0400)]
merge 3.3
Benjamin Peterson [Sat, 6 Apr 2013 19:14:06 +0000 (15:14 -0400)]
move IDLE news to its own section
Serhiy Storchaka [Sat, 6 Apr 2013 18:20:30 +0000 (21:20 +0300)]
Issue #14010: Fix a crash when iterating or deleting deeply nested filters
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
Serhiy Storchaka [Sat, 6 Apr 2013 18:14:43 +0000 (21:14 +0300)]
Issue #14010: Fix a crash when iterating or deleting deeply nested filters
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
Andrew Svetlov [Sat, 6 Apr 2013 15:55:31 +0000 (18:55 +0300)]
Change wording as Eli Bendersky suggests.
Andrew Svetlov [Sat, 6 Apr 2013 15:55:07 +0000 (18:55 +0300)]
Change wording as Eli Bendersky suggests.
Georg Brandl [Sat, 6 Apr 2013 14:49:23 +0000 (16:49 +0200)]
merge with 3.3
Georg Brandl [Sat, 6 Apr 2013 14:48:55 +0000 (16:48 +0200)]
Add 3.3.1 to LICENSE files.
Georg Brandl [Sat, 6 Apr 2013 14:47:34 +0000 (16:47 +0200)]
merge with 3.3
Georg Brandl [Sat, 6 Apr 2013 14:43:06 +0000 (16:43 +0200)]
Post-release update for 3.3.1
Georg Brandl [Sat, 6 Apr 2013 14:42:43 +0000 (16:42 +0200)]
merge with 3.3.1 release clone
Georg Brandl [Sat, 6 Apr 2013 14:39:49 +0000 (16:39 +0200)]
merge with 3.2 branch
Georg Brandl [Sat, 6 Apr 2013 07:40:13 +0000 (09:40 +0200)]
Added tag v3.3.1 for changeset
d9893d13c628
Georg Brandl [Sat, 6 Apr 2013 07:40:02 +0000 (09:40 +0200)]
Bump to 3.3.1.
Georg Brandl [Sat, 6 Apr 2013 07:37:53 +0000 (09:37 +0200)]
Added tag v3.2.4 for changeset
1e10bdeabe3d
Georg Brandl [Sat, 6 Apr 2013 07:36:20 +0000 (09:36 +0200)]
Bump to 3.2.4.
Antoine Pitrou [Fri, 5 Apr 2013 23:15:30 +0000 (01:15 +0200)]
Issue #17469: Fix _Py_GetAllocatedBlocks() and sys.getallocatedblocks() when running on valgrind.
Andrew Svetlov [Fri, 5 Apr 2013 13:22:01 +0000 (16:22 +0300)]
Add link to glossary for hashable term in docs for set type
Andrew Svetlov [Fri, 5 Apr 2013 13:21:50 +0000 (16:21 +0300)]
Add link to glossary for hashable term in docs for set type
Andrew Svetlov [Fri, 5 Apr 2013 08:40:01 +0000 (11:40 +0300)]
Fix typo
Andrew Svetlov [Fri, 5 Apr 2013 08:39:50 +0000 (11:39 +0300)]
Fix typo
Andrew Svetlov [Fri, 5 Apr 2013 07:11:25 +0000 (10:11 +0300)]
Fix typo.
Andrew Svetlov [Fri, 5 Apr 2013 07:10:12 +0000 (10:10 +0300)]
Fix typo.
Senthil Kumaran [Fri, 5 Apr 2013 02:35:11 +0000 (19:35 -0700)]
null merge
Senthil Kumaran [Fri, 5 Apr 2013 02:34:02 +0000 (19:34 -0700)]
Issue #17483: 3.3 Branch - Remove unreachable code in urllib.request
Andrew Svetlov [Thu, 4 Apr 2013 19:32:28 +0000 (22:32 +0300)]
#17365: Remove Python 2 code from test_print
Patch by Berker Peksag
Ezio Melotti [Thu, 4 Apr 2013 06:16:42 +0000 (09:16 +0300)]
#8913: merge with 3.3.
Ezio Melotti [Thu, 4 Apr 2013 06:16:15 +0000 (09:16 +0300)]
#8913: add examples and docs for date/time/datetime.__format__. Patch by Heikki Partanen.
Benjamin Peterson [Thu, 4 Apr 2013 02:38:00 +0000 (22:38 -0400)]
merge 3.3 (#17625)
Benjamin Peterson [Thu, 4 Apr 2013 02:35:12 +0000 (22:35 -0400)]
close search and replace dialog after it is used (closes #17625)
Benjamin Peterson [Thu, 4 Apr 2013 02:35:12 +0000 (22:35 -0400)]
close search and replace dialog after it is used (closes #17625)
Benjamin Peterson [Thu, 4 Apr 2013 02:35:12 +0000 (22:35 -0400)]
close search and replace dialog after it is used (closes #17625)
Ezio Melotti [Wed, 3 Apr 2013 23:34:33 +0000 (02:34 +0300)]
Remove the "Extension Modules" section.
Ezio Melotti [Wed, 3 Apr 2013 23:16:27 +0000 (02:16 +0300)]
#17572: merge with 3.3.
Ezio Melotti [Wed, 3 Apr 2013 23:09:20 +0000 (02:09 +0300)]
#17572: Avoid chained exceptions while passing bad directives to time.strptime(). Initial patch by Claudiu Popa.
Terry Jan Reedy [Wed, 3 Apr 2013 17:20:02 +0000 (13:20 -0400)]
Merge with 3.3
Terry Jan Reedy [Wed, 3 Apr 2013 17:07:46 +0000 (13:07 -0400)]
Issue #15940: NEWS entry
Terry Jan Reedy [Wed, 3 Apr 2013 16:45:47 +0000 (12:45 -0400)]
Merge with 3.3
Terry Jan Reedy [Wed, 3 Apr 2013 16:45:24 +0000 (12:45 -0400)]
Issue #15940: Replace tab.
Terry Jan Reedy [Wed, 3 Apr 2013 16:35:25 +0000 (12:35 -0400)]
Merge with 3.3
Terry Jan Reedy [Wed, 3 Apr 2013 16:34:57 +0000 (12:34 -0400)]
Issue #15940: Specify effect of locale on time functions.
Richard Oudkerk [Wed, 3 Apr 2013 12:49:36 +0000 (13:49 +0100)]
Merge
Richard Oudkerk [Wed, 3 Apr 2013 12:44:50 +0000 (13:44 +0100)]
Issue #17619: Make input() check for Ctrl-C correctly on Windows.
R David Murray [Wed, 3 Apr 2013 11:01:07 +0000 (07:01 -0400)]
Merge: Use repr when printing unknown url type in urlopen.
R David Murray [Wed, 3 Apr 2013 10:58:34 +0000 (06:58 -0400)]
Use repr when printing unknown url type in urlopen.
R David Murray [Wed, 3 Apr 2013 10:17:30 +0000 (06:17 -0400)]
Merge #17623: fix whatsnew typo
Patch by Thomas Heller.
R David Murray [Wed, 3 Apr 2013 10:16:14 +0000 (06:16 -0400)]
#17623: fix whatsnew typo
Patch by Thomas Heller.
Giampaolo Rodola' [Wed, 3 Apr 2013 10:01:44 +0000 (12:01 +0200)]
remove uneffective 'while True' clause
Roger Serwy [Wed, 3 Apr 2013 05:43:31 +0000 (00:43 -0500)]
#14254: merge with 3.3.
Roger Serwy [Wed, 3 Apr 2013 05:42:24 +0000 (00:42 -0500)]
#14254: IDLE now handles readline correctly across shell restarts.