Terry Jan Reedy
549edcfa05
Merge with 3.5
2015-10-28 03:15:38 -04:00
Terry Jan Reedy
44b1020c12
Merge with 3.4
2015-10-28 03:15:20 -04:00
Terry Jan Reedy
68b6874f59
Issue #25432 : Explain isinstance behaviour when type is a tuple.
2015-10-28 03:14:56 -04:00
Martin Panter
d7475fb3c8
Issue #23391 : Merge OSError doc from 3.5
2015-10-26 23:35:43 +00:00
Martin Panter
084b368825
Issue #23391 : Merge OSError doc from 3.4 into 3.5
2015-10-26 23:35:07 +00:00
Martin Panter
5487c13e44
Issue #23391 : Restore OSError constructor argument documentation
...
This restores details lost in revision 097f4fda61a4 (since Python 3.3,
related to the new OSError subclasses). Further additions:
* Markup for attributes and constructor signature
* Explain "winerror" and "filename2"
* Extend test to check for filename2 defaulting to None
* Clarify that the constructor can return a subclass
I have intentionally left out any details of allowing more than five
arguments, or how the "args" attribute is set for four or more arguments.
These details seem to be dependent on the Python version and platform.
2015-10-26 11:05:42 +00: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
Terry Jan Reedy
6dc9ce1923
Remove double 'error'.
2015-10-20 01:07:53 -04:00
Berker Peksag
a1331c4700
Silence a "unused rule" warning
...
This one should make Docs 3.5 and Docs 3.x green again.
2015-10-20 03:59:41 +03:00
Berker Peksag
1d1697930b
Silence a "unused rule" warning
...
This one should make Docs 3.5 and Docs 3.x green again.
2015-10-20 03:59:24 +03:00
Berker Peksag
3b1cb71084
rstlint: Fix "default role used" warning
...
This should make buildbots green.
2015-10-20 03:42:17 +03:00
Berker Peksag
db6cdf8425
rstlint: Fix "default role used" warning
...
This should make buildbots green.
2015-10-20 03:41:59 +03:00
Berker Peksag
f84499a4e3
rstlint: Fix "default role used" warning
...
This should make buildbots green.
2015-10-20 03:41:38 +03:00
Guido van Rossum
77b3d48497
Issue #24885 : Update note in docs about stream convenience functions. (Merge 3.5->3.6)
2015-10-19 13:19:08 -07:00
Guido van Rossum
460b38151f
Issue #24885 : Update note in docs about stream convenience functions. (Merge 3.4->3.5)
2015-10-19 13:18:40 -07:00
Guido van Rossum
19ff6977a7
Issue #24885 : Update note in docs about stream convenience functions.
2015-10-19 13:18:04 -07:00
Berker Peksag
8b880c7412
Fix another typo noticed by SilentGhost
2015-10-19 00:56:59 +03:00
Berker Peksag
ad56c922b0
Fix another typo noticed by SilentGhost
2015-10-19 00:56:39 +03:00
Berker Peksag
65a73cd8be
Issue #25434 : Fix typo in whatsnew/3.5rst
...
Patch by Louis Sautier.
2015-10-18 20:22:38 +03:00
Berker Peksag
5783ee12bd
Issue #25434 : Fix typo in whatsnew/3.5rst
...
Patch by Louis Sautier.
2015-10-18 20:22:15 +03:00
Vinay Sajip
d469cff021
Merged cookbook update from 3.5.
2015-10-17 13:59:41 +01:00
Vinay Sajip
a83a0e2316
Merged cookbook update from 3.4.
2015-10-17 13:59:12 +01:00
Vinay Sajip
4de9dae57d
Added entry to logging cookbook.
2015-10-17 13:58:19 +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
Berker Peksag
83356f7a3f
Issue #25418 : Fix markup in object.__hash__ documentation
...
Patch by TAKASE Arihiro.
2015-10-16 11:23:31 +03:00
Berker Peksag
85d5d902ce
Issue #25418 : Fix markup in object.__hash__ documentation
...
Patch by TAKASE Arihiro.
2015-10-16 11:23:11 +03:00
Berker Peksag
edb9111d41
Issue #25418 : Fix markup in object.__hash__ documentation
...
Patch by TAKASE Arihiro.
2015-10-16 11:22:50 +03:00
Victor Stinner
91108f049f
Issue #25210 : Change error message of do_richcompare()
...
Don't add parenthesis to type names. Add also quotes around the type names.
Before:
TypeError: unorderable types: int() < NoneType()
After:
TypeError: '<' not supported between instances of 'int' and 'NoneType'
2015-10-14 18:25:31 +02: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
Terry Jan Reedy
8533a21117
Merge with 3.5
2015-10-13 22:04:22 -04:00
Terry Jan Reedy
447169f6da
Merge with 3.4
2015-10-13 22:04:07 -04:00
Terry Jan Reedy
93f3542ae4
Issue #24782 : Finish converting the Configure Extension dialog into a new
...
tab in the IDLE Preferences dialog. Code patch by Mark Roseman.
2015-10-13 22:03:51 -04:00
Serhiy Storchaka
b6d84832bf
Issue #24164 : Document changes to __getnewargs__ and __getnewargs_ex__.
2015-10-13 21:26:35 +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
Benjamin Peterson
b031eaee3b
merge 3.5
2015-10-11 23:03:47 -07:00
Benjamin Peterson
63e80e1798
merge 3.4
2015-10-11 23:03:41 -07:00
Benjamin Peterson
b395188088
actually link to the version attributes documentation
2015-10-11 23:03:22 -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
Benjamin Peterson
6da624098f
merge 3.5 ( #25375 )
2015-10-10 23:24:53 -07:00
Benjamin Peterson
b16e12aaaa
merge 3.4
2015-10-10 23:24:39 -07:00
Benjamin Peterson
0071b3dfcb
don't mention Python 2.2 ( closes #25375 )
2015-10-10 23:23:55 -07: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
Martin Panter
430f657c67
Issue #25161 : Merge full stops from 3.5
2015-10-10 10:45:00 +00:00