Steve Dower
722e3e2705
Issue #28164 : Correctly handle special console filenames (patch by Eryk Sun)
2017-02-04 15:07:46 -08:00
Steve Dower
479d96c694
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:56:57 -08:00
Steve Dower
1add96f1b6
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:55:16 -08:00
Steve Dower
d3c4853b78
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:54:56 -08:00
Steve Dower
eacee98679
Issue #29409 : Implement PEP 529 for io.FileIO (Patch by Eryk Sun)
2017-02-04 14:38:11 -08:00
Serhiy Storchaka
ef5176769d
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:57:44 +02:00
Serhiy Storchaka
86e42376c2
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:55:40 +02:00
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
INADA Naoki
5566bbb8d5
Issue #29263 : LOAD_METHOD support for C methods
...
Calling builtin method is at most 10% faster.
2017-02-03 07:43:03 +09:00
Vinay Sajip
144fff8b90
Closes #29213 : Merged fix from 3.6.
2017-02-02 19:33:43 +00:00
Vinay Sajip
3746619b84
Fixes #29213 : merged fix from 3.5.
2017-02-02 19:26:48 +00:00
Vinay Sajip
db38b6c9a9
Fixes #29213 : regularised EOLs of venv scripts.
2017-02-02 19:25:24 +00:00
Vinay Sajip
7601d780a7
Closes #24875 : Merged fix from 3.6.
2017-02-02 19:17:51 +00:00
Vinay Sajip
993f535ae9
Fixes #24875 : Merged fix from 3.5.
2017-02-02 19:17:02 +00:00
Vinay Sajip
db6322cb8a
Fixes #24875 : pip can now be installed in a venv with --system-site-packages.
2017-02-02 19:05:19 +00:00
Victor Stinner
c0f59ad145
Rename struct.unpack() 2nd parameter to "buffer"
...
Issue #29300 : Rename struct.unpack() second parameter from "inputstr" to
"buffer", and use the Py_buffer type.
Fix also unit tests on struct.unpack() which passed a Unicode string instead of
a bytes string as struct.unpack() second parameter. The purpose of
test_trailing_counter() is to test invalid format strings, not to test the
buffer parameter.
2017-02-02 14:24:16 +01:00
Victor Stinner
64e91275e3
Merge 3.5
2017-02-02 14:18:43 +01:00
Victor Stinner
a5917d1d15
Issue #29300 : test_struct tests unpack_from() with keywords
...
Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
2017-02-02 14:18:18 +01:00
Victor Stinner
3f2d10132d
Issue #29300 : Convert _struct module to Argument Clinic
...
* The struct module now requires contiguous buffers.
* Convert most functions and methods of the _struct module to Argument Clinic
* Use "Py_buffer" type for the "buffer" argument. Argument Clinic is
responsible to create and release the Py_buffer object.
* Use "PyStructObject *" type for self to avoid explicit conversions.
* Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
* Rephrase docstrings.
* Rename "fmt" argument to "format" in docstrings and the documentation.
As a side effect, functions and methods which used METH_VARARGS calling
convention like struct.pack() now use the METH_FASTCALL calling convention
which avoids the creation of temporary tuple to pass positional arguments and
so is faster. For example, struct.pack("i", 1) becomes 1.56x faster (-36%)::
$ ./python -m perf timeit \
-s 'import struct; pack=struct.pack' 'pack("i", 1)' \
--compare-to=../default-ref/python
Median +- std dev: 119 ns +- 1 ns -> 76.8 ns +- 0.4 ns: 1.56x faster (-36%)
Significant (t=295.91)
Patch co-written with Serhiy Storchaka.
2017-02-02 12:09:30 +01: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
72268ae1c0
Fix test_gdb.test_wrapper_call() on Python 2
...
Issue #29367 . On Python 2, __init__ name is render as u'__init__'.
2017-02-01 18:26:14 +01:00
Victor Stinner
f94b68a025
Make test_gdb.test_wrapper_call() make reliable
...
Issue #29367 . Use two break points to prevent breakpoint during Python
initialization.
2017-02-01 17:00:32 +01: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
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
Berker Peksag
7964d2b22e
Issue #29283 : Merge from 3.6
2017-01-30 13:56:20 +03:00
Berker Peksag
236fc60986
Issue #29283 : Delete accidentally added Lib/site-packages/README
...
It was renamed to README.txt in d90a65014c42 and it was
back by a merge commit accidentally.
2017-01-30 13:55:49 +03:00
Vinay Sajip
61fda05b82
Closes #29308 : Merged fix from 3.6.
2017-01-27 12:43:41 +00:00
Vinay Sajip
dbb5686e7e
Fixes #29308 : Merged fix from 3.5.
2017-01-27 12:42:45 +00:00
Vinay Sajip
3ac504289a
Fixes #29308 : Respect VIRTUAL_ENV_DISABLE_PROMPT in Activate.ps1.
2017-01-27 12:41:27 +00:00
Serhiy Storchaka
78d9e58f20
Issues #29311 , #29289 : Fixed and improved docstrings for dict and OrderedDict
...
methods.
2017-01-25 00:30:04 +02:00
Ethan Furman
0105606f55
issue29167: fix race condition in (Int)Flag
2017-01-24 12:13:34 -08:00
Ethan Furman
28cf663ff0
closes issue29167: fix race condition in (Int)Flag
2017-01-24 12:12:06 -08: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
Serhiy Storchaka
90f6332382
Issue #29338 : Fix test_enum.
2017-01-24 09:06:22 +02:00
Martin Panter
c05032c4ab
Issues #29273 : Merge test___all__ from 3.6
2017-01-23 23:15:19 +00:00
Martin Panter
9cf20a664c
Issues #29273 : Merge test___all__ from 3.5
2017-01-23 22:59:03 +00:00
Martin Panter
b1b985da12
Issue #29273 : Remove unneeded workaround to restore locale
...
The “readline” module already has a workaround using setlocale(LC_CTYPE,
NULL). The code in test___all__ calls getlocale(), which can subtly alter
the locale string and cause the test framework to complain.
2017-01-23 22:11:09 +00:00
Serhiy Storchaka
213f229fbd
Issue #29338 : Don't output an empty signature for class constructor.
2017-01-23 14:02:35 +02: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
60e6e962ba
Skip the test requiring ctypes if ctypes is unavailable.
...
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
2017-01-22 22:20:04 -08:00
Gregory P. Smith
9358a6e62b
Skip the test requiring ctypes if ctypes is unavailable.
...
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
2017-01-22 22:19:51 -08:00
Gregory P. Smith
1fa08bcbbb
Skip the test requiring ctypes if ctypes is unavailable.
...
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
2017-01-22 22:19:38 -08:00
Gregory P. Smith
773a8c4f8d
typo fix, extra '.' on MacOS :)
2017-01-22 20:55:20 -08:00
Gregory P. Smith
21a9b1dfc6
typo fix, extra '.' on MacOS :)
2017-01-22 20:55:02 -08:00
Gregory P. Smith
21d333b703
typo fix, extra '.' :)
2017-01-22 20:54:42 -08:00
Guido van Rossum
4d5097a7da
Issue #28556 : Allow defining methods in NamedTuple class syntax ( #362 ) (3.6->3.7)
2017-01-22 17:47:22 -08:00
Guido van Rossum
744cd63df9
Issue #28556 : Allow defining methods in NamedTuple class syntax ( #362 ) (3.5->3.6)
2017-01-22 17:47:21 -08:00
Guido van Rossum
95919c096c
Issue #28556 : Allow defining methods in NamedTuple class syntax ( #362 )
2017-01-22 17:47:20 -08:00
Guido van Rossum
62f82a9306
Issue #28556 : various style fixes for typing.py (3.6->3.7)
2017-01-22 17:43:57 -08:00
Guido van Rossum
0c5f47fbf4
Issue #28556 : various style fixes for typing.py (3.5->3.6)
2017-01-22 17:43:56 -08:00
Guido van Rossum
d7adfe129c
Issue #28556 : various style fixes for typing.py
2017-01-22 17:43:53 -08: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
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
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
Guido van Rossum
38a49bec7a
Issue #29198 : add AsyncGenerator (Jelle Zijlstra) (3.5->3.6)
2017-01-18 13:10:34 -08:00
Guido van Rossum
e9ed560fce
Issue #29198 : add AsyncGenerator (Jelle Zijlstra)
2017-01-18 13:10:31 -08:00
Guido van Rossum
c75340a8fd
Issue #29198 : add AsyncGenerator (Jelle Zijlstra) (3.6->3.7)
2017-01-18 13:10:36 -08:00
Victor Stinner
fa025f112f
Update and enhance python-gdb.py
...
Issue #29259 :
* Detect PyCFunction is the current frame, not only in the older frame
* Ignore PyCFunction_Call() since it now calls _PyCFunction_FastCallDict(), and
_PyCFunction_FastCallDict() is already detected
2017-01-18 17:20:01 +01:00
Guido van Rossum
e69f0e6111
Issue #28556 : allow default values in class form of NamedTuple -- Jelle Zijlstra (3.6->3.7)
2017-01-18 08:03:54 -08:00
Guido van Rossum
49f08a2c26
Issue #28556 : allow default values in class form of NamedTuple -- Jelle Zijlstra (3.5->3.6)
2017-01-18 08:03:52 -08:00
Guido van Rossum
3c268be885
Issue #28556 : allow default values in class form of NamedTuple -- Jelle Zijlstra
2017-01-18 08:03:50 -08:00
Martin Panter
9722d7f142
Issue 29274: Merge doc fixes from 3.6
2017-01-18 12:11:42 +00:00
Martin Panter
4710935b11
Issue 29274: Merge doc fixes from 3.5
2017-01-18 12:11:12 +00:00
Martin Panter
37f183d43d
Issue #29274 : tests cases → test cases
2017-01-18 12:06:38 +00:00
Guido van Rossum
52f29591bc
Issue #28556 : merge 5 more typing changes from upstream ( #340 , #344 , #348 , #349 , #350 ) (3.6->3.7)
2017-01-17 20:43:31 -08:00
Guido van Rossum
043a8bc72a
Issue #28556 : merge 5 more typing changes from upstream ( #340 , #344 , #348 , #349 , #350 ) (3.5->3.6)
2017-01-17 20:43:30 -08:00
Guido van Rossum
83ec302e52
Issue #28556 : merge 5 more typing changes from upstream ( #340 , #344 , #348 , #349 , #350 )
2017-01-17 20:43:28 -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
Raymond Hettinger
f6b96c7bb5
merge
2017-01-16 22:44:14 -08:00
Vinay Sajip
fc4b438163
Closes #29132 : Merged fix from 3.6.
2017-01-15 10:07:56 +00:00
Vinay Sajip
61eda7260a
Fixed #29132 : Updated shlex to work better with punctuation chars in POSIX mode.
...
Thanks to Evan_ for the report and patch.
2017-01-15 10:06:52 +00:00
Martin Panter
5644729aa6
Issue #29145 : Merge test from 3.6
2017-01-14 06:29:32 +00:00
Martin Panter
758c7d044b
Merge tests from 3.5
2017-01-14 06:26:51 +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
97bf592925
Null merge
2017-01-12 19:43:15 +02:00
Serhiy Storchaka
cc03ab6c4f
Null merge
2017-01-12 19:43:06 +02:00
Serhiy Storchaka
cb19aeb550
Merge heads
2017-01-12 19:42:44 +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
Vinay Sajip
98a74413b9
Issue #22343 : Made bash activate script available on Windows.
2017-01-12 17:12:10 +00:00