Serhiy Storchaka
56275dc1e2
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:45:26 +02:00
Serhiy Storchaka
314464d0ab
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:43:58 +02:00
Serhiy Storchaka
9b69491901
Issue #25395 : Fixed crash when highly nested OrderedDict structures were
...
garbage collected.
2015-11-01 16:13:45 +02:00
Serhiy Storchaka
14eefe353e
Issue #25395 : Fixed crash when highly nested OrderedDict structures were
...
garbage collected.
2015-11-01 16:12:34 +02:00
Steve Dower
bfb03a470c
Merge from 3.5
2015-10-31 13:07:44 -07:00
Steve Dower
04a4316acc
Issue #25450 : Updates shortcuts to start Python in installation directory.
2015-10-31 12:41:46 -07:00
Martin Panter
ff99988397
Merge typo fixes from 3.5
2015-10-31 12:23:03 +00:00
Martin Panter
4827e488a4
Merge spelling fixes from 3.4 into 3.5
2015-10-31 12:16:18 +00:00
Martin Panter
1f1177d69a
Fix some spelling errors in documentation and code comments
2015-10-31 11:48:53 +00:00
Benjamin Peterson
4b24d63407
merge 3.5 ( #25515 )
2015-10-29 20:40:34 -07:00
Benjamin Peterson
788cb52905
always use os.urandom for the uuid4 algorithm ( closes #25515 )
2015-10-29 20:38:04 -07:00
Serhiy Storchaka
6230235e83
Issue #25503 : Fixed inspect.getdoc() for inherited docstrings of properties.
...
Original patch by John Mark Vandenberg.
2015-10-29 08:17:10 +02:00
Serhiy Storchaka
ac4bdcc80e
Issue #25503 : Fixed inspect.getdoc() for inherited docstrings of properties.
...
Original patch by John Mark Vandenberg.
2015-10-29 08:15:50 +02:00
Serhiy Storchaka
2e0e18ba57
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:45:01 +02:00
Serhiy Storchaka
f8152c67f5
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:43:12 +02:00
Serhiy Storchaka
ea4cb63e68
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:39:36 +02:00
Benjamin Peterson
2374ad7dd9
merge 3.5 ( #25471 )
2015-10-24 20:07:28 -07:00
Benjamin Peterson
2775d85d55
merge 3.4 ( #25471 )
2015-10-24 20:07:08 -07:00
Benjamin Peterson
d9dbf49383
accepted sockets shouldn't inherit the SOCK_NONBLOCK flag ( closes #25471 )
2015-10-24 20:06:04 -07:00
Serhiy Storchaka
dcd1a0309f
Issue #25447 : The lru_cache() wrapper objects now can be copied and pickled
...
(by returning the original object unchanged).
2015-10-24 09:50:19 +03:00
Serhiy Storchaka
45120f272b
Issue #25447 : The lru_cache() wrapper objects now can be copied and pickled
...
(by returning the original object unchanged).
2015-10-24 09:49:56 +03:00
Victor Stinner
4487a46727
Merge 3.4 (Issue #25461 )
2015-10-23 12:39:20 +02:00
Victor Stinner
de6e800f45
Merge 3.4 (Issue #25461 )
2015-10-23 12:39:01 +02:00
Victor Stinner
0e316f688e
Issue #25461 : Rephrase os.walk() doc
...
Patch written by Bernt Røskar Brenna.
2015-10-23 12:38:11 +02:00
Berker Peksag
4da71055e1
Fix merge conflict artifacts and move the entry to correct place
2015-10-21 16:38:36 +03:00
Guido van Rossum
59136ccad2
Issue #25390 : typing: Don't crash on Union[str, Pattern]. (Merge 3.5->3.6)
2015-10-19 14:56:25 -07:00
Guido van Rossum
ca636eac88
Issue #25390 : typing: Don't crash on Union[str, Pattern].
2015-10-19 14:55:47 -07:00
Guido van Rossum
b09f627f4f
Issue #25441 : asyncio: Raise error from drain() when socket is closed. (Merge 3.5->3.6)
2015-10-19 11:55:10 -07:00
Guido van Rossum
030f489df7
Issue #25441 : asyncio: Raise error from drain() when socket is closed. (Merge 3.4->3.5)
2015-10-19 11:54:04 -07:00
Guido van Rossum
c44ecdf687
Issue #25441 : asyncio: Raise error from drain() when socket is closed.
2015-10-19 11:49:30 -07:00
doko@ubuntu.com
10ef6bd471
- Issue #25440 : Fix output of python-config --extension-suffix.
2015-10-19 14:15:27 +02:00
doko@ubuntu.com
12a72b06c7
- Issue #25440 : Fix output of python-config --extension-suffix.
2015-10-19 14:13:35 +02:00
doko@ubuntu.com
2bf91bf46c
- Issue #25440 : Fix output of python-config --extension-suffix.
2015-10-19 14:07:57 +02:00
Serhiy Storchaka
3e9f87782e
Issue #25410 : Cleaned up and fixed minor bugs in C implementation of OrderedDict.
2015-10-18 09:54:42 +03:00
Serhiy Storchaka
8003bafd7f
Issue #25410 : Cleaned up and fixed minor bugs in C implementation of OrderedDict.
2015-10-18 09:53:17 +03:00
Vinay Sajip
03de71d136
Closes #25411 : Merged fix from 3.5.
2015-10-17 16:24:23 +01:00
Vinay Sajip
3f445f799a
Closes #25411 : Merged fix from 3.4.
2015-10-17 16:17:52 +01:00
Vinay Sajip
277640af0f
Closes #25411 : Improved Unicode support in SMTPHandler.
2015-10-17 16:13:10 +01:00
Brett Cannon
9b63868f77
Issue #25154 : Deprecate the pyvenv script.
...
This was done so as to move users to `python3 -m venv` which prevents
confusion over which Python interpreter will be used in the virtual
environment when more than one is installed.
2015-10-16 15:14:27 -07:00
Brett Cannon
c0d91aff9a
Upgrade the imp module's deprecation to DeprecationWarning.
2015-10-16 12:21:37 -07:00
Brett Cannon
aa15ea4b4e
Merge for issue #25407
2015-10-16 12:09:56 -07:00
Brett Cannon
5ad5a7d31f
Issue #25407 : Drop the mention of the formatter module being removed
...
in Python 3.6.
The new PEP 4 policy of any module existing in both 2.7 and 3.5
applies here, hence the module will be with us for a bit longer.
2015-10-16 12:09:33 -07:00
Steve Dower
b8c1309cba
Merge from 3.5
2015-10-14 10:41:52 -07:00
Steve Dower
bc94fd7b49
Issue #25164 : Changes default all-users install directory to match per-user directory.
2015-10-14 10:36:36 -07:00
Serhiy Storchaka
dbb98c1443
Issue #25406 : Fixed a bug in C implementation of OrderedDict.move_to_end()
...
that caused segmentation fault or hang in iterating after moving several
items to the start of ordered dict.
2015-10-14 19:22:44 +03:00
Serhiy Storchaka
992ec46acc
Issue #25406 : Fixed a bug in C implementation of OrderedDict.move_to_end()
...
that caused segmentation fault or hang in iterating after moving several
items to the start of ordered dict.
2015-10-14 19:21:24 +03:00
Victor Stinner
2bf8993db9
Optimize bytes.fromhex() and bytearray.fromhex()
...
Issue #25401 : Optimize bytes.fromhex() and bytearray.fromhex(): they are now
between 2x and 3.5x faster. Changes:
* Use a fast-path working on a char* string for ASCII string
* Use a slow-path for non-ASCII string
* Replace slow hex_digit_to_int() function with a O(1) lookup in
_PyLong_DigitValue precomputed table
* Use _PyBytesWriter API to handle the buffer
* Add unit tests to check the error position in error messages
2015-10-14 11:25:33 +02:00
Victor Stinner
ebcf9edc05
Document latest optimizations using _PyBytesWriter
2015-10-14 10:10:00 +02:00
Serhiy Storchaka
dbc517c2dd
Issue #25382 : pickletools.dis() now outputs implicit memo index for the
...
MEMOIZE opcode.
2015-10-13 21:20:14 +03:00
Serhiy Storchaka
ca77aef31b
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:14:01 +03:00
Serhiy Storchaka
5a8bbc5f2a
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:13:34 +03:00
Serhiy Storchaka
5805ddeedb
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:12:32 +03:00
Victor Stinner
f7d2471260
Merge 3.5 (sys.setrecursionlimit)
2015-10-13 00:16:07 +02:00
Victor Stinner
50856d5ae7
sys.setrecursionlimit() now raises RecursionError
...
Issue #25274 : sys.setrecursionlimit() now raises a RecursionError if the new
recursion limit is too low depending at the current recursion depth. Modify
also the "lower-water mark" formula to make it monotonic. This mark is used to
decide when the overflowed flag of the thread state is reset.
2015-10-13 00:11:21 +02:00
Steve Dower
3628d488c7
Issue #25143 : Improves installer error messages for unsupported platforms.
2015-10-11 16:40:52 -07:00
Steve Dower
b96698112d
Issue #25143 : Improves installer error messages for unsupported platforms.
2015-10-11 16:40:41 -07:00
Steve Dower
5669387948
Issue #25163 : Display correct directory in installer when using non-default settings.
2015-10-11 15:37:36 -07:00
Steve Dower
731f4a2c5f
Issue #25163 : Display correct directory in installer when using non-default settings.
2015-10-11 15:37:22 -07:00
Steve Dower
80b31402d5
Issue #25361 : Disables use of SSE2 instructions in Windows 32-bit build
2015-10-11 15:16:21 -07:00
Steve Dower
5700ae877f
Issue #25361 : Disables use of SSE2 instructions in Windows 32-bit build
2015-10-11 15:15:52 -07:00
Victor Stinner
e84c976568
Issue #25357 : Add an optional newline paramer to binascii.b2a_base64().
...
base64.b64encode() uses it to avoid a memory copy.
2015-10-11 11:01:02 +02:00
Serhiy Storchaka
0d554d7ef1
Issue #24164 : Objects that need calling ``__new__`` with keyword arguments,
...
can now be pickled using pickle protocols older than protocol version 4.
2015-10-10 22:42:18 +03:00
Serhiy Storchaka
0289155b72
Correct Misc/NEWS.
2015-10-10 20:26:16 +03:00
Serhiy Storchaka
f98a24eecc
Issue #25364 : zipfile now works in threads disabled builds.
2015-10-10 19:44:23 +03:00
Serhiy Storchaka
9e777730eb
Issue #25364 : zipfile now works in threads disabled builds.
2015-10-10 19:43:32 +03:00
Martin Panter
430f657c67
Issue #25161 : Merge full stops from 3.5
2015-10-10 10:45:00 +00:00
Martin Panter
84835ab1cb
Issue #25161 : Merge full stops from 3.4 into 3.5
2015-10-10 10:44:25 +00:00
Martin Panter
d21e0b52f1
Issue #25161 : Add full stops in documentation; patch by Takase Arihiro
2015-10-10 10:36:22 +00:00
Martin Panter
5344da5c0d
Issue #24402 : Merge input() fix from 3.5
2015-10-10 02:09:41 +00:00
Martin Panter
e02f8fc44d
Issue #24402 : Merge input() fix from 3.4 into 3.5
2015-10-10 01:55:23 +00:00
Martin Panter
c9a6ab56cf
Issue #24402 : Fix input() when stdout.fileno() fails; diagnosed by Eryksun
...
Also factored out some test cases into a new PtyTests class.
2015-10-10 01:25:38 +00:00
Brett Cannon
6381e06d97
Merge for issue #25099
2015-10-09 15:10:10 -07:00
Brett Cannon
89065d9fc7
Issue #25099 : Skip relevant tests in test_compileall when an entry on
...
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
(grafted from 34bbd537b3e688dfbb6498e9083445a6a72fc4b1)
2015-10-09 15:09:43 -07:00
Brett Cannon
65ed750375
Issue #25099 : Skip relevant tests in test_compileall when an entry on
...
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
2015-10-09 15:09:43 -07:00
R David Murray
aecf63ee3a
Merge #25328 : add missing raise keyword in decode_data+SMTPUTF8 check.
2015-10-09 10:20:58 -04:00
R David Murray
1a815389cc
#25328 : add missing raise keyword in decode_data+SMTPUTF8 check.
...
This is a relatively benign bug, since having both be true was correctly
rejected at in SMTPServer even before this patch.
Patch by Xiang Zhang.
2015-10-09 10:19:33 -04:00
Victor Stinner
fa7762ec06
Issue #25349 : Optimize bytes % args using the new private _PyBytesWriter API
...
* Thanks to the _PyBytesWriter API, output smaller than 512 bytes are allocated
on the stack and so avoid calling _PyBytes_Resize(). Because of that, change
the default buffer size to fmtcnt instead of fmtcnt+100.
* Rely on _PyBytesWriter algorithm to overallocate the buffer instead of using
a custom code. For example, _PyBytesWriter uses a different overallocation
factor (25% or 50%) depending on the platform to get best performances.
* Disable overallocation for the last write.
* Replace C loops to fill characters with memset()
* Add also many comments to _PyBytes_Format()
* Remove unused FORMATBUFLEN constant
* Avoid the creation of a temporary bytes object when formatting a floating
point number (when no custom formatting option is used)
* Fix also reference leaks on error handling
* Use Py_MEMCPY() to copy bytes between two formatters (%)
2015-10-09 11:48:06 +02:00
Steve Dower
6e8d6ed2f4
Merge from 3.5
2015-10-08 10:00:55 -07:00
Steve Dower
5ae56919ab
Issue #25089 : Adds logging to installer for case where launcher is not selected on upgrade.
2015-10-08 09:55:49 -07:00
Steve Dower
666e6e1b4b
Merge from 3.5
2015-10-08 09:06:39 -07:00
Steve Dower
12ee7448f8
Issue #23919 : Prevents assert dialogs appearing in the test suite.
2015-10-08 08:56:06 -07:00
Berker Peksag
960e848f0d
Issue #16099 : RobotFileParser now supports Crawl-delay and Request-rate
...
extensions.
Patch by Nikolay Bogoychev.
2015-10-08 12:27:06 +03:00
Martin Panter
585a6acfef
Merge typo fixes from 3.5
2015-10-07 11:13:55 +00:00
Martin Panter
ec1aa5c2a1
More typos in 3.5 documentation and comments
2015-10-07 11:03:53 +00:00
Martin Panter
3f930dcd87
Merge typo fixes from 3.4 into 3.5
2015-10-07 11:01:47 +00:00
Martin Panter
9955a373a8
Various minor typos in documentation and comments
2015-10-07 10:26:23 +00:00
Benjamin Peterson
cdae2cb88a
merge 3.5 ( closes #24806 )
2015-10-06 19:42:46 -07:00
Benjamin Peterson
59dc696821
merge 3.4 ( #24806 )
2015-10-06 19:42:02 -07:00
Benjamin Peterson
bd6c41a185
prevent unacceptable bases from becoming bases through multiple inheritance ( #24806 )
2015-10-06 19:36:54 -07:00
Alexander Belopolsky
68713e41a5
Closes issue #12006 : Add ISO 8601 year, week, and day directives to strptime.
...
This commit adds %G, %V, and %u directives to strptime. Thanks Ashley Anderson
for the implementation.
2015-10-06 13:29:56 -04:00
Benjamin Peterson
1ba1ca0456
merge 3.5 ( #25319 )
2015-10-05 22:01:29 -07:00
Benjamin Peterson
72181b2f53
merge 3.4 ( #25319 )
2015-10-05 22:00:33 -07:00
Benjamin Peterson
15982aad2b
reinitialize an Event's Condition with a regular lock ( closes #25319 )
2015-10-05 21:56:22 -07:00
Steve Dower
f536386ca9
Issue #25316 : distutils raises OSError instead of DistutilsPlatformError when MSVC is not installed.
2015-10-05 10:35:19 -07:00
Steve Dower
f0ccf02e56
Issue #25316 : distutils raises OSError instead of DistutilsPlatformError when MSVC is not installed.
2015-10-05 10:35:00 -07:00
Guido van Rossum
3074c134a9
Issue #23972 : updates to asyncio datagram API. By Chris Laws. (Merge 3.5->3.6.)
2015-10-05 09:29:32 -07:00
Guido van Rossum
eda1955d82
Issue #23972 : updates to asyncio datagram API. By Chris Laws. (Merge 3.4->3.5.)
2015-10-05 09:19:11 -07:00
Guido van Rossum
b9bf913ab3
Issue #23972 : updates to asyncio datagram API. By Chris Laws.
2015-10-05 09:15:28 -07:00
Victor Stinner
1d65d9192d
Issue #25301 : The UTF-8 decoder is now up to 15 times as fast for error
...
handlers: ``ignore``, ``replace`` and ``surrogateescape``.
2015-10-05 13:43:50 +02:00
Terry Jan Reedy
7dbe6dd963
merge 3.5
2015-10-04 01:19:36 -04:00