R David Murray
671cd3290b
#17487 : wave.getparams now returns a namedtuple.
Patch by Claudiu Popa.
13 years ago
Ezio Melotti
3f5ffbee23
#17635 : merge with 3.3.
13 years ago
Ezio Melotti
c09959ae0f
#17635 : fix wrong function name in multiprocessing docs.
13 years ago
Giampaolo Rodola'
50331cbf08
Fix issue #17675 : make socket repr() provide local and remote addresses (if any).
13 years ago
Victor Stinner
7d36e4f074
Close #14439 : Python now prints the traceback on runpy failure at startup.
13 years ago
Victor Stinner
247109e74d
Issue #17615 : On Windows (VS2010), Performances of wmemcmp() to compare Unicode
strings are not convincing. For UCS2 (16-bit wchar_t type), use a dummy loop
instead of wmemcmp(). The dummy loop is as fast, or a little bit faster.
wchar_t is only 16-bit long on Windows. wmemcmp() is still used for 32-bit
wchar_t.
13 years ago
Brett Cannon
2a4df127c7
merge
13 years ago
Brett Cannon
777622b6ca
What's new entry for issue #17093
13 years ago
Brett Cannon
100883f0cb
Issue #17093,17566,17567: Methods from classes in importlib.abc now raise/return
the default exception/value when called instead of raising/returning
NotimplementedError/NotImplemented (except where appropriate).
This should allow for the ABCs to act as the bottom/end of the MRO with expected
default results.
As part of this work, also make importlib.abc.Loader.module_repr()
optional instead of an abstractmethod.
13 years ago
Victor Stinner
0cff4b16d9
replace(): only call PyUnicode_DATA(u) once
13 years ago
Victor Stinner
cc7af72192
Write super-fast version of str.strip(), str.lstrip() and str.rstrip() for pure ASCII
13 years ago
Victor Stinner
f50a4e9bc9
Don't calls macros in PyUnicode_WRITE() parameters
PyUnicode_WRITE() expands some parameters twice or more.
13 years ago
Victor Stinner
9c79e41fc5
Fix do_strip(): don't call PyUnicode_READ() in Py_UNICODE_ISSPACE() to not call
it twice
13 years ago
Victor Stinner
b3a6014504
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().
13 years ago
Victor Stinner
63d5c1a14a
Optimize PyUnicode_DecodeCharmap()
Avoid expensive PyUnicode_READ() and PyUnicode_WRITE(), manipulate pointers
instead.
13 years ago
Victor Stinner
a85af502a4
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.
13 years ago
Victor Stinner
69ed0f4c86
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.
13 years ago
Victor Stinner
03c3e35d42
Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:
cp037, cp500 and iso8859_1 codecs
13 years ago
Giampaolo Rodola'
0f344b6e05
merge heads
13 years ago
Giampaolo Rodola'
a4c377cde9
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'
>>>
13 years ago
Senthil Kumaran
7005b1f90a
#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
13 years ago
Senthil Kumaran
d9fbf36bbd
#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
13 years ago
Senthil Kumaran
fa5ef18e61
null merge
13 years ago
Senthil Kumaran
d281c73536
#17648 - convert test_urllib2.py doctests to unittests
13 years ago
Senthil Kumaran
fa1b02a126
#17648 - Clean up test_urllib2.py. Converted doctests to unittest for
expansion.
13 years ago
Roger Serwy
cb31d1fe1b
#17657 : merge with 3.3.
13 years ago
Roger Serwy
0803a39561
#17657 : Show full Tk version in IDLE's about dialog.
Patch by Todd Rovito.
13 years ago
Victor Stinner
cd777eaf53
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.
13 years ago
Victor Stinner
9fc5981ea2
Issue #17615 : Add tests comparing Unicode strings of different kinds
Kinds: ascii, latin, bmp, astral.
13 years ago
Victor Stinner
c1302bba4c
Issue #17615 : Expand expensive PyUnicode_READ() macro in unicode_compare():
write specialized functions for each combination of Unicode kinds.
13 years ago
Serhiy Storchaka
ffcd339aac
Close #17666 : Fix reading gzip files with an extra field.
13 years ago
Serhiy Storchaka
7e69f0085e
Close #17666 : Fix reading gzip files with an extra field.
13 years ago
R David Murray
c137f7c065
#17484 : Actually add the getpass tests this time.
13 years ago
Andrew Svetlov
5346b68524
Add NEWS entry for #17502 : Process DEFAULT values in mock side_effect that returns iterator.
13 years ago
Andrew Svetlov
b0f9fa7a03
Add NEWS entry for #17502 : Process DEFAULT values in mock side_effect that returns iterator.
13 years ago
R David Murray
319d58d599
#17484 : add tests for getpass.
Patch by Thomas Fenzl.
13 years ago
Victor Stinner
7efa3b8242
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.
13 years ago
Antoine Pitrou
4b7b0f06b4
gibibytes (Arfrever)
13 years ago
Roger Serwy
d673ed9b43
#17613 : merge with 3.3.
13 years ago
Roger Serwy
7733be8f26
#17613 : Prevent traceback when removing syntax colorizer in IDLE.
13 years ago
Roger Serwy
4687cf795c
#1207589 : merge with 3.3.
13 years ago
Roger Serwy
6b2918ae75
#1207589 : Backwards-compatibility patch for right-click menu in IDLE.
13 years ago
Antoine Pitrou
299978dfe3
Issue #15596 : Faster pickling of unicode strings.
13 years ago
Benjamin Peterson
5a3c6dbe6a
merge heads
13 years ago
Benjamin Peterson
20efcfaf53
add Zbigniew Halas to ACKS
13 years ago
Andrew Svetlov
8ab1e513c1
Process DEFAULT values in mock side_effect that returns iterator.
Patch by Michael Ford.
13 years ago
Andrew Svetlov
8b2cd75bdd
Process DEFAULT values in mock side_effect that returns iterator.
Patch by Michael Ford.
13 years ago
Andrew Svetlov
595365de32
Merge heads
13 years ago
Andrew Svetlov
5cd72b7b9c
Update argparse docs to follow order of ArgumentParser() arguments.
13 years ago
Andrew Svetlov
5b6e1cad37
Update argparse docs to follow order of ArgumentParser() arguments.
13 years ago