summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge 3.6Victor Stinner2017-02-101-2/+3
|\
| * Fix test_datetime on WindowsVictor Stinner2017-02-101-2/+3
| | | | | | | | | | Issue #29100: On Windows, datetime.datetime.fromtimestamp(min_ts) fails with an OSError in test_timestamp_limits().
* | Merge 3.6Victor Stinner2017-02-101-3/+7
|\ \ | |/
| * Fix test_datetime on system with 32-bit time_tVictor Stinner2017-02-101-3/+7
| | | | | | | | Issue #29100: Catch OverflowError in the new test_timestamp_limits() test.
* | Merge 3.6Victor Stinner2017-02-101-0/+36
|\ \ | |/
| * Fix datetime.fromtimestamp(): check boundsVictor Stinner2017-02-101-0/+36
| | | | | | | | | | Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check minimum and maximum years.
* | Merge 3.6 (fix #29519)Łukasz Langa2017-02-101-2/+2
|\ \ | |/
| * Merge 3.5 (fix #29519)Łukasz Langa2017-02-101-2/+2
| |\
| | * Fix #29519: weakref spewing exceptions during interp finalizationŁukasz Langa2017-02-101-2/+2
| | |
* | | Issue #29507: Update test_exceptionsVictor Stinner2017-02-091-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_unraisable() of test_exceptions expects that PyErr_WriteUnraisable(method) fails on repr(method). Before the previous change (7b8df4a5d81d), slot_tp_finalize() called PyErr_WriteUnraisable() with a PyMethodObject. In this case, repr(method) calls repr(self) which is BrokenRepr.__repr__() and the calls raises a new exception. After the previous change, slot_tp_finalize() uses an unbound method: repr() is called on a regular __del__() method which doesn't call repr(self). repr() doesn't fail anymore. PyErr_WriteUnraisable() doesn't call __repr__() anymore, so remove BrokenRepr unit test.
* | | support: temp_dir() and change_cwd() uses repr() in error messageVictor Stinner2017-02-082-5/+5
| | | | | | | | | | | | | | | Serhiy Storshaka pointed me that str(path) can emit a BytesWarning: use repr(path) instead.
* | | Fix regrtest -j0 -R outputVictor Stinner2017-02-081-1/+1
| | | | | | | | | | | | Write also dots into stderr, instead of stdout.
* | | Update test_support for my temp_dir/change_cwd changesVictor Stinner2017-02-082-6/+19
| | |
* | | 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-071-1/+2
|\ \ \ | |/ /
| * | Issue #29314: Merge with 3.5Mariatta Wijaya2017-02-071-1/+2
| |\ \ | | |/
| | * Issue #29314: Set the stacklevel to two in asyncio.async() Deprecation WarningMariatta Wijaya2017-02-071-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-051-15/+27
|\ \ \ | |/ /
| * | Updates test_winconsoleio to better show the source of its issues.Steve Dower2017-02-051-15/+27
| | |
* | | Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)Steve Dower2017-02-041-13/+27
|\ \ \ | |/ /
| * | 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 #28164: Correctly handle special console filenames (patch by Eryk Sun)Steve Dower2017-02-041-1/+27
| | |
| * | Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)Steve Dower2017-02-041-1/+19
| | |
* | | Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-042-1/+12
|\ \ \ | |/ /
| * | Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-042-1/+12
| |\ \ | | |/
| | * 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-041-0/+10
|\ \ \ | |/ / | | | | | | the match object. Based on patch by WGH.
| * | Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-0/+10
| |\ \ | | |/ | | | | | | the match object. Based on patch by WGH.
| | * Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-0/+10
| | | | | | | | | | | | the match object. Based on patch by WGH.
| * | Fixes #29213: merged fix from 3.5.Vinay Sajip2017-02-022-7/+5
| |\ \ | | |/
| | * Fixes #29213: regularised EOLs of venv scripts.Vinay Sajip2017-02-022-7/+5
| | |
* | | Issue #29263: LOAD_METHOD support for C methodsINADA Naoki2017-02-021-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-022-8/+23
|\ \ \ | |/ /
| * | Fixes #24875: Merged fix from 3.5.Vinay Sajip2017-02-022-8/+23
| |\ \ | | |/
| | * Fixes #24875: pip can now be installed in a venv with --system-site-packages.Vinay Sajip2017-02-022-9/+25
| | |
| * | Merge 3.5Victor Stinner2017-02-021-0/+4
| |\ \ | | |/
| | * Issue #29300: test_struct tests unpack_from() with keywordsVictor Stinner2017-02-021-0/+4
| | | | | | | | | | | | | | | Add an unit test on the _struct.Struct.unpack_from() method to test passing arguments as keywords.
* | | 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.