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

sort by:
Revision Author Date Message Commit Date
86f093f bpo-36060: Document how collections.ChainMap() determines iteration order (GH-11969) 21 February 2019, 17:12:15 UTC
7463884 Document other performance implication for __slots__ (GH-11974) 21 February 2019, 11:34:04 UTC
3ad9167 bpo-36052: Raise a SyntaxError when assigning a value to __debug__ with := (GH-11958) Trying to assign a value to __debug__ using the assignment operator is supposed to fail, but a missing check for forbidden names when setting the context in the ast was preventing this behaviour. 21 February 2019, 10:11:53 UTC
ea6207d bpo-36063: Minor performance tweak in long_divmod(). (GH-11915) 21 February 2019, 10:01:11 UTC
49fd6dd bpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ordered (GH-11966) 21 February 2019, 08:05:30 UTC
11fa0e4 Doc: fix example for iter() function. (GH-11959) read() returns bytes for a file opened in binary mode, so b'' should be used as a sentinel instead of ''. Otherwise the loop will be infinite. 21 February 2019, 07:53:06 UTC
ebc793d bpo-33989: Ensure that ms.key_compare is always initialized in list_sort_impl(). (GH-8710) 21 February 2019, 07:47:14 UTC
ef1b88b bpo-36062: Minor speed-up for list slicing and copying. (GH-11967) 21 February 2019, 06:51:52 UTC
d9bc543 Re-init _Py_UnhandledKeyboardInterrupt before run. (GH-11963) Explicitly reinitialize this every eval *just in case* someone is calling into an embedded Python where they don't care about an uncaught KeyboardInterrupt exception (why didn't they leave `config.install_signal_handlers` set to `0`?!?) but then later call `Py_Main()` itself (which *checks* this flag and dies with a signal after its interpreter exits). We don't want a previous embedded interpreter's uncaught exception to trigger an unexplained signal exit from a future `Py_Main()` based one. 21 February 2019, 01:35:54 UTC
9b0c681 bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) https://bugs.python.org/issue31982 20 February 2019, 21:49:23 UTC
d8b9e1f bpo-36012: Avoid linear slot search for non-dunder methods (GH-11907) 20 February 2019, 17:29:24 UTC
b5409da bpo-35993: Fix _PyInterpreterState_DeleteExceptMain() (GH-11852) Fix a crash on fork when using subinterpreters. 20 February 2019, 14:27:22 UTC
001fee1 bpo-12822: use monotonic clock for condvar if possible (GH-11723) 20 February 2019, 01:00:09 UTC
46a9792 bpo-36049: Fix compiler warning in Python/ast.c (GH-11949) 19 February 2019, 22:51:53 UTC
3bacf61 bpo-35584: Clarify role of caret in a class class (GH-11946) https://bugs.python.org/issue35584 19 February 2019, 19:32:18 UTC
3ef6344 bpo-36037: Fix test_ssl for strict OpenSSL policy (GH-11940) Fix test_ssl for strict OpenSSL configuration like RHEL8 strict crypto policy. Use older TLS version for minimum TLS version of the server SSL context if needed, to test TLS version older than default minimum TLS version. 19 February 2019, 17:06:03 UTC
beda52e bpo-35153: Add headers parameter to xmlrpc.client.ServerProxy (GH-10308) Allow to add HTTP headers to XML-RPC requests sent to the server. 19 February 2019, 16:18:50 UTC
513e9b4 Doc: Fix typo. (GH-11315) From: https://mail.python.org/pipermail/docs/2018-December/038583.html 19 February 2019, 14:46:07 UTC
5105483 bpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641) `object.__new__` and `object.__init__` do take one argument each, they just don't take extra user supplied arguments. Patch by Sanyam Khurana. 19 February 2019, 13:23:48 UTC
f522a57 Fix a misnamed test for lists. (GH-11933) 19 February 2019, 11:53:07 UTC
8d01eb4 Fix syntax warnings in tests introduced in bpo-35942. (GH-11934) 19 February 2019, 11:52:35 UTC
8e79e6e Fix syntax warnings in tests introduced in bpo-15248. (GH-11932) 19 February 2019, 11:49:09 UTC
e7a4bb5 bpo-35798: Add test.support.check_syntax_warning(). (#11895) It checks that a SyntaxWarning is raised when compile specified statement, that it is raised only once, that it is converted to a SyntaxError when raised as exception, and that both warning and exception objects have corresponding attributes. 19 February 2019, 06:30:15 UTC
ee0f927 bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472) 19 February 2019, 05:11:18 UTC
4371c0a bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules. 18 February 2019, 15:30:51 UTC
4a7f44a bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546) Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases. Also add a missing index in re.rst. 18 February 2019, 13:26:37 UTC
02c04f2 bpo-35704: Include correct NEWS entry (GH-11914) The wrong NEWS snippet was inadvertently included in GH-11500, this switches to the correct one. https://bugs.python.org/issue35704 18 February 2019, 11:23:36 UTC
ef110b1 bpo-35704: Prevent test_shutil fail result when AIX is 32-bit and MAXDATA < 0x20000000 (GH-11500) https://bugs.python.org/issue35704 18 February 2019, 11:02:44 UTC
09fbcd6 bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831) The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error. 18 February 2019, 10:46:34 UTC
ac28147 bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857) Not using `__class_getitem__()` fallback if there is a non-subcriptable metaclass was caused by a certain asymmetry between how `PySequenceMethods` and `PyMappingMethods` are used in `PyObject_GetItem`. This PR removes this asymmetry. No tests failed, so I assume it was not intentional. 17 February 2019, 23:13:46 UTC
1bf8845 bpo-34720: Fix test_importlib.test_bad_traverse for AIX (GH-9391) Fix Modules/_testmultiphase.c so that it exits with non-zero status on AIX just as other systems do (non zero exit status, e.g. as result of a segmentation fault) when a NULL pointer is accessed for data. https://bugs.python.org/issue34720 17 February 2019, 12:02:56 UTC
414c625 bpo-36013: delete fragile interactive shell SIGINT test (GH-11902) It makes the existing smaller test more readable and robust at the same time. The execution of a shell in interactive mode from CI and buildbot test automation wasn't working out. What would work locally in our terminals would only work within a fraction of automation systems. The integration test was a nice to have. painful. deleting. :) 17 February 2019, 01:22:39 UTC
5382203 Convert range to repeat for choices() (#11889) 16 February 2019, 21:30:51 UTC
38f11cc bpo-1054041: Exit properly after an uncaught ^C. (#11862) * bpo-1054041: Exit properly by a signal after a ^C. An uncaught KeyboardInterrupt exception means the user pressed ^C and our code did not handle it. Programs that install SIGINT handlers are supposed to reraise the SIGINT signal to the SIG_DFL handler in order to exit in a manner that their calling process can detect that they died due to a Ctrl-C. https://www.cons.org/cracauer/sigint.html After this change on POSIX systems while true; do python -c 'import time; time.sleep(23)'; done can be stopped via a simple Ctrl-C instead of the shell infinitely restarting a new python process. What to do on Windows, or if anything needs to be done there has not yet been determined. That belongs in its own PR. TODO(gpshead): A unittest for this behavior is still needed. * Do the unhandled ^C check after pymain_free. * Return STATUS_CONTROL_C_EXIT on Windows. * Fix ifdef around unistd.h include. * 📜🤖 Added by blurb_it. * Add STATUS_CTRL_C_EXIT to the os module on Windows * Add unittests. * Don't send CTRL_C_EVENT in the Windows test. It was causing CI systems to bail out of the entire test suite. See https://dev.azure.com/Python/cpython/_build/results?buildId=37980 for example. * Correct posix test (fail on macOS?) check. * STATUS_CONTROL_C_EXIT must be unsigned. * Improve the error message. * test typo :) * Skip if the bash version is too old. ...and rename the windows test to reflect what it does. * min bash version is 4.4, detect no bash. * restore a blank line i didn't mean to delete. * PyErr_Occurred() before the Py_DECREF(co); * Don't add os.STATUS_CONTROL_C_EXIT as a constant. * Update the Windows test comment. * Refactor common logic into a run_eval_code_obj fn. 16 February 2019, 20:57:40 UTC
43766f8 bpo-35884: Add missing FIFO queue benchmark (GH-11898) https://bugs.python.org/issue35884 16 February 2019, 20:51:02 UTC
e182318 bpo-33234: Add another attribution in Whatsnew (GH-11899) https://bugs.python.org/issue33234 16 February 2019, 20:47:48 UTC
63fa1cf bpo-32492: Add missing whatsnew entries for itemgetter and namedtuple (GH-11897) https://bugs.python.org/issue32492 16 February 2019, 20:02:22 UTC
3ff5962 bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896) https://bugs.python.org/issue33089 16 February 2019, 19:00:42 UTC
4583525 bpo-35798: Fix duplicate SyntaxWarning: "is" with a literal. (GH-11639) 16 February 2019, 06:29:46 UTC
62e4481 bpo-15248: Emit a compiler warning when missed a comma before tuple or list. (GH-11757) 16 February 2019, 06:12:19 UTC
a16ab00 bpo-36007: Bump minimum sphinx version to 1.8 (GH-11887) https://bugs.python.org/issue36007 15 February 2019, 23:41:15 UTC
3643322 bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845) https://bugs.python.org/issue35984 15 February 2019, 22:28:58 UTC
4327705 bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782) Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt. This patch fixes this by pre-compiling the code before passing it to `Pdb.run`. https://bugs.python.org/issue35931 15 February 2019, 20:52:53 UTC
9abb725 Improve readability of random module examples (GH-11884) Based on reviewer feedback from Allen Downey, convert ``lambda`` to ``def``. 15 February 2019, 20:40:18 UTC
903567e Fix the versionadded info for typing.NoReturn (GH-11880) The earliest version that `typing.NoReturn` appears in is [3.5.4rc1](https://docs.python.org/3/whatsnew/changelog.html#python-3-5-4-release-candidate-1) 15 February 2019, 19:20:28 UTC
522630a bpo-36006: Fix versionchanged directive alignment in io module documentation (GH-11881) https://bugs.python.org/issue36006 15 February 2019, 19:02:38 UTC
355f16f bpo-35746: Credit Colin Read and Nicolas Edet (GH-11863) Add credit for the cert parser vulnerability. Mention also Cisco TALOS-2018-0758 identifier. 15 February 2019, 11:25:47 UTC
3e028b2 bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported (GH-11853) https://bugs.python.org/issue35994 15 February 2019, 05:04:47 UTC
5723263 bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH-10264) Documentation of sys.stdin/out/err update to reflect change in 3.6 on Windows to use UTF-8. Wording by Eryk Sun and Paul Moore. https://bugs.python.org/issue30410 14 February 2019, 23:35:25 UTC
1093d42 Doc: Fix example in contextlib asynccontextmanager document (GH-8111) 14 February 2019, 19:52:30 UTC
b94d4be bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424) [bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)). Not only a blocking IO error needs to be ignored - permission errors also need to be ignored. p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb. https://bugs.python.org/issue35633 14 February 2019, 18:22:35 UTC
8a1657b bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825) This change adds the necessary items to the build projects to avoid erroring out right at the start. It does not add _support_ for targeting Windows on ARM32, but is a necessary prerequisite for adding it. 14 February 2019, 16:31:30 UTC
bb3c05d closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849) 14 February 2019, 07:43:17 UTC
d73ac0e Fix typo: equivalent code of `async with cond` (GH-11681) 14 February 2019, 02:39:25 UTC
2bdd585 bpo-35500: align expected and actual calls on mock.assert_called_with error message. (GH-11804) 14 February 2019, 02:22:29 UTC
1dc5cb9 bpo-35887: Add make regen-importlib step to importlib._bootstrap docstring (GH-11777) 13 February 2019, 23:21:17 UTC
dcb68f4 bpo-35961: Fix a crash in slice_richcompare() (GH-11830) Fix a crash in slice_richcompare(): use strong references rather than stolen references for the two temporary internal tuples. The crash (or assertion error) occurred if a garbage collection occurred during slice_richcompare(), especially while calling PyObject_RichCompare(t1, t2, op). 13 February 2019, 11:31:56 UTC
5680f65 bpo-18283: Add support for bytes to shutil.which (GH-11818) 13 February 2019, 11:25:10 UTC
cfd31f0 Be consistent about the use of from-imports in random module (GH-11837) Minor code clean-up. 13 February 2019, 10:04:17 UTC
73d6002 Remove stray quote in os.replace docstring. (GH-11556) 13 February 2019, 04:15:54 UTC
b9d2e97 Fix potential memory leak in parsetok.c (GH-11832) 13 February 2019, 00:45:53 UTC
3dc67d0 bpo-35505: Skip test_imap4_host_default_value if localhost listens on IMAP port (GH-11823) Make test_imap4_host_default_value independent on whether the local IMAP server is running. 12 February 2019, 18:30:19 UTC
16f842d bpo-35972: _xxsubinterpreters: Fix potential integer truncation on 32-bit in channel_send() (gh-11822) 12 February 2019, 16:06:43 UTC
b01786c bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815) 12 February 2019, 11:50:49 UTC
a31f4cc bpo-35918: Remove broken has_key method and add test (#11819) 12 February 2019, 00:37:24 UTC
522346d Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821) 11 February 2019, 19:34:50 UTC
3766f18 bpo-35378: Fix multiprocessing.Pool references (GH-11627) Changes in this commit: 1. Use a _strong_ reference between the Pool and associated iterators 2. Rework PR #8450 to eliminate a cycle in the Pool. There is no test in this commit because any test that automatically tests this behaviour needs to eliminate the pool before joining the pool to check that the pool object is garbaged collected/does not hang. But doing this will potentially leak threads and processes (see https://bugs.python.org/issue35413). 11 February 2019, 17:29:00 UTC
4b250fc bpo-35766 follow-up: Add an error check to new_type_comment() (#11766) If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash. Found by @msullivan for https://github.com/python/typed_ast/pull/93. 11 February 2019, 16:10:42 UTC
537b6ca bpo-22062: Updated docstring and documentation for pathlib (GH-8519) Original patch by Mike Short https://bugs.python.org/issue22062 11 February 2019, 10:47:09 UTC
9db56fb Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810) 10 February 2019, 21:27:12 UTC
164686f Fix compiler warning about non initialised variable (GH-11806) 10 February 2019, 20:37:07 UTC
4207907 Fix division by 0 when checking for overflow in math.prod (GH-11808) 10 February 2019, 19:56:58 UTC
181835d Fix compiler warnings about end_col_offset and end_lineno (GH-11735) 10 February 2019, 15:39:49 UTC
5033e31 Fix broken :ref: in asyncio docs (GH-11805) 10 February 2019, 00:21:37 UTC
7b2a37b Make sure the BaseManager in test_multiprocessing is cleaned up correctly (GH-11653) 09 February 2019, 17:35:05 UTC
613f729 Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801) Keeping references to processes and managers between tests makes them count as dangling processes. 09 February 2019, 17:08:49 UTC
8a03ff2 bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799) Add a code example block. 09 February 2019, 03:51:51 UTC
2dda72a lru_cache: Add more comments. Fix comment typos. Clarify a comment. (GH-11795) 09 February 2019, 02:55:02 UTC
7ab3d15 Rework tuple hash tests. (GH-10161) Add tooling that will useful in future updates, paying particular attention to difficult cases where only the upper bits on the input vary. 08 February 2019, 21:09:26 UTC
5741c45 bpo-35903: Use autoconfig to probe for shm_open() and shm_unlink(). (#11765) Use autoconfig to probe for shm_open() and shm_unlink(). Set SHM_NEEDS_LIBRT if we must link with librt to get the shm_* functions. Change setup.py to use the autoconfig defines. These changes should make it more likely that _multiprocessing/posixshmem.c gets built correctly on different platforms. 08 February 2019, 18:48:46 UTC
64360ad Complete and neaten-up namedtuple's replacement of builtin function lookups with derefs (GH-11794) 08 February 2019, 18:37:39 UTC
d9503c3 Add What's New entry for date subclass behavior (#11790) This was a backwards incompatible change and should be clearly noted. Related bugs: bpo-32417: https://bugs.python.org/issue32417 bpo-35364: https://bugs.python.org/issue35364 08 February 2019, 16:02:00 UTC
96d37db bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384) Protect dict iterations by wrapping them with _IterationGuard in the following methods: - WeakValueDictionary.copy() - WeakValueDictionary.__deepcopy__() - WeakKeyDictionary.copy() - WeakKeyDictionary.__deepcopy__() 07 February 2019, 19:51:59 UTC
df8d2cd bpo-35911: add cell constructor (GH-11771) Add a cell constructor, expose the cell type in the types module. 07 February 2019, 19:36:48 UTC
f289084 bpo-24209: In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter. (#11767) In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter. As a result, now IPv6 is used as the default (including IPv4 on dual-stack systems). Enhanced tests. 07 February 2019, 13:22:45 UTC
2848d9d bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772) multiprocessing: provide unittests for manager classes and shareable types 07 February 2019, 11:03:11 UTC
bc09851 bpo-35606: Implement math.prod (GH-11359) 07 February 2019, 07:04:02 UTC
e9bc417 Fix url to core-mentorship mailing list (GH-11775) 06 February 2019, 20:45:03 UTC
cd90f6a bpo-20001: update pathlib landing image (GH-11304) 05 February 2019, 10:16:13 UTC
c95404f email: use dict instead of OrderedDict (GH-11709) 05 February 2019, 08:05:43 UTC
f345170 asyncio: use dict instead of OrderedDict (GH-11710) 05 February 2019, 08:04:40 UTC
9da3583 Fix typo (micro->nano) (GH-11759) 05 February 2019, 07:32:55 UTC
85e102a bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744) 05 February 2019, 01:15:13 UTC
69091cb bpo-35321: Set the spec origin to frozen in frozen modules (#11732) * bpo-35321: Set the spec origin to frozen in frozen modules This fix correctly sets the spec origin to "frozen" for the _frozen_importlib module. Note that the origin was already correctly set in _frozen_importlib_external. * 📜🤖 Added by blurb_it. 05 February 2019, 00:56:26 UTC
89427cd bpo-32417: Make timedelta arithmetic respect subclasses (#10902) * Make timedelta return subclass types Previously timedelta would always return the `date` and `datetime` types, regardless of what it is added to. This makes it return an object of the type it was added to. * Add tests for timedelta arithmetic on subclasses * Make pure python timedelta return subclass types * Add test for fromtimestamp with tz argument * Add tests for subclass behavior in now * Add news entry. Fixes: bpo-32417 bpo-35364 * More descriptive variable names in tests Addresses Victor's comments 04 February 2019, 19:42:04 UTC
ca7d293 Post 3.8.0a1 04 February 2019, 08:39:24 UTC
e7afe1a Merge tag 'v3.8.0a1' Python 3.8.0a1 04 February 2019, 08:30:59 UTC
a8474d0 bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745) After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use. Make the same changes for macOS to avoid extra platform checks. 04 February 2019, 07:19:38 UTC
2f6fae6 bpo-35692: pathlib no longer raises when checking file and directory existence on drives that are not ready (GH-11746) 04 February 2019, 07:08:18 UTC
e75eeb0 v3.8.0a1 03 February 2019, 13:17:38 UTC
back to top