Serhiy Storchaka
7e10dbbd45
Issue #29444 : Fixed out-of-bounds buffer access in the group() method of
...
the match object. Based on patch by WGH.
2017-02-04 22:53:57 +02:00
Serhiy Storchaka
bee09aecc2
Issue #29368 : The extend() method is now called instead of the append()
...
method when unpickle collections.deque and other list-like objects.
This can speed up unpickling to 2 times.
2017-02-02 11:12:47 +02:00
Guido van Rossum
934aba66ef
Issue #29377 : Add three new wrappers to types.py (Manuel Krebber).
2017-02-01 10:55:58 -08:00
Victor Stinner
611083331d
python-gdb.py supports method-wrapper
...
Issue #29367 : python-gdb.py now supports also method-wrapper (wrapperobject)
objects.
2017-02-01 16:29:54 +01:00
doko@ubuntu.com
c9473b838a
Merge 3.6
2017-02-01 13:02:16 +01:00
doko@ubuntu.com
f8c5f30303
Merge 3.5
2017-02-01 13:01:54 +01:00
doko@ubuntu.com
137b5a2861
Issue #29169 : Fix NEWS entry.
2017-02-01 13:01:17 +01:00
Berker Peksag
ef158c3ced
Issue #29218 : Remove unused install_misc command
...
It has been documented as unused since 6c6844a2fa30 (2000-05-25)
Patch by Eric N. Vander Weele.
2017-02-01 04:42:48 +03:00
doko@ubuntu.com
9ac4815240
merge 3.6
2017-01-31 13:53:39 +01:00
doko@ubuntu.com
cd12f7cb5c
merge 3.5
2017-01-31 13:51:21 +01:00
doko@ubuntu.com
34e7e2ecb1
- Issue #29169 : Update zlib to 1.2.10.
2017-01-31 13:49:48 +01:00
Martin Panter
f24bcccefd
Issue #28822 : Add susp-ignored entry for NEWS; fix grammar
2017-01-29 23:37:56 +00:00
Martin Panter
3f16f57ea4
Issue #29384 : Remove Be OS scripts from Modules/, unused in 3.0+
2017-01-29 10:21:57 +00:00
Martin Panter
c654f0acf9
Issues #29349 : Add NEWS for 3.7; use “with” statement
2017-01-29 10:17:17 +00:00
Martin Panter
3a6dc19f6e
Issues #29349 : Merge Py 2 fix 3.6
2017-01-29 10:16:28 +00:00
Martin Panter
e61592e7e1
Issues #29349 : Merge Py 2 fix 3.5
2017-01-29 10:09:43 +00:00
Martin Panter
8f3fb72309
Issue #29349 : Fix Python 2 syntax in documentation build code
2017-01-29 10:05:02 +00:00
Serhiy Storchaka
6e08baf12d
Issue #27867 : Function PySlice_GetIndicesEx() is deprecated and replaced with
...
a macro if Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher. Added functions
PySlice_Unpack() and PySlice_AdjustIndices().
2017-01-25 13:27:44 +02:00
Serhiy Storchaka
512c57cb72
Issue #27867 : Function PySlice_GetIndicesEx() is replaced with a macro if
...
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.
2017-01-25 13:25:52 +02:00
Serhiy Storchaka
b2a5be0763
Issue #27867 : Function PySlice_GetIndicesEx() is replaced with a macro if
...
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.
2017-01-25 13:23:05 +02:00
Serhiy Storchaka
675f2f8f90
Issue #29083 : Fixed the declaration of some public API functions.
...
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.
2017-01-24 21:39:42 +02:00
Serhiy Storchaka
3831b0a066
Issue #29083 : Fixed the declaration of some public API functions.
...
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.
2017-01-24 21:34:44 +02:00
Serhiy Storchaka
07a1f65a93
Issue #29083 : Fixed the declaration of some public API functions.
...
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.
2017-01-24 21:27:12 +02:00
Serhiy Storchaka
067cbd02bf
Issue #29337 : Fixed possible BytesWarning when compare the code objects.
...
Warnings could be emitted at compile time.
2017-01-24 20:54:07 +02:00
Serhiy Storchaka
4102d25b7e
Issue #29337 : Fixed possible BytesWarning when compare the code objects.
...
Warnings could be emitted at compile time.
2017-01-24 20:52:43 +02:00
Serhiy Storchaka
713640c4c9
Issue #29337 : Fixed possible BytesWarning when compare the code objects.
...
Warnings could be emitted at compile time.
2017-01-24 20:49:26 +02:00
Victor Stinner
0e830455cb
Merge 3.6
2017-01-23 12:34:00 +01:00
Victor Stinner
01f5ae7b76
Issue #26273 : Document TCP_USER_TIMEOUT and TCP_CONGESTION
2017-01-23 12:30:00 +01:00
Serhiy Storchaka
ccb5f3cee9
Issue #29338 : The help of a builtin or extension class now includes the
...
constructor signature if __text_signature__ is provided for the class.
2017-01-23 12:37:00 +02:00
Gregory P. Smith
5c8706c04a
Issue #29335 : Fix subprocess.Popen.wait() when the child process has
...
exited to a stopped instead of terminated state (ex: when under ptrace).
2017-01-22 17:30:28 -08:00
Gregory P. Smith
78034c81fb
Issue #29335 : Fix subprocess.Popen.wait() when the child process has
...
exited to a stopped instead of terminated state (ex: when under ptrace).
2017-01-22 17:29:44 -08:00
Gregory P. Smith
50e16e33af
Issue #29335 : Fix subprocess.Popen.wait() when the child process has
...
exited to a stopped instead of terminated state (ex: when under ptrace).
2017-01-22 17:28:38 -08:00
Serhiy Storchaka
2a404b63d4
Issue #28769 : The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
...
is now of type "const char *" rather of "char *".
2017-01-22 23:07:07 +02:00
Xiang Zhang
d528791096
Issue #29290 : Merge 3.6.
2017-01-22 14:41:42 +08:00
Xiang Zhang
b1681189af
Issue #29290 : Merge 3.5.
2017-01-22 14:39:20 +08:00
Xiang Zhang
7fe28ad837
Issue #29290 : argparse help messages won't wrap at non-breaking spaces.
2017-01-22 14:37:22 +08:00
Serhiy Storchaka
19dea2c726
Issue #28735 : Fixed the comparison of mock.MagickMock with mock.ANY.
2017-01-21 23:17:25 +02:00
Serhiy Storchaka
a203360836
Issue #28735 : Fixed the comparison of mock.MagickMock with mock.ANY.
2017-01-21 23:15:18 +02:00
Serhiy Storchaka
362f058a89
Issue #28735 : Fixed the comparison of mock.MagickMock with mock.ANY.
2017-01-21 23:12:58 +02:00
Mark Dickinson
5e65cd39df
Issue #29282 : Backed out changeset b33012ef1417
2017-01-21 13:10:52 +00:00
Mark Dickinson
d1b230e48b
Issue #29282 : add fused multiply-add function, math.fma.
2017-01-21 12:35:30 +00:00
Ned Deily
502efda10c
Update Misc/NEWS and Misc/HISTORY from current 3.5 and 3.4 branches.
2017-01-20 10:39:13 -05:00
Ned Deily
b2df6319e3
Update Misc/NEWS and Misc/HISTORY from current 3.5 and 3.4 branches.
2017-01-20 10:35:46 -05:00
Ned Deily
67c1cb2008
Issue #29316 : Restore the provisional status of typing module and add
...
corresponding note to documentation. Patch by Ivan L.
2017-01-20 10:13:23 -05:00
Serhiy Storchaka
299dc239fe
Issue #29327 : Fixed a crash when pass the iterable keyword argument to sorted().
2017-01-20 08:35:18 +02:00
Serhiy Storchaka
398ef5c08f
Issue #29327 : Fixed a crash when pass the iterable keyword argument to sorted().
2017-01-20 08:33:06 +02:00
Larry Hastings
09e4ce5a95
Merge 3.5.3 release head with main 3.5 branch.
2017-01-17 00:56:40 -08:00
Larry Hastings
c620f200d6
Post-release updates for 3.5.3.
2017-01-17 00:49:32 -08:00
Raymond Hettinger
e12c313f5e
merge
2017-01-16 22:43:43 -08:00
Raymond Hettinger
80490525e0
Issue #29011 : Fix an important omission by adding Deque to the typing module.
2017-01-16 22:42:37 -08:00
Larry Hastings
51ba5b7d0c
Version bump for Python 3.5.3.
2017-01-16 00:19:36 -08:00
Martin Panter
35e022b77c
Repeat “when pass” fixes for 3.7 section
2017-01-14 08:43:13 +00:00
Martin Panter
446a498a63
Merge doc fixes from 3.6
2017-01-14 09:56:00 +00:00
Martin Panter
674b099eaa
More instances of “when pass”
2017-01-14 08:33:10 +00:00
Martin Panter
4659ddc433
Merge doc fixes from 3.5
2017-01-14 09:54:57 +00:00
Martin Panter
536d70ed33
Fix grammar, typos and markup in documentation and code comments
...
* Indent versionchanged at method level, not class level
* Mark up ``--help`` to avoid generating an en dash
* Use forward slash in Unix command line with a dollar sign ($) prompt
2017-01-14 08:23:08 +00:00
Serhiy Storchaka
9ed707eb4c
Issue #29197 : Removed deprecated function ntpath.splitunc().
2017-01-13 20:55:05 +02:00
Serhiy Storchaka
4f76fb16b7
Issue #29210 : Removed support of deprecated argument "exclude" in
...
tarfile.TarFile.add().
2017-01-13 13:25:24 +02:00
Serhiy Storchaka
6196ac4186
Issue #29219 : Fixed infinite recursion in the repr of uninitialized
...
ctypes.CDLL instances.
2017-01-13 09:44:00 +02:00
Serhiy Storchaka
4c4ff5f4d4
Issue #29219 : Fixed infinite recursion in the repr of uninitialized
...
ctypes.CDLL instances.
2017-01-13 09:42:17 +02:00
Serhiy Storchaka
4b318f8be9
Issue #29219 : Fixed infinite recursion in the repr of uninitialized
...
ctypes.CDLL instances.
2017-01-13 09:37:56 +02:00
Serhiy Storchaka
cc283378d6
Issue #29192 : Removed deprecated features in the http.cookies module.
2017-01-13 09:23:15 +02:00
Serhiy Storchaka
009b0a1fac
Issue #29193 : A format string argument for string.Formatter.format()
...
is now positional-only.
2017-01-13 09:10:51 +02:00
Serhiy Storchaka
b37f3f6e6b
Issue #29195 : Removed support of deprecated undocumented keyword arguments
...
in methods of regular expression objects.
2017-01-13 08:53:58 +02:00
Serhiy Storchaka
617c7753ce
Issue #28969 : Fixed race condition in C implementation of functools.lru_cache.
...
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 19:42:20 +02:00
Serhiy Storchaka
42e1ea9a10
Issue #28969 : Fixed race condition in C implementation of functools.lru_cache.
...
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 19:12:21 +02:00
Serhiy Storchaka
67796521dd
Issue #28969 : Fixed race condition in C implementation of functools.lru_cache.
...
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 18:34:33 +02:00
Serhiy Storchaka
d9c956fb23
Issue #20804 : The unittest.mock.sentinel attributes now preserve their
...
identity when they are copied or pickled.
2017-01-11 20:13:03 +02:00
Martin Panter
23e5b82cf7
Issue #29239 : Merge bug number from 3.6
2017-01-11 12:00:39 +00:00
Martin Panter
ced4b90756
Issue #29239 : Fix --enable-optimizations bug number
2017-01-11 11:56:22 +00:00
Xiang Zhang
04c15d5bdc
Issue #29142 : Merge 3.6.
2017-01-09 11:52:10 +08:00
Xiang Zhang
c44d58a77a
Issue #29142 : Merge 3.5.
2017-01-09 11:50:02 +08:00
Xiang Zhang
959ff7f1c6
Issue #29142 : Fix suffixes in no_proxy handling in urllib.
...
In urllib.request, suffixes in no_proxy environment variable with
leading dots could match related hostnames again (e.g. .b.c matches a.b.c).
Patch by Milan Oberkirch.
2017-01-09 11:47:55 +08:00
Raymond Hettinger
4ee39141e8
Issue #29203 : functools.lru_cache() now respects PEP 468
2017-01-08 17:28:20 -08:00
Xiang Zhang
ce16c6827c
Issue #29034 : Merge 3.6.
2017-01-08 23:30:05 +08:00
Xiang Zhang
04316c4cc8
Issue #29034 : Fix memory leak and use-after-free in path_converter.
2017-01-08 23:26:57 +08:00
Victor Stinner
cd992bbe73
Merge 3.6
2017-01-06 18:16:07 +01:00
Victor Stinner
84b6fb0eea
Fix unittest.mock._Call: don't ignore name
...
Issue #28961 : Fix unittest.mock._Call helper: don't ignore the name parameter
anymore.
Patch written by Jiajun Huang.
2017-01-06 18:15:51 +01:00
INADA Naoki
7ed28a8914
Merge 3.6
2017-01-06 17:44:43 +09:00
INADA Naoki
a634e23209
Issue #29159 : Fix regression in bytes(x) when x.__index__() raises Exception.
2017-01-06 17:32:01 +09:00
Xavier de Gaye
9971220e41
Issue #26851 : Merge 3.6.
2017-01-04 21:53:53 +01:00
Xavier de Gaye
2a352b667b
Issue #26851 : Set Android compilation and link flags.
2017-01-04 21:51:16 +01:00
Larry Hastings
e744804bc9
Post-release fixups for Python 3.5.3rc1.
2017-01-02 18:31:25 -08:00
Steve Dower
ea74f0cd4a
Issue #24932 : Use proper command line parsing in _testembed
2017-01-01 20:25:03 -08:00
Berker Peksag
6215e524a2
Issue #15812 : Merge from 3.6
2017-01-02 07:00:29 +03:00
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