Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
f76231f bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (#4384) 13 November 2017, 07:50:16 UTC
8acaa31 remove detect_math_libs (#4383) Darwin may not require libm, but it doesn't hurt to link it and simplifies configuration logic. 13 November 2017, 04:53:39 UTC
d7d4fea bpo-29181: Skip test_tarfile tests on PermissionError raised by Android (GH-4375) 12 November 2017, 17:02:06 UTC
6a55d09 bpo-29180: Skip test_os tests on PermissionError raised by Android (GH-4374) 12 November 2017, 16:57:04 UTC
92c2ca7 bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350) Access to mkfifo(), mknod() and hard link creation is controled by SELinux on Android. Also remove test.support.android_not_root. 12 November 2017, 16:31:07 UTC
e0582a3 bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160) 12 November 2017, 15:50:48 UTC
1588be6 bpo-28180: Fix the implementation of PEP 538 on Android (GH-4334) 12 November 2017, 11:45:59 UTC
9e78dc2 Move comments in configure.ac to more appropriate place. (#4371) 11 November 2017, 17:18:28 UTC
e197a85 The termios man page is in section 3 (GH-2450) 11 November 2017, 16:40:26 UTC
7c9da3e Remove redundant 'exc = True' line (GH-4357) It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee 11 November 2017, 14:55:05 UTC
bba2239 bpo-31572: Get rid of _PyObject_HasAttrId() in the ASDL parser. (#3725) Silence only expected AttributeError. 11 November 2017, 14:41:32 UTC
60c3d35 bpo-31572: Get rid of _PyObject_HasAttrId() in dict and OrderedDict. (#3728) Silence only AttributeError when get "key" and "items" attributes in the constructor and the update() method of dict and OrderedDict . 11 November 2017, 14:19:56 UTC
1707e40 bpo-31572: Silence only AttributeError when get the __copy__ attribute in itertools.tee(). (#3724) 11 November 2017, 13:51:42 UTC
d4f8480 bpo-31572: Don't silence unexpected errors in the _warnings module. (#3731) Get rid of _PyObject_HasAttrId() and PyDict_GetItemString(). Silence only expected AttributeError, KeyError and ImportError when get an attribute, look up in a dict or import a module. 11 November 2017, 13:19:47 UTC
e2f92de Add the const qualifier to "char *" variables that refer to literal strings. (#4370) 11 November 2017, 11:06:26 UTC
e184cfd bpo-31824: Document default value of 'errors' parameters (GH-4328) 10 November 2017, 23:05:12 UTC
9703f09 bpo-31976: Fix race condition when flushing a file is slow. (#4331) 10 November 2017, 21:03:40 UTC
4652bf2 Rewrite asyncio test to be more meaningful (#4363) 10 November 2017, 20:34:17 UTC
9f914a0 bpo-31985: Deprecate openfp in aifc, sunau, and wave (#4344) The openfp functions of aifp, sunau, and wave had pointed to the open function of each module since 1993 as a matter of backwards compatibility. In the case of aifc.openfp, it was both undocumented and untested. This change begins the formal deprecation of those openfp functions, with their removal coming in 3.9. This additionally adds a TODO in test_pyclbr around using aifc.openfp, though it shouldn't be changed until removal in 3.9. 10 November 2017, 16:38:25 UTC
5e0df74 bpo-31999: Fix test_venv in case the zlib module is not available. (#4359) 10 November 2017, 10:09:39 UTC
a1718bc bpo-31998: Fix test_zipapp in case the zlib module is not available. (#4358) 10 November 2017, 10:09:24 UTC
191e993 bpo-31222: Make (datetime|date|time).replace return subclass type in Pure Python (#4176) 09 November 2017, 21:34:29 UTC
72fa301 Fix phrasing in Doc/whatsnew/3.7.rst (GH-4318) 09 November 2017, 18:58:59 UTC
01ae58d Correct the location of a function mentioned in a comment (GH-4327) 09 November 2017, 16:55:34 UTC
d318715 bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. (#4235) * Fix compilation of the socket module on NetBSD 8. * Fix the assertion failure or reading arbitrary data when parse a AF_BLUETOOTH address on NetBSD and DragonFly BSD. * Fix other potential errors and make the code more reliable. 09 November 2017, 16:00:38 UTC
0a2ff23 Silence error output in test_concurrent_futures (bpo-21423) (#4347) * Silence error output in test_concurrent_futures (bpo-21423) 09 November 2017, 14:33:43 UTC
8c663fd Replace KB unit with KiB (#4293) kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB. 08 November 2017, 22:44:44 UTC
0e163d2 bpo-11063: Use more reliable way to check if uuid function exists (GH-4343) 08 November 2017, 21:43:14 UTC
9a10ff4 bpo-11063: Add a configure check for uuid_generate_time_safe (GH-4287) 08 November 2017, 20:09:16 UTC
bf9d317 bpo-31810: added missing keywords to docs. (#4140) async and await keywords has been merged into upstream, but they are all missing in the lexical analysis docs. This change adds them to the appropriate keywords section in documentation. 08 November 2017, 17:31:26 UTC
2138163 bpo-29179: Document the Py_UNUSED macro (#4341) Py_UNUSED has a public name, and is used in the wild outside CPython, but was not documented. Rectify that. The macro was added in bpo-19976 and referenced in bpo-26179. 08 November 2017, 15:59:20 UTC
0de9285 bpo-31934: Abort when building out of a not clean source tree (GH-4255) 08 November 2017, 15:03:58 UTC
b5d9e08 bpo-31884 subprocess: add Windows constants for process priority (#4150) 08 November 2017, 14:18:59 UTC
54cc0c0 bpo-31338: C API intro: add missing versionadded (#4339) 08 November 2017, 14:06:24 UTC
28ab3ce Fix broken link in Doc/whatsnew/3.7.rst (GH-4335) 08 November 2017, 13:36:58 UTC
8bf288e Docs: Mention that Py_UNREACHABLE was added in 3.7 (#4337) The macro was added for bpo-31338 in commit b2e5794870eb4728ddfaafc0f79a40299576434f 08 November 2017, 13:11:16 UTC
7973e27 bpo-21862: Add -m option to cProfile for profiling modules (#4297) * bpo-21862: Add -m option to cProfile for profiling modules 08 November 2017, 10:50:56 UTC
4fc4def Remove unused var from CheckCancelOperation test (GH-4317) It looks like this was copied from one of the previous tests, which did use it. 07 November 2017, 21:06:55 UTC
5a8a84b Added :const:`mmap.ACCESS_DEFAULT` constant. (#4093) 07 November 2017, 20:51:43 UTC
c62f0cb bpo-31620: have asyncio/queues not leak memory when you've exceptions during waiting (#3813) 07 November 2017, 17:35:23 UTC
c060c7e Fix a typo (#4323) 07 November 2017, 17:05:15 UTC
5a66c8a bpo-31793: Doc: Specialize smart-quotes for Japanese (GH-4006) 07 November 2017, 16:46:50 UTC
921e943 bpo-31970: Reduce performance overhead of asyncio debug mode. (#4314) * bpo-31970: Reduce performance overhead of asyncio debug mode. 07 November 2017, 16:23:29 UTC
1e5d54c bpo-31965: fix doc for multiprocessing.connection.Client and Listener (#4304) * fix doc for multiprocessing.connection.Client The authenticate argument does not exist on either Client or Listener: - https://github.com/python/cpython/blob/master/Lib/multiprocessing/connection.py#L483 (master) - https://github.com/python/cpython/blob/3.6/Lib/multiprocessing/connection.py#L478 (3.6) - https://github.com/python/cpython/blob/3.5/Lib/multiprocessing/connection.py#L478 (3.5) - https://github.com/python/cpython/blob/3.4/Lib/multiprocessing/connection.py#L487 (3.4) The documentation also claimed that these functions will call `current_process().auth_key`, for which I could find no evidence in the code. I rewrote the documentation to reflect the actual behavior. Also made some small changes to vary sentence structure. 07 November 2017, 16:13:02 UTC
22b1128 bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (#4319) 07 November 2017, 16:03:28 UTC
39a156c Fix the sizeof test for dicts with shared keys. (#4311) By accident the size of the empty dict keys object matched the size of values array. 07 November 2017, 13:08:09 UTC
a935654 bpo-20486: Implement Database.Close() method in msilib (GH-4141) 07 November 2017, 12:58:53 UTC
3cc4c53 bpo-31626: Mark ends of the reallocated block in debug build. (#4210) Few bytes at the begin and at the end of the reallocated blocks, as well as the header and the trailer, now are erased before calling realloc() in debug build. This will help to detect using or double freeing the reallocated block. 07 November 2017, 10:46:42 UTC
cb04f75 Fix a memory leak in _msi.c (#4127) 07 November 2017, 10:03:09 UTC
4135c89 bpo-31950: Improve event loop policy doc (#4306) 07 November 2017, 09:26:32 UTC
69cfed1 Add asyncio.Handle.cancelled() method (#2388) 07 November 2017, 09:06:05 UTC
088929c bpo-31415: Improve error handling and caching of the importtime option. (#4138) 07 November 2017, 06:55:38 UTC
31af650 bpo-28791: Update Windows builds to use SQLite 3.21.0. (GH-4246) 07 November 2017, 03:31:53 UTC
962e2a7 Fix a minor typo and hyphenate "multi-threading" (#4237) 07 November 2017, 02:18:40 UTC
a22a127 bpo-31843: sqlite3.connect() now accepts PathLike objects as database name (#4299) 07 November 2017, 00:47:43 UTC
edb13ae bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (#3958) 07 November 2017, 00:09:49 UTC
e56ab74 bpo-31770: Prevent a crash and refleaks when calling sqlite3.Cursor.__init__() more than once (#3968) 07 November 2017, 00:01:47 UTC
ad455cd bpo-31945: Configurable blocksize in HTTP(S)Connection (#4279) 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. 06 November 2017, 21:16:37 UTC
30f4fa4 bpo-31957: Fixes version detection. (#4298) 06 November 2017, 20:52:09 UTC
7e666ee Remove outdated with_threads checks in configure.ac (GH-4294) 06 November 2017, 16:06:05 UTC
a5293b4 Fix miscellaneous typos (#4275) 05 November 2017, 13:37:50 UTC
cf29653 bpo-28994: PyErr_NormalizeException() no longer use C stack for recursion. (#2035) MemoryError raised when normalizing a RecursionError raised during exception normalization now not always causes a fatal error. 05 November 2017, 09:27:48 UTC
1b46131 bpo-22257: Mention startup refactoring in What's New (GH-4286) While technically a purely internal change, bpo-31845 was a fairly significant externally visible bug caused by these changes (environment variable based configuration was being ignored due to a change in the relative order of reading the environment and reading command line settings, and the test suite was only testing the command line options) Hence this note to essentially say "If you see odd startup problems in 3.7 that you've never seen in previous releases, it's probably our fault, so let us know, and we'll fix it". 05 November 2017, 04:58:45 UTC
aed0856 bpo-31609: Fixes quotes in PCbuild/clean.bat (#4280) 04 November 2017, 23:29:03 UTC
0d2a908 bpo-31944: Fixes build and Modify button (#4278) 04 November 2017, 23:28:47 UTC
aafece7 bpo-31923: Fix spelling in sqlite3 docs (GH-4227) 04 November 2017, 23:00:51 UTC
12d6056 Add version{changed,added} markers and make minor style changes (GH-4273) 04 November 2017, 12:17:56 UTC
d4d79bc bpo-28564: Use os.scandir() in shutil.rmtree(). (#4085) This speeds up it to 20-40%. 04 November 2017, 12:16:35 UTC
82cd3ce bpo-31678: Fix typo in PyDateTime_DELTA_GET_MICROSECONDS (GH-3869) 04 November 2017, 10:39:45 UTC
63ff413 bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor (#4241) * bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor * Fix docstring 04 November 2017, 10:05:49 UTC
b838cc3 bpo-18699: Corrected documentation for window.chgat in curses module (#1430) 04 November 2017, 08:13:16 UTC
ee1a9a2 bpo-9678: Fix determining the MAC address in the uuid module. (#4264) * Using ifconfig on NetBSD and OpenBSD. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD. Based on patch by Takayuki Shimizukawa. 04 November 2017, 07:37:32 UTC
93952f8 Fix a grammatical problem and reword for clarity. (#4257) bpo-31936 03 November 2017, 20:45:46 UTC
dcfb0e3 bpo-31933: fix blake2 multi-byte params on big endian platforms (#4250) 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. 03 November 2017, 19:02:41 UTC
f6f90ff bpo-30057: Fix potential missed signal in signal.signal(). (#4258) Bug report and patch by Jeroen Demeyer. 03 November 2017, 18:58:46 UTC
a7723d8 bpo-31924: Fix test_curses on NetBSD 8. (#4228) 03 November 2017, 18:29:33 UTC
cbe1756 bpo-31310: multiprocessing's semaphore tracker should be launched again if 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 03 November 2017, 13:31:38 UTC
fc6b348 bpo-31308: If multiprocessing's forkserver dies, launch it again when 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. 03 November 2017, 12:34:22 UTC
4f57409 bpo-31926: fix missing *_METHODDEF statements by argument clinic (#4230) When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF #define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name. 03 November 2017, 09:09:00 UTC
700d2e4 bpo-31415: Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X importtime (#4240) Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X importtime 02 November 2017, 23:13:36 UTC
9e33973 bpo-31890: define METH_STACKLESS (#4159) Add METH_STACKLESS to prevent future collisions. 02 November 2017, 22:54:57 UTC
4e38d71 bpo-28643: Record profile-opt build progress with stamp files (#4223) * bpo-28643: Record profile-opt build progress with stamp files The profile-opt makefile target is expensive to build. Since the makefile does not contain complete dependency information for this target, much extra work can get done if the build is interrupted and re-started. Even running "make" a second time will result in a huge amount of redundant work. As a minimal fix (rather than removing recursive "make" and adding a proper dependency graph), split the profile-opt target into parts: - ensure tree is clean (profile-clean-stamp) - build with profile generation enabled (profile-gen-stamp) - run task to generate profile information (profile-run-stamp) - build optimized Python using above information (profile-opt) We use "stamp" files to record completion of the steps. Running "make clean" will not remove the profile-run-stamp file. Other minor changes: - remove the "build_all_use_profile" target. I don't expect callers of the makefile to use this target so that should be safe. - remove execution of "profile-removal" at end of "profile-opt". I don't see any reason to not to keep the profile information, given the cost to generate it. Removing the "profile-run-stamp" file will force re-generation of it. 02 November 2017, 17:46:02 UTC
0d2c645 Update multissltests: 1.0.2m, 1.1.0g (#4232) 02 November 2017, 16:38:11 UTC
ac03c03 Returning 1 from the set_progress_handler handler cancels query (GH-4120) 02 November 2017, 14:34:11 UTC
c29b585 bpo-31784: Implement PEP 564: add time.time_ns() (#3989) 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 02 November 2017, 14:28:27 UTC
e314853 bpo-31307: Make ConfigParser.read() accept bytes objects (GH-3420) 02 November 2017, 12:47:04 UTC
a64ce97 bpo-31917: Add 3 new clock identifiers (#4207) Add new clock identfiers: * time.CLOCK_BOOTTIME * time.CLOCK_PROF * time.CLOCK_UPTIME 02 November 2017, 11:19:19 UTC
e8b1965 bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793) 02 November 2017, 10:32:54 UTC
4f469c0 bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). (#4220) 01 November 2017, 18:48:49 UTC
7e68790 bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and earlier. (#3826) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7. 01 November 2017, 14:03:40 UTC
d1e3403 [asyncio] bpo-30423: add regression test for orphan future causes "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." 01 November 2017, 13:54:45 UTC
894ebd0 bpo-31919: Fix building the curses module on OpenIndiana. (#4211) 01 November 2017, 12:34:20 UTC
388cd85 Remove nested comments in blake2 (#4173) Replace occurence of nested comments in blake2 reference implementation with preprocessor directive for disabling unused code. `blake2s-load-xop.h` is conditionally pulled in only on chips with XOP support, among others the AMD Bulldozer. The malformed comments in the source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0. Official reference code on github uses `#if` so this change should be uncontroversial. 01 November 2017, 12:23:09 UTC
8bc7d63 bpo-25720: Fix the method for checking pad state of curses WINDOW (#4164) Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). 01 November 2017, 12:05:26 UTC
280c22a Fix test_socket.test_create_connection() (#4206) bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI. 01 November 2017, 02:48:14 UTC
9ed83c4 bpo-18835: Cleanup pymalloc (#4200) Cleanup pymalloc: * Rename _PyObject_Alloc() to pymalloc_alloc() * Rename _PyObject_FreeImpl() to pymalloc_free() * Rename _PyObject_Realloc() to pymalloc_realloc() * pymalloc_alloc() and pymalloc_realloc() don't fallback on the raw allocator anymore, it now must be done by the caller * Add "success" and "failed" labels to pymalloc_alloc() and pymalloc_free() * pymalloc_alloc() and pymalloc_free() don't update num_allocated_blocks anymore: it should be done in the caller * _PyObject_Calloc() is now responsible to fill the memory block allocated by pymalloc with zeros * Simplify pymalloc_alloc() prototype * _PyObject_Realloc() now calls _PyObject_Malloc() rather than calling directly pymalloc_alloc() _PyMem_DebugRawAlloc() and _PyMem_DebugRawRealloc(): * document the layout of a memory block * don't increase the serial number if the allocation failed * check for integer overflow before computing the total size * add a 'data' variable to make the code easiler to follow test_setallocators() of _testcapimodule.c now test also the context. 31 October 2017, 19:18:10 UTC
ec2cbdd bpo-20064: Document PyObject_Malloc() (#4199) Document the following functions: * PyObject_Malloc() * PyObject_Calloc() * PyObject_Realloc() * PyObject_Free() Fix also PyMem_RawFree() documentation. 31 October 2017, 16:37:25 UTC
2298fad bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (#4196) * Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. 31 October 2017, 16:18:21 UTC
afd055a pythoninfo: add Py_DEBUG (#4198) 31 October 2017, 15:41:10 UTC
e1a470b test_capi.test__testcapi() becomes more verbose (#4197) Write the name of each subtest on a new line to help debugging when a test does crash Python. 31 October 2017, 15:40:59 UTC
back to top