Berker Peksag
01debaccdd
Issue #15812: Merge from 3.5
2017-01-02 06:59:12 +03:00
Berker Peksag
ff0e3b7a54
Issue #15812: inspect.getframeinfo() now correctly shows the first line of a context
...
Patch by Sam Breese.
2017-01-02 06:57:43 +03:00
Berker Peksag
00b1ae0dfc
Issue #28985: Update authorizer constants in sqlite3 module
...
Dates and version information from the changelog:
* 2006-08-12 (3.3.7) added SQLITE_CREATE_VTABLE, SQLITE_DROP_VTABLE
* 2006-10-09 (3.3.8) added SQLITE_FUNCTION
* 2009-01-12 (3.6.8) added SQLITE_SAVEPOINT
* 2014-02-03 (3.8.3) added SQLITE_RECURSIVE
Patch by Dingyuan Wang.
2017-01-02 06:38:10 +03:00
Serhiy Storchaka
67e1aa0b58
Issue #29094: Offsets in a ZIP file created with extern file object and modes
...
"w" and "x" now are relative to the start of the file.
2017-01-02 01:43:02 +02:00
Serhiy Storchaka
e465a9af8e
Issue #29094: Offsets in a ZIP file created with extern file object and modes
...
"w" and "x" now are relative to the start of the file.
2017-01-01 19:05:29 +02:00
Serhiy Storchaka
34cba33403
Issue #29094: Offsets in a ZIP file created with extern file object and modes
...
"w" and "x" now are relative to the start of the file.
2017-01-01 19:00:30 +02:00
Raymond Hettinger
4a5fd61a91
merge
2016-12-31 12:08:19 -07:00
Raymond Hettinger
744c720b69
Issue #29119: Merge in ACK from 3.5 branch
2016-12-31 12:08:00 -07:00
Raymond Hettinger
a67619ec5f
merge
2016-12-31 12:02:42 -07:00
Raymond Hettinger
b46ea90343
Issue #29119: Fix weakref in OrderedDict.move_to_end(). Work by Andra Bogildea.
2016-12-31 12:01:59 -07:00
Raymond Hettinger
0ce64323cf
merge
2016-12-29 22:55:03 -07:00
Raymond Hettinger
e9ee207622
Issue #29061: secrets.randbelow() would hang with a negative input
2016-12-29 22:54:25 -07:00
Victor Stinner
f9bd0597bd
Merge 3.6
2016-12-30 02:15:37 +01:00
Victor Stinner
771cf898f4
Merge 3.5
2016-12-30 02:15:29 +01:00
Victor Stinner
440d70301b
Issue #29109: Enhance tracemalloc documentation
...
* Wrong parameter name, 'group_by' instead of 'key_type'
* Don't round up numbers when explaining the examples. If they exactly match
what can be read in the script output, it is to easier to understand
(4.8 MiB vs 4855 KiB)
* Fix incorrect method link that was pointing to another module
Patch written by Loic Pefferkorn.
2016-12-30 02:14:59 +01:00
Benjamin Peterson
e70ca463eb
merge 3.6 (#29085)
2016-12-28 20:03:23 -08:00
Benjamin Peterson
acc2f74ca9
fix error check, so that Random.seed actually uses OS randomness (closes #29085)
2016-12-28 20:02:35 -08:00
Steve Dower
0a24415b2f
Issue #29079: Prevent infinite loop in pathlib.resolve() on Windows
2016-12-28 16:03:28 -08:00
Steve Dower
4b1e98b0af
Issue #29079: Prevent infinite loop in pathlib.resolve() on Windows
2016-12-28 16:02:59 -08:00
Steve Dower
13b0de95bc
Issue #29080: Fixes Misc/NEWS entry
2016-12-28 15:43:45 -08:00
Steve Dower
40619399bd
Issue #29080: Fixes Misc/NEWS entry
2016-12-28 15:43:28 -08:00
Steve Dower
74b1bcc430
Issue #29080: Fixes Misc/NEWS entry
2016-12-28 15:43:08 -08:00
Steve Dower
280408bf1c
Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
2016-12-28 15:41:53 -08:00
Steve Dower
bfce0f977d
Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
2016-12-28 15:41:09 -08:00
Steve Dower
a558be76c2
Issue #29080: Removes hard dependency on hg.exe from PC/build.bat
2016-12-28 14:38:54 -08:00
Steve Dower
654da960a0
Issue #29080: Removes hard dependency on hg.exe from PC/build.bat
2016-12-28 14:38:08 -08:00
Steve Dower
7ec8a18514
Issue #29080: Removes hard dependency on hg.exe from PC/build.bat
2016-12-28 14:37:44 -08:00
Serhiy Storchaka
d36432f755
Issue #13051: Fixed recursion errors in large or resized curses.textpad.Textbox.
...
Based on patch by Tycho Andersen.
2016-12-28 10:23:24 +02:00
Serhiy Storchaka
6c57708949
Issue #13051: Fixed recursion errors in large or resized curses.textpad.Textbox.
...
Based on patch by Tycho Andersen.
2016-12-28 10:22:56 +02:00
Serhiy Storchaka
bdf9e0ea74
Issue #13051: Fixed recursion errors in large or resized curses.textpad.Textbox.
...
Based on patch by Tycho Andersen.
2016-12-28 10:16:06 +02:00
Serhiy Storchaka
aa0f8e9cff
Issue #9770: curses.ascii predicates now work correctly with negative integers.
2016-12-28 10:07:16 +02:00
Serhiy Storchaka
686c1f6915
Issue #9770: curses.ascii predicates now work correctly with negative integers.
2016-12-28 10:06:33 +02:00
Serhiy Storchaka
283de2b9c1
Issue #9770: curses.ascii predicates now work correctly with negative integers.
2016-12-28 10:04:27 +02:00
Serhiy Storchaka
c9ad8b7a23
Issue #29073: bytearray formatting no longer truncates on first null byte.
2016-12-28 09:54:22 +02:00
Antoine Pitrou
c06ae208eb
Issue #28427: old keys should not remove new values from
...
WeakValueDictionary when collecting from another thread.
2016-12-27 14:34:54 +01:00
Antoine Pitrou
d741ed492f
Issue #28427: old keys should not remove new values from
...
WeakValueDictionary when collecting from another thread.
2016-12-27 14:23:43 +01:00
Antoine Pitrou
e10ca3a0fe
Issue #28427: old keys should not remove new values from
...
WeakValueDictionary when collecting from another thread.
2016-12-27 14:19:20 +01:00
Serhiy Storchaka
a171a03bd2
Issue #29058: All stable API extensions added after Python 3.2 are now
...
available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
the minimum Python version supporting this API.
2016-12-27 15:04:59 +02:00
Serhiy Storchaka
34d0ac8027
Issue #29058: All stable API extensions added after Python 3.2 are now
...
available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
the minimum Python version supporting this API.
2016-12-27 14:57:39 +02:00
Serhiy Storchaka
fd54a74539
Issue #23903: Added missed names to PC/python3.def.
2016-12-27 12:17:41 +02:00
Serhiy Storchaka
c70081cfc1
Issue #23903: Added missed names to PC/python3.def.
2016-12-27 12:13:05 +02:00
Serhiy Storchaka
6664e8c741
Issue #23903: Added missed names to PC/python3.def.
2016-12-27 12:10:58 +02:00
Raymond Hettinger
f45e858c60
merge
2016-12-27 01:07:13 -08:00
Raymond Hettinger
bb2839b680
Issue #29055: Suppress upstream exception for random.choice()
2016-12-27 01:06:52 -08:00
Xiang Zhang
b3b01c3248
Issue #29078: Merge 3.6.
2016-12-27 12:32:33 +08:00
Xiang Zhang
b8a1aebb3d
Issue #29078: Merge 3.5.
2016-12-27 12:30:42 +08:00
Xiang Zhang
6721c7c3b2
Issue #29078: Add the missing import in datetime.time doc example.
...
Patch by Dhushyanth Ramasamy.
2016-12-27 12:23:59 +08:00
INADA Naoki
5a625d0aa6
Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function.
...
Calling function is up to 5% faster.
2016-12-24 20:19:08 +09:00
Ned Deily
190042a48f
Merge 3.6.0 release into default
2016-12-23 04:10:46 -05:00
Ned Deily
93357d8d43
Merge 3.6.0 release engineering head
2016-12-22 19:50:19 -05:00
Ned Deily
5c4568a05a
Update docs and patchlevel for 3.6.0 final.
2016-12-22 18:38:47 -05:00
Xavier de Gaye
507cbb0c0c
Issue #28762: Merge 3.6.
2016-12-22 10:40:44 +01:00
Xavier de Gaye
bdf0d0f039
Issue #28762: lockf() is available on Android API level 24, but the
...
F_LOCK macro is not defined in android-ndk-r13.
2016-12-22 10:38:59 +01:00
Terry Jan Reedy
db465b2860
Issue 28923: Remove editor artifacts from Tix.py,
2016-12-22 00:04:11 -05:00
Terry Jan Reedy
0ba0defb00
Issue 28923: Remove editor artifacts from Tix.py,
2016-12-22 00:02:36 -05:00
Terry Jan Reedy
c67983b829
Issue 28923: Remove editor artifacts from Tix.py.
2016-12-21 23:59:47 -05:00
Xavier de Gaye
3bfa1ed74d
Issue #28538: Merge 3.6.
2016-12-21 12:48:26 +01:00
Xavier de Gaye
708784255e
Issue #28538: Fix the compilation error that occurs because if_nameindex() is
...
available on Android API level 24, but the if_nameindex structure is not defined.
2016-12-21 12:46:36 +01:00
Serhiy Storchaka
47bdc40352
Merge from 3.6.
2016-12-21 12:36:29 +02:00
Serhiy Storchaka
690e81f63f
Merge from 3.5.
2016-12-21 12:35:11 +02:00
Serhiy Storchaka
18f018ca12
Issue #28871: Fixed a crash when deallocate deep ElementTree.
2016-12-21 12:32:56 +02:00
Xiang Zhang
b211068f5c
Issue #28822: Adjust indices handling of PyUnicode_FindChar().
2016-12-20 22:52:33 +08:00
Benjamin Peterson
38f225dd48
merge 3.6 (#28932)
2016-12-19 23:55:24 -08:00
Benjamin Peterson
b0eb986eb2
merge 3.5 (#28932)
2016-12-19 23:54:57 -08:00
Benjamin Peterson
fb2ae15c67
add a specific configure check for sys/random.h (closes #28932)
2016-12-19 23:54:25 -08:00
INADA Naoki
6165d55f13
Issue #28147: Fix a memory leak in split-table dictionaries
...
setattr() must not convert combined table into split table.
2016-12-20 09:54:24 +09:00
Serhiy Storchaka
dd1da7f74a
Issue #28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII
...
whitespace, not only spaces. Patch by Robert Xiao.
2016-12-19 18:51:37 +02:00
Xiang Zhang
f76df27806
Issue #28950: Merge 3.6.
2016-12-19 22:05:46 +08:00
Xiang Zhang
772bf2ed83
Issue #28950: Disallow -j0 combined with -T/-l in regrtest.
2016-12-19 22:00:22 +08:00
Xiang Zhang
270a21fda0
Issue #28950: Disallow -j0 combined with -T/-l/-M in regrtest.
2016-12-19 21:01:33 +08:00
Antoine Pitrou
ec60edb977
Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
...
when a GC collection happens in another thread.
Original patch and report by Armin Rigo.
2016-12-19 10:59:15 +01:00
Antoine Pitrou
d4580ecb8d
Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
...
when a GC collection happens in another thread.
Original patch and report by Armin Rigo.
2016-12-19 10:58:14 +01:00
Antoine Pitrou
c1ee488962
Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
...
when a GC collection happens in another thread.
Original patch and report by Armin Rigo.
2016-12-19 10:56:40 +01:00
Martin Panter
b46edf35f3
Issue #25677: Merge SyntaxError caret positioning from 3.6
2016-12-19 06:46:12 +00:00
Martin Panter
619555d77b
Issue #25677: Merge SyntaxError caret positioning from 3.5
2016-12-19 06:46:01 +00:00
Serhiy Storchaka
932ee73188
Issue #20191: Fixed a crash in resource.prlimit() when pass a sequence that
...
doesn't own its elements as limits.
2016-12-19 08:07:29 +02:00
Serhiy Storchaka
879199ba11
Issue #20191: Fixed a crash in resource.prlimit() when pass a sequence that
...
doesn't own its elements as limits.
2016-12-19 08:05:39 +02:00
Serhiy Storchaka
b94eef2ae3
Issue #20191: Fixed a crash in resource.prlimit() when pass a sequence that
...
doesn't own its elements as limits.
2016-12-19 08:04:15 +02:00
Martin Panter
a03d5ca41e
One more typo fix for 3.7
2016-12-18 01:37:12 +00:00
Martin Panter
fc29c88b5f
Issue #28987: Merge doc and comment fixes from 3.6
2016-12-18 05:41:55 +00:00
R David Murray
3e8d9413eb
Merge #28407 Improve test coverage of make_msgid.
2016-12-17 22:04:48 -05:00
R David Murray
d4f8132278
Merge #28407 Improve test coverage of make_msgid.
2016-12-17 22:04:20 -05:00
R David Murray
c69fd86f94
#28407 Improve test coverage of make_msgid.
...
Patch by Dillon Brock.
2016-12-17 22:03:44 -05:00
Martin Panter
59b0eb524f
Issue #28987: Typos, grammar, spelling in documentation
2016-12-18 01:26:53 +00:00
Martin Panter
fff07e34fa
Merge spelling and grammar from 3.5
2016-12-18 05:37:21 +00:00
Martin Panter
2f9171d900
Fix spelling and grammar in code comments and documentation
2016-12-18 01:23:09 +00:00
Steve Dower
bbc5877427
Issue #25778: winreg does not truncase string correctly (Patch by Eryk Sun)
2016-12-17 13:31:58 -08:00
Steve Dower
40fa26606d
Issue #25778: winreg does not truncase string correctly (Patch by Eryk Sun)
2016-12-17 13:30:27 -08:00
Serhiy Storchaka
9d16b616d5
Issue #29000: Fixed bytes formatting of octals with zero padding in alternate
...
form.
2016-12-17 22:15:10 +02:00
Serhiy Storchaka
025f8953f1
Issue #29000: Fixed bytes formatting of octals with zero padding in alternate
...
form.
2016-12-17 22:13:05 +02:00
Serhiy Storchaka
b1a1619bf0
Issue #29000: Fixed bytes formatting of octals with zero padding in alternate
...
form.
2016-12-17 21:48:03 +02:00
Xavier de Gaye
6c9dcda6b4
Issue #28596: The preferred encoding is UTF-8 on Android.
2016-12-17 09:19:11 +01:00
Ned Deily
75862c4c66
Merge 3.6.0rc2 Misc/NEWS entries into 3.6.1
2016-12-16 23:16:36 -05:00
Raymond Hettinger
92c481a161
merge
2016-12-16 13:59:57 -08:00
Raymond Hettinger
c28dbd0452
merge
2016-12-16 13:59:32 -08:00
Raymond Hettinger
af56e0e70f
Issue #28991: Fix obscure reentrancy bug in functools.lru_cache().
2016-12-16 13:57:40 -08:00
Ned Deily
f7b280956d
Version bump for 3.6.0rc2
2016-12-16 16:40:10 -05:00
Ned Deily
f6105a55cf
Tidy Misc/NEWS for 3.6.0rc1+ cherrypicks.
2016-12-16 15:29:12 -05:00
Serhiy Storchaka
5bb8b9134b
Issue #18896: Python function can now have more than 255 parameters.
...
collections.namedtuple() now supports tuples with more than 255 elements.
2016-12-16 19:19:02 +02:00
Yury Selivanov
7ae5c9691b
Merge 3.5 (issue #28990)
2016-12-16 11:51:57 -05:00
Yury Selivanov
11c135136d
Merge 3.5 (issue #28990)
2016-12-16 11:51:57 -05:00
Yury Selivanov
b1461aa781
Issue #28990: Fix SSL hanging if connection is closed before handshake completed.
2016-12-16 11:50:41 -05:00
Xavier de Gaye
31eaf49ed9
Merge 3.6.
2016-12-15 21:01:52 +01:00
Xavier de Gaye
76febd0792
Issue #26919: On Android, operating system data is now always encoded/decoded
...
to/from UTF-8, instead of the locale encoding to avoid inconsistencies with
os.fsencode() and os.fsdecode() which are already using UTF-8.
2016-12-15 20:59:58 +01:00
Victor Stinner
5cc70c9935
Merge 3.6
2016-12-15 17:23:24 +01:00
Victor Stinner
3d3f264849
Fix a memory leak in split-table dictionaries
...
Issue #28147: Fix a memory leak in split-table dictionaries: setattr() must not
convert combined table into split table.
Patch written by INADA Naoki.
2016-12-15 17:21:23 +01:00
Serhiy Storchaka
bdfc5ff17e
Merge from 3.6.
2016-12-14 19:56:53 +02:00
Serhiy Storchaka
386072ebe0
Merge from 3.6.
2016-12-14 19:54:38 +02:00
Serhiy Storchaka
49010ee323
Revert changeset 1f31bf3f76f5 (issue5322) except tests.
2016-12-14 19:52:17 +02:00
Xavier de Gaye
69598527c7
Issue #28683: Merge 3.6.
2016-12-14 11:54:49 +01:00
Xavier de Gaye
e88ed05006
Issue #28683: Fix the tests that bind() a unix socket and raise PermissionError
...
on Android for a non-root user.
2016-12-14 11:52:28 +01:00
Xavier de Gaye
e43edaad7e
Issue #20211: Merge 3.6.
2016-12-14 11:16:06 +01:00
Xavier de Gaye
1351c31aa9
Issue #20211: Do not add the directory for installing C header files and
...
the directory for installing object code libraries to the cross compilation
search paths.
2016-12-14 11:14:33 +01:00
Yury Selivanov
f2392133eb
Issue #26110: Add LOAD_METHOD/CALL_METHOD opcodes.
...
Special thanks to INADA Naoki for pushing the patch through
the last mile, Serhiy Storchaka for reviewing the code, and to
Victor Stinner for suggesting the idea (originally implemented
in the PyPy project).
2016-12-13 19:03:51 -05:00
Xavier de Gaye
b35fc626c1
Issue #16255: subrocess.Popen uses /system/bin/sh on Android as the shell,
...
instead of /bin/sh.
2016-12-13 16:32:21 +01:00
Xavier de Gaye
d0c2b5b0ae
Issue #26936: Fix the test_socket failures on Android - getservbyname(),
...
getservbyport() and getaddrinfo() are broken on some Android API levels.
2016-12-13 09:22:01 +01:00
Steve Dower
21e033466b
Issue #28896: Disable WindowsRegistryFinder by default.
2016-12-12 11:19:03 -08:00
Steve Dower
10beb3cfef
Issue #28896: Disable WindowsRegistryFinder by default.
2016-12-12 11:17:59 -08:00
Serhiy Storchaka
0f6373c34f
Issue #28739: f-string expressions no longer accepted as docstrings and
...
by ast.literal_eval() even if they do not include subexpressions.
2016-12-11 19:39:36 +02:00
Serhiy Storchaka
4cc30ae313
Issue #28739: f-string expressions no longer accepted as docstrings and
...
by ast.literal_eval() even if they do not include subexpressions.
2016-12-11 19:37:19 +02:00
Serhiy Storchaka
26817a8490
Issue #28512: Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:44:21 +02:00
Serhiy Storchaka
8114f21668
Issue #28512: Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:43:18 +02:00
Serhiy Storchaka
8b58339eb2
Issue #28512: Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:39:01 +02:00
Martin Panter
ca3263c50c
Issue #25677: Correct syntax error caret for indented blocks.
...
Based on patch by Michael Layzell.
2016-12-11 00:18:36 +00:00
Xavier de Gaye
5ca2b10213
Issue #28849: Merge 3.6.
2016-12-10 17:34:46 +01:00
Xavier de Gaye
32cf1acda8
Issue #28849: Do not define sys.implementation._multiarch on Android.
2016-12-10 17:31:28 +01:00
Antoine Pitrou
5c7198d464
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:19:21 +01:00
Antoine Pitrou
ebb39bcc04
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:16:17 +01:00
Antoine Pitrou
cd2a201e5b
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:13:16 +01:00
Xavier de Gaye
c1a26a2e47
Issue #28918: Merge 3.6.
2016-12-10 16:48:07 +01:00
Xavier de Gaye
13f1c331a5
Issue #28918: Fix the cross compilation of xxlimited when Python
...
has been built with Py_DEBUG defined.
2016-12-10 16:45:53 +01:00
Xavier de Gaye
ec80ba4693
Issue #26937: Merge 3.6.
2016-12-09 09:35:49 +01:00
Xavier de Gaye
f44abdab1e
Issue #26937: The chown() method of the tarfile.TarFile class does not fail now
...
when the grp module cannot be imported, as for example on Android platforms.
2016-12-09 09:33:09 +01:00
Steve Dower
3b3a7c01bc
Issue #28896: Deprecate WindowsRegistryFinder
2016-12-08 09:01:39 -08:00
Xavier de Gaye
566ba3defd
Issue #26939: Merge 3.6.
2016-12-08 11:09:54 +01:00
Xavier de Gaye
7522ef402c
Issue #26939: Add the support.setswitchinterval() function to fix
...
test_functools hanging on the Android armv7 qemu emulator.
2016-12-08 11:06:56 +01:00
Steve Dower
20367420c8
Issue #28896: Deprecate WindowsRegistryFinder
2016-12-07 13:02:27 -08:00
INADA Naoki
2c5a830f2a
Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict.
...
Improve speed of dict literal with constant keys up to 30%.
2016-12-07 18:34:44 +09:00
Serhiy Storchaka
1b58d8aafa
Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-07 11:27:55 +02:00
Serhiy Storchaka
0c78634d78
Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-07 11:26:49 +02:00
Serhiy Storchaka
4fc7942118
Issue #28847: A deprecation warning is now emitted if the index file is missed
...
and recreated in the 'r' and 'w' modes (will be an error in future Python
releases).
2016-12-07 11:11:12 +02:00
Serhiy Storchaka
43153e4d49
Issue #28847: dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 11:02:18 +02:00
Serhiy Storchaka
520348e5c0
Issue #28847: dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 11:00:06 +02:00
Serhiy Storchaka
028ace1ccb
Issue #28847: dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 10:56:39 +02:00
Ned Deily
3ca43ed956
Prepare for 3.6.1. Any further 3.6.0 release candidates and 3.6.0 final will be cherrypicked and merged here.
2016-12-07 01:59:27 -05:00
Ned Deily
ad2c2d380e
Version bump for 3.6.0rc1
2016-12-06 19:02:30 -05:00
Serhiy Storchaka
53c53ea4c5
Issue #27030: Unknown escapes in re.sub() replacement template are allowed
...
again. But they still are deprecated and will be disabled in 3.7.
2016-12-06 19:15:29 +02:00
Serhiy Storchaka
ff3dbe9141
Merge documentation for issue #27030 from 3.6.
2016-12-06 19:25:19 +02:00
Victor Stinner
b38e83df33
Merge 3.6
2016-12-06 11:02:54 +01:00
Victor Stinner
8ae9e6a627
warnings: Fix the issue number
...
The fix for catch_warnings() is the issue #28835 (not the issue #28089).
2016-12-06 11:02:12 +01:00
Victor Stinner
01928f6c0f
Merge 3.6
2016-12-06 10:59:54 +01:00
Victor Stinner
8ef46be26a
catch_warnings() calls showwarning() if overriden
...
Issue #28089: Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overriden inside the context manager.
2016-12-06 10:53:52 +01:00
Serhiy Storchaka
6bc7fa28dd
Fixed merge error in Misc/NEWS for issue #23722.
2016-12-06 00:24:19 +02:00
Serhiy Storchaka
fb3134f4d4
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
2016-12-06 00:20:26 +02:00
Serhiy Storchaka
9a953dbb34
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
2016-12-06 00:17:45 +02:00
Serhiy Storchaka
419967b832
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
2016-12-06 00:13:34 +02:00
Nick Coghlan
d77e5b7211
Merge #23722 from 3.6
2016-12-05 16:59:22 +10:00
Nick Coghlan
19d246745d
Issue #23722: improve __classcell__ compatibility
...
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
2016-12-05 16:47:55 +10:00
Serhiy Storchaka
4700d86488
Merge from 3.6.
2016-12-02 21:38:46 +02:00
Nick Coghlan
3c35fdb8fb
Issue #27172: Undeprecate inspect.getfullargspec()
...
This is still useful for single source Python 2/3 code
migrating away from inspect.getargspec(), but that wasn't
clear with the documented deprecation in place.
2016-12-02 20:29:57 +10:00
Serhiy Storchaka
5adfac2c1b
Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-02 08:42:43 +02:00
Victor Stinner
d6958ac6c0
Add sys.getandroidapilevel()
...
Issue #28740: Add sys.getandroidapilevel(): return the build time
API version of Android as an integer.
Function only available on Android.
2016-12-02 01:13:46 +01:00
Yury Selivanov
c2c8fe1252
Issue #28843: Fix asyncio C Task to handle exceptions __traceback__.
2016-12-01 11:36:22 -05:00
Victor Stinner
11dd6048aa
Add TCP_CONGESTION and TCP_USER_TIMEOUT
...
Issue #26273: Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
2016-11-29 16:55:04 +01:00
Victor Stinner
4f8dc3d15c
Add TCP_CONGESTION and TCP_USER_TIMEOUT
...
Issue #26273: Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
2016-11-29 16:55:04 +01:00
Serhiy Storchaka
baa7223bcd
Issue #28797: Modifying the class __dict__ inside the __set_name__ method of
...
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
2016-11-29 09:56:07 +02:00
Serhiy Storchaka
9ec07721f4
Issue #28797: Modifying the class __dict__ inside the __set_name__ method of
...
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
2016-11-29 09:54:17 +02:00
Victor Stinner
a61a54b149
Issue #28799: Update Misc/SpecialBuilds.txt
...
Remove CALL_PROFILE.
2016-11-28 12:06:13 +01:00
Victor Stinner
048afd98b3
Remove CALL_PROFILE special build
...
Issue #28799:
* Remove the PyEval_GetCallStats() function.
* Deprecate the untested and undocumented sys.callstats() function.
* Remove the CALL_PROFILE special build
Use the sys.setprofile() function, cProfile or profile module to profile
function calls.
2016-11-28 11:59:04 +01:00
Serhiy Storchaka
214678e44b
Issue #12844: More than 255 arguments can now be passed to a function.
2016-11-28 10:52:05 +02:00
Łukasz Langa
de7bf086d2
Merge 3.6, fix for #24142
2016-11-26 14:04:40 -08:00
Łukasz Langa
8fb4e421f4
Merge 3.5, fix for #24142
2016-11-26 14:02:48 -08:00
Łukasz Langa
47a9a4beda
Fixes #24142: [configparser] always join multiline values to not leave the parser in an invalid state
2016-11-26 14:00:39 -08:00
Berker Peksag
b121f16894
Issue #28796: Silence Sphinx warnings
...
WARNING: Inline emphasis start-string without end-string.
Patch by Julien Palard.
2016-11-25 17:38:13 +03:00
Victor Stinner
ed6de7345e
Merge 3.6
2016-11-24 22:33:49 +01:00
Victor Stinner
f7d199ff32
Fix _PyGen_yf()
...
Issue #28782: Fix a bug in the implementation ``yield from`` when checking
if the next instruction is YIELD_FROM. Regression introduced by WORDCODE
(issue #26647).
Reviewed by Serhiy Storchaka and Yury Selivanov.
2016-11-24 22:33:01 +01:00
Xiang Zhang
d04d8474df
Issue #28774: Fix start/end pos in unicode_encode_ucs1().
...
Fix error position of the unicode error in ASCII and Latin1
encoders when a string returned by the error handler contains multiple
non-encodable characters (non-ASCII for the ASCII codec, characters out
of the U+0000-U+00FF range for Latin1).
2016-11-23 19:34:01 +08:00
Ned Deily
daaaff9277
Issue #28898: add Misc/NEWS entry
2016-12-15 23:20:48 -05:00
Victor Stinner
ccda5c41df
Fix a memory leak in split-table dictionaries
...
Issue #28147: Fix a memory leak in split-table dictionaries: setattr() must not
convert combined table into split table.
Patch written by INADA Naoki.
(grafted from 85be9dcc16a81d3ccd1f67b056255a7f206edd47)
2016-12-15 17:21:23 +01:00
Steve Dower
5dc1fb3eda
Issue #28896: Deprecate WindowsRegistryFinder
...
(grafted from 25df9671663b5f8b1560d58d8842f9676f6dffc2)
2016-12-07 13:02:27 -08:00
INADA Naoki
ff33c93f23
Issue #28023: Fix python-gdb.py didn't support new dict implementation
2016-11-22 19:43:11 +09:00
INADA Naoki
d7d2bc8798
Issue #28023: Fix python-gdb.py didn't support new dict implementation
2016-11-22 19:40:58 +09:00
Ned Deily
f50a85df1f
Start 3.6.0rc1. (Note, patch level was incorrectly set to 3.6.0b4+ following b3. It is now b4+ again.)
2016-11-22 01:21:04 -05:00
Serhiy Storchaka
007d7ff73f
Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
...
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
type "const char *" rather of "char *".
2016-11-22 07:58:08 +02:00
Ned Deily
38c508a00c
Version bump for 3.6.0b4
2016-11-21 23:30:55 -05:00
Raymond Hettinger
9af740b99a
merge
2016-11-21 17:24:58 -08:00
Raymond Hettinger
a3fec1543d
Issue #27100: With statement reports missing __enter__ before __exit__. (Contributed by Jonathan Ellington.)
2016-11-21 17:24:23 -08:00
Serhiy Storchaka
e425bd95e9
Issue #28752: Restored the __reduce__() methods of datetime objects.
2016-11-22 00:30:32 +02:00
Serhiy Storchaka
546ce65968
Issue #28752: Restored the __reduce__() methods of datetime objects.
2016-11-22 00:29:42 +02:00
Ethan Furman
e31cc818ce
NEWS update
2016-11-21 08:39:57 -08:00
Ethan Furman
64a6861b0f
issue28082: actually include NEWS entry
2016-11-21 08:39:32 -08:00
Ethan Furman
b779f3171a
update news and re doc
2016-11-21 08:30:55 -08:00
Ethan Furman
00eacac96b
closes issue23591: add NEWS entry
2016-11-21 08:28:56 -08:00
INADA Naoki
92c50eee52
Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict
...
Improve speed of dict literal with constant keys up to 30%.
2016-11-22 00:57:02 +09:00
Victor Stinner
065507f03a
Merge 3.6
2016-11-21 16:39:01 +01:00
Victor Stinner
b44fb128ae
Implement rich comparison for _sre.SRE_Pattern
...
Issue #28727: Regular expression patterns, _sre.SRE_Pattern objects created by
re.compile(), become comparable (only x==y and x!=y operators). This change
should fix the issue #18383: don't duplicate warning filters when the warnings
module is reloaded (thing usually only done in unit tests).
2016-11-21 16:35:08 +01:00
INADA Naoki
7fc69f2373
Issue #28532: Show sys.version when -V option is supplied twice
2016-11-21 20:58:10 +09:00
INADA Naoki
0e175a6e76
Issue #28532: Show sys.version when -V option is supplied twice
2016-11-21 20:57:14 +09:00
Serhiy Storchaka
b57d9eac41
Issue #28748: Private variable _Py_PackageContext is now of type "const char *"
...
rather of "char *".
2016-11-21 10:25:54 +02:00
Gregory P. Smith
82604e03dc
Issue #20572: Remove the subprocess.Popen.wait endtime parameter.
...
It was deprecated in 3.4 and undocumented prior to that.
2016-11-20 16:31:07 -08:00