summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add asyncio.Handle.cancelled() method (#2388)Marat Sharafutdinov2017-11-072-4/+7
|
* bpo-31843: sqlite3.connect() now accepts PathLike objects as database name ↵Anders Lorentsen2017-11-071-0/+11
| | | | (#4299)
* bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Oren Milman2017-11-071-0/+3
| | | | object is uninitialized (#3958)
* bpo-31770: Prevent a crash and refleaks when calling ↵Oren Milman2017-11-071-0/+18
| | | | sqlite3.Cursor.__init__() more than once (#3968)
* bpo-31945: Configurable blocksize in HTTP(S)Connection (#4279)Nir Soffer2017-11-062-7/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blocksize was hardcoded to 8192, preventing efficient upload when using file-like body. Add blocksize argument to __init__, so users can configure the blocksize to fit their needs. I tested this uploading data from /dev/zero to a web server dropping the received data, to test the overhead of the HTTPConnection.send() with a file-like object. Here is an example 10g upload with the default buffer size (8192): $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/ Uploaded 10.00g in 17.53 seconds (584.00m/s) real 0m17.574s user 0m8.887s sys 0m5.971s Same with 512k blocksize: $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/ Uploaded 10.00g in 6.60 seconds (1551.15m/s) real 0m6.641s user 0m3.426s sys 0m2.162s In real world usage the difference will be smaller, depending on the local and remote storage and the network. See https://github.com/nirs/http-bench for more info.
* Fix miscellaneous typos (#4275)luzpaz2017-11-0521-26/+26
|
* bpo-28564: Use os.scandir() in shutil.rmtree(). (#4085)Serhiy Storchaka2017-11-042-31/+44
| | | | This speeds up it to 20-40%.
* bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor (#4241)Antoine Pitrou2017-11-045-75/+203
| | | | | | * bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor * Fix docstring
* bpo-9678: Fix determining the MAC address in the uuid module. (#4264)Serhiy Storchaka2017-11-041-2/+16
| | | | | | * Using ifconfig on NetBSD and OpenBSD. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD. Based on patch by Takayuki Shimizukawa.
* bpo-31933: fix blake2 multi-byte params on big endian platforms (#4250)Jack O'Connor2017-11-031-0/+36
| | | | | | | | | | | | All Blake2 params have to be encoded in little-endian byte order. For the two multi-byte integer params, leaf_length and node_offset, that means that assigning a native-endian integer to them appears to work on little-endian platforms, but gives the wrong result on big-endian. The current libb2 API doesn't make that very clear, and @sneves is working on new API functions in the GH issue above. In the meantime, we can work around the problem by explicitly assigning little-endian values to the parameter block. See https://github.com/BLAKE2/libb2/issues/12.
* bpo-31924: Fix test_curses on NetBSD 8. (#4228)Serhiy Storchaka2017-11-031-2/+4
|
* bpo-31310: multiprocessing's semaphore tracker should be launched again if ↵Antoine Pitrou2017-11-032-7/+56
| | | | | | | | | | | crashed (#3247) * bpo-31310: multiprocessing's semaphore tracker should be launched again if crashed * Avoid mucking with process state in test. Add a warning if the semaphore process died, as semaphores may then be leaked. * Add NEWS entry
* bpo-31308: If multiprocessing's forkserver dies, launch it again when ↵Antoine Pitrou2017-11-032-5/+64
| | | | | | | | | | | | | | | | | | | | | | necessary (#3246) * bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary. * Fix test on Windows * Add NEWS entry * Adopt a different approach: ignore SIGINT and SIGTERM, as in semaphore tracker. * Fix comment * Make sure the test doesn't muck with process state * Also test previously-started processes * Update 2017-08-30-17-59-36.bpo-31308.KbexyC.rst * Avoid masking SIGTERM in forkserver. It's not necessary and causes a race condition in test_many_processes.
* bpo-31784: Implement PEP 564: add time.time_ns() (#3989)Victor Stinner2017-11-022-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | Add new time functions: * time.clock_gettime_ns() * time.clock_settime_ns() * time.monotonic_ns() * time.perf_counter_ns() * time.process_time_ns() * time.time_ns() Add new _PyTime functions: * _PyTime_FromTimespec() * _PyTime_FromNanosecondsObject() * _PyTime_FromTimeval() Other changes: * Add also os.times() tests to test_os. * pytime_fromtimeval() and pytime_fromtimeval() now return _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined behaviour * _PyTime_FromNanoseconds() parameter type changes from long long to _PyTime_t
* bpo-31307: Make ConfigParser.read() accept bytes objects (GH-3420)Vincent Michel2017-11-022-1/+18
|
* bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵Serhiy Storchaka2017-11-011-1/+8
| | | | (#4220)
* bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵Serhiy Storchaka2017-11-011-0/+3
| | | | | | earlier. (#3826) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7.
* [asyncio] bpo-30423: add regression test for orphan future causes ↵jimmylai2017-11-011-0/+16
| | | | | | | | "RuntimeError: Event loop stopped before Future completed." (#3295) * call remove_done_callback in finally section * [asyncio] bpo-30423 bug: add regression test for orphan future causes "RuntimeError: Event loop stopped before Future completed."
* bpo-31919: Fix building the curses module on OpenIndiana. (#4211)Serhiy Storchaka2017-11-011-9/+13
|
* Fix test_socket.test_create_connection() (#4206)Victor Stinner2017-11-011-0/+4
| | | | bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI.
* pythoninfo: add Py_DEBUG (#4198)Victor Stinner2017-10-311-0/+8
|
* test_capi.test__testcapi() becomes more verbose (#4197)Victor Stinner2017-10-311-4/+9
| | | | Write the name of each subtest on a new line to help debugging when a test does crash Python.
* bpo-31897: Convert unexpected errors when read bogus binary plists into ↵Serhiy Storchaka2017-10-312-5/+68
| | | | InvalidFileException. (#4171)
* bpo-31891: Fix building the curses module on NetBSD. (#4165)Serhiy Storchaka2017-10-311-8/+24
|
* bpo-31629: Add support.SaveSignals (#4183)Victor Stinner2017-10-312-1/+43
| | | | | test_curses now saves/restores signals. On FreeBSD, the curses module sets handlers of some signals, but don't restore old handlers when the module is deinitialized.
* Remove tiny bit of deadcode from wsgiref.validate (#3996)Alex Gaynor2017-10-311-2/+0
|
* bpo-31245: Asyncio unix socket datagram (#3164)Quentin Dawans2017-10-303-2/+19
|
* bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158)Serhiy Storchaka2017-10-281-6/+29
| | | separators that are not bytes-like objects.
* bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (#4070)Terry Jan Reedy2017-10-281-0/+8
|
* IDLE -- Restrict shell prompt manipulaton to the shell. (#4143)Terry Jan Reedy2017-10-282-24/+15
| | | | | | Editor and output windows only see an empty last prompt line. This simplifies the code and fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is not set or changed.
* bpo-31860: Make the font sample in the IDLE font configuration dialog ↵Serhiy Storchaka2017-10-282-34/+43
| | | | | editable. (#4106) Changes persist while IDLE remains open
* bpo-31174: Improve the code of test_tools.test_unparse. (#4146)Serhiy Storchaka2017-10-271-8/+8
|
* bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812)Lovesh Harchandani2017-10-271-1/+1
| | | TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed.
* bpo-28936: Detect lexically first syntax error first (#4097)Ivan Levkivskyi2017-10-261-9/+27
| | | | Lexically first global and nonlocal syntax errors at given scope should be detected first.
* Closes bpo-28281: Remove year (1-9999) limits on the weekday() function. (#4109)Alexander Belopolsky2017-10-262-2/+65
| | | Patch by Mark Gollahon.
* bpo-30553: Add status code 421 to http.HTTPStatus (GH-2589)Vitor Pereira2017-10-262-0/+4
|
* bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327)xdegaye2017-10-261-2/+101
|
* bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (#4118)Serhiy Storchaka2017-10-262-7/+56
| | | | | | BytesWarning no longer emitted when the fromlist argument of __import__() or the __all__ attribute of the module contain bytes instances.
* fixes bpo-31866: remove code pertaining to AtheOS support (#4115)Benjamin Peterson2017-10-262-30/+4
| | | | We stop support this OS in 2007 with commit 19fab761b71a1687aee3415db3a937b5ce31975d. Let's finish.
* Closes bpo-31800: Support for colon when parsing time offsets (#4015)Mario Corchero2017-10-263-13/+74
| | | Add support to strptime to parse time offsets with a colon between the hour and the minutes.
* bpo-31664: Fix test_crypt for the openwall implementation of crypt. (#4116)Serhiy Storchaka2017-10-251-1/+7
|
* bpo-31845: Fix reading flags from environment (GH-4105)Nick Coghlan2017-10-251-1/+34
| | | | | | | | | | The startup refactoring means command line settings are now applied after settings are read from the environment. This updates the way command line settings are applied to account for that, ensures more settings are first read from the environment in _PyInitializeCore, and adds a simple test case covering the flags that are easy to check.
* bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group ↵Serhiy Storchaka2017-10-244-44/+101
| | | | flags for RE. (#3885)
* Closes bpo-28292: Implemented Calendar.itermonthdays3() and ↵Alexander Belopolsky2017-10-242-25/+63
| | | | | | | itermonthdays4(). (#4079) Calendar.itermonthdates() will now consistently raise an exception when a date falls outside of the 0001-01-01 through 9999-12-31 range. To support applications that cannot tolerate such exceptions, the new methods itermonthdays3() and itermonthdays4() are added. The new methods return tuples and are not restricted by the range supported by datetime.date. Thanks @serhiy-storchaka for suggesting the itermonthdays4() method and for the review.
* bpo-31664: Add support for the Blowfish method in crypt. (#3854)Serhiy Storchaka2017-10-242-23/+76
|
* bpo-30639: Lazily compute repr for error (#2132)Thomas Kluyver2017-10-242-2/+11
|
* bpo-31174: Fix test_tools.test_unparse (#4102)Victor Stinner2017-10-241-2/+13
| | | | | test_unparse.DirectoryTestCase now stores the names sample to always test the same files. It prevents false alarms when hunting reference leaks.
* bpo-31827: Remove os.stat_float_times() (GH-4061)Victor Stinner2017-10-241-17/+0
|
* bpo-31847: Fix commented out tests in test_syntax. (#4084)Serhiy Storchaka2017-10-231-18/+10
| | | SyntaxError now is raised instead of SyntaxWarning.
* bpo-30817: Fix PyErr_PrintEx() when no memory (#2526)xdegaye2017-10-231-1/+18
|