summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* support: add more info on temp_dir() and change_cwd() failureVictor Stinner2017-02-081-4/+6
| | | | Log the OSError exception message.
* Issue #29314: Merge with 3.6Mariatta Wijaya2017-02-061-1/+2
|\
| * Issue #29314: Merge with 3.5Mariatta Wijaya2017-02-061-1/+2
| |\
| | * Issue #29314: Set the stacklevel to two in asyncio.async() Deprecation WarningMariatta Wijaya2017-02-061-1/+2
| | |
* | | Issue #28164: Improves test on Windows 7Steve Dower2017-02-061-16/+22
|\ \ \ | |/ /
| * | Issue #28164: Improves test on Windows 7Steve Dower2017-02-061-16/+22
| | |
* | | regrtest: don't fail immediately if a child does crashVictor Stinner2017-02-063-6/+16
| | | | | | | | | | | | | | | | | | Issue #29362: Catch a crash of a worker process as a normal failure and continue to run next tests. It allows to get the usual test summary: single line result (OK/FAIL), total duration, etc.
* | | Issue #29405: Make total calculation in _guess_delimiter more accurate.Xiang Zhang2017-02-061-2/+2
| | |
* | | Merge from 3.6Steve Dower2017-02-04113-1181/+819
|\ \ \ | |/ / |/| |
| * | Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)Steve Dower2017-02-041-13/+27
| |\ \
| * \ \ Merge issue #28164 and issue #29409Steve Dower2017-02-042-2/+46
| |\ \ \
| * \ \ \ Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-042-1/+12
| |\ \ \ \
| * \ \ \ \ Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-04113-1181/+819
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | the match object. Based on patch by WGH.
| | * | | | | Issue #29263: LOAD_METHOD support for C methodsINADA Naoki2017-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling builtin method is at most 10% faster.
| | * | | | | Closes #29213: Merged fix from 3.6.Vinay Sajip2017-02-022-7/+5
| | | | | | |
| | * | | | | Closes #24875: Merged fix from 3.6.Vinay Sajip2017-02-02113-1181/+819
| | |\ \ \ \ \
| | | * | | | | Rename struct.unpack() 2nd parameter to "buffer"Victor Stinner2017-02-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | * | | | | Issue #29300: Convert _struct module to Argument ClinicVictor Stinner2017-02-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| | | * | | | | Issue #29368: The extend() method is now called instead of the append()Serhiy Storchaka2017-02-021-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | method when unpickle collections.deque and other list-like objects. This can speed up unpickling to 2 times.
| | | * | | | | Issue #29377: Add three new wrappers to types.py (Manuel Krebber).Guido van Rossum2017-02-012-0/+22
| | | | | | | |
| | | * | | | | Fix test_gdb.test_wrapper_call() on Python 2Victor Stinner2017-02-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367. On Python 2, __init__ name is render as u'__init__'.
| | | * | | | | Make test_gdb.test_wrapper_call() make reliableVictor Stinner2017-02-011-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367. Use two break points to prevent breakpoint during Python initialization.
| | | * | | | | python-gdb.py supports method-wrapperVictor Stinner2017-02-011-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367: python-gdb.py now supports also method-wrapper (wrapperobject) objects.
| | | * | | | | Issue #29218: Remove unused install_misc commandBerker Peksag2017-02-011-31/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has been documented as unused since 6c6844a2fa30 (2000-05-25) Patch by Eric N. Vander Weele.
| | | * | | | | Issue #29283: Merge from 3.6Berker Peksag2017-01-301-2/+0
| | | |\ \ \ \ \
| | | * \ \ \ \ \ Closes #29308: Merged fix from 3.6.Vinay Sajip2017-01-27108-1141/+763
| | | |\ \ \ \ \ \
| | | | * | | | | | Issues #29311, #29289: Fixed and improved docstrings for dict and OrderedDictSerhiy Storchaka2017-01-251-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | methods.
| | | | * | | | | | issue29167: fix race condition in (Int)FlagEthan Furman2017-01-242-6/+99
| | | | |\ \ \ \ \ \
| | | | * \ \ \ \ \ \ Issue #29337: Fixed possible BytesWarning when compare the code objects.Serhiy Storchaka2017-01-24107-1131/+754
| | | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Warnings could be emitted at compile time.
| | | | | * | | | | | | Issue #29338: Fix test_enum.Serhiy Storchaka2017-01-241-0/+4
| | | | | | | | | | | |
| | | | | * | | | | | | Issues #29273: Merge test___all__ from 3.6Martin Panter2017-01-231-11/+0
| | | | | |\ \ \ \ \ \ \
| | | | | * | | | | | | | Issue #29338: Don't output an empty signature for class constructor.Serhiy Storchaka2017-01-231-2/+2
| | | | | | | | | | | | |
| | | | | * | | | | | | | Issue #29338: The help of a builtin or extension class now includes theSerhiy Storchaka2017-01-231-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | constructor signature if __text_signature__ is provided for the class.
| | | | | * | | | | | | | Skip the test requiring ctypes if ctypes is unavailable.Gregory P. Smith2017-01-221-1/+6
| | | | | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
| | | | | * \ \ \ \ \ \ \ \ typo fix, extra '.' on MacOS :)Gregory P. Smith2017-01-221-1/+1
| | | | | |\ \ \ \ \ \ \ \ \
| | | | | * \ \ \ \ \ \ \ \ \ Issue #28556: Allow defining methods in NamedTuple class syntax (#362) ↵Guido van Rossum2017-01-22105-1128/+721
| | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (3.6->3.7)
| | | | | | * \ \ \ \ \ \ \ \ \ Issue #28556: various style fixes for typing.py (3.6->3.7)Guido van Rossum2017-01-222-36/+68
| | | | | | |\ \ \ \ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ \ \ \ \ Issue #29335: Fix subprocess.Popen.wait() when the child process hasGregory P. Smith2017-01-22105-1128/+721
| | | | | | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exited to a stopped instead of terminated state (ex: when under ptrace).
| | | | | | | * \ \ \ \ \ \ \ \ \ \ Issue #29290: Merge 3.6.Xiang Zhang2017-01-222-1/+18
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \
| | | | | | | * \ \ \ \ \ \ \ \ \ \ \ Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.Serhiy Storchaka2017-01-212-5/+20
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | * | | | | | | | | | | | | Issue #29282: Backed out changeset b33012ef1417Mark Dickinson2017-01-211-234/+0
| | | | | | | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | | | | | | Issue #29282: add fused multiply-add function, math.fma.Mark Dickinson2017-01-211-0/+234
| | | | | | | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | | | | | | Issue #29327: Fixed a crash when pass the iterable keyword argument to sorted().Serhiy Storchaka2017-01-201-0/+10
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ Issue #29198: add AsyncGenerator (Jelle Zijlstra) (3.6->3.7)Guido van Rossum2017-01-18105-1128/+721
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | * | | | | | | | | | | | | | Update and enhance python-gdb.pyVictor Stinner2017-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | | | | | * | | | | | | | | | | | | | Issue #28556: allow default values in class form of NamedTuple -- Jelle ↵Guido van Rossum2017-01-182-1/+42
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Zijlstra (3.6->3.7)
| | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Issue 29274: Merge doc fixes from 3.6Martin Panter2017-01-182-8/+8
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Issue #28556: merge 5 more typing changes from upstream (#340, #344, #348, ↵Guido van Rossum2017-01-17104-1127/+720
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #349, #350) (3.6->3.7)
| | | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mergeRaymond Hettinger2017-01-162-0/+21
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Closes #29132: Merged fix from 3.6.Vinay Sajip2017-01-15104-1127/+720
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \