https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
23f4589 v3.8.0a2 25 February 2019, 12:08:32 UTC
16323cb closes bpo-36083: Fix formatting of the manpage Synopsis. (GH-12017) More specifically, the options of --check-hash-based-pycs. 25 February 2019, 00:50:29 UTC
3b0abb0 bpo-33671: allow setting shutil.copyfile() bufsize globally (GH-12016) 24 February 2019, 23:46:40 UTC
ef4ac96 bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) This involves moving the global "pending calls" state to PyInterpreterState. https://bugs.python.org/issue33608 24 February 2019, 23:40:47 UTC
463572c bpo-36101: remove non-ascii characters in docstring (GH-12018) * remove non-ascii characters in docstring * clinic.py emits a warning when docstring has non-ascii character 24 February 2019, 23:18:48 UTC
9e456bc bpo-36018: Add properties for mean and stdev (GH-12022) Responding to suggestions on the tracker and some off-line suggestions. Davin suggested that english named accessors instead of greek letters would result in more intelligible user code. Steven suggested that the parameters still need to be *mu* and *theta* which are used elsewhere (and I noted those parameter names are used in linked-to resources). Michael suggested proving-out the API by seeing whether it generalized to *Lognormal*. I did so and found that Lognormal distribution parameters *mu* and *sigma* do not represent the mean and standard deviation of the lognormal distribution (instead, they are for the underlying regular normal distribution). Putting these ideas together, we have NormalDist parameterized by *mu* and *sigma* but offering English named properties for accessors. That gives lets us match other API that access mu and sigma, it matches the external resources on the topic, gives us clear english names in user code. The API extends nicely to LogNormal where the parameters and the summary statistic accessors are not the same. https://bugs.python.org/issue36018 24 February 2019, 19:44:55 UTC
a875ea5 bpo-35512: Resolve string target to patch.dict decorator during function call GH#12000 * Resolve string target to patch.dict during function call * Add NEWS entry * Remove unneeded call * Restore original value for support.target and refactor assertions * Add extra assertion to verify unpatched dict 24 February 2019, 18:54:49 UTC
aeca373 bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12011) 24 February 2019, 07:28:24 UTC
79fbcc5 bpo-36018: Make __pos__ return a distinct instance of NormDist (GH-12009) https://bugs.python.org/issue36018 24 February 2019, 06:19:01 UTC
e895de3 bpo-35813: Tests and docs for shared_memory (#11816) * Added tests for shared_memory submodule. * Added tests for ShareableList. * Fix bug in allocationn size during creation of empty ShareableList illuminated by existing test run on Linux. * Initial set of docs for shared_memory module. * Added docs for ShareableList, added doctree entry for shared_memory submodule, name refactoring for greater clarity. * Added examples to SharedMemoryManager docs, for ease of documentation switched away from exclusively registered functions to some explicit methods on SharedMemoryManager. * Wording tweaks to docs. * Fix test failures on Windows. * Added tests around SharedMemoryManager. * Documentation tweaks. * Fix inappropriate test on Windows. * Further documentation tweaks. * Fix bare exception. * Removed __copyright__. * Fixed typo in doc, removed comment. * Updated SharedMemoryManager preliminary tests to reflect change of not supporting all registered functions on SyncManager. * Added Sphinx doctest run controls. * CloseHandle should be in a finally block in case MapViewOfFile fails. * Missed opportunity to use with statement. * Switch to self.addCleanup to spare long try/finally blocks and save one indentation, change to use decorator to skip test instead. * Simplify the posixshmem extension module. Provide shm_open() and shm_unlink() functions. Move other functionality into the shared_memory.py module. * Added to doc around size parameter of SharedMemory. * Changed PosixSharedMemory.size to use os.fstat. * Change SharedMemory.buf to a read-only property as well as NamedSharedMemory.size. * Marked as provisional per PEP411 in docstring. * Changed SharedMemoryTracker to be private. * Removed registered Proxy Objects from SharedMemoryManager. * Removed shareable_wrap(). * Removed shareable_wrap() and dangling references to it. * For consistency added __reduce__ to key classes. * Fix for potential race condition on Windows for O_CREX. * Remove unused imports. * Update access to kernel32 on Windows per feedback from eryksun. * Moved kernel32 calls to _winapi. * Removed ShareableList.copy as redundant. * Changes to _winapi use from eryksun feedback. * Adopt simpler SharedMemory API, collapsing PosixSharedMemory and WindowsNamedSharedMemory into one. * Fix missing docstring on class, add test for ignoring size when attaching. * Moved SharedMemoryManager to managers module, tweak to fragile test. * Tweak to exception in OpenFileMapping suggested by eryksun. * Mark a few dangling bits as private as suggested by Giampaolo. 24 February 2019, 04:08:16 UTC
d610116 bpo-24310: Document IDLE settings dialog font tab sample (GH-12007) 24 February 2019, 04:04:53 UTC
abe5922 fix _abc.c compile error on Cygwin (GH-8445) 24 February 2019, 01:30:14 UTC
11c7953 bpo-36018: Add the NormalDist class to the statistics module (GH-11973) 23 February 2019, 22:44:07 UTC
64d6cc8 bpo-35724: Explicitly require the main interpreter for signal-handling. (GH-11530) Ensure that the main interpreter is active (in the main thread) for signal-handling operations. This is increasingly relevant as people use subinterpreters more. https://bugs.python.org/issue35724 23 February 2019, 22:40:43 UTC
06babb2 bpo-1054041: Add What's New docs. (GH-11999) Add What's New docs about the Ctrl-C improvement. Correct the issue number in the NEWS entry. 23 February 2019, 18:43:49 UTC
be3b295 bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731) Move PyInterpreterState into the "internal" header files. 23 February 2019, 18:35:52 UTC
175421b bpo-36016: Add generation option to gc.getobjects() (GH-11909) 23 February 2019, 03:02:06 UTC
df5cdc1 bpo-36074: Result of `asyncio.Server.sockets` after `Server.close()` after is not clear (GH-11987) [bpo-36074](https://bugs.python.org/issue36074): It becomes clear on that the None is still return for server closed. https://bugs.python.org/issue36074 22 February 2019, 17:34:41 UTC
a40681d bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941) 22 February 2019, 13:45:36 UTC
3208880 Include the --prompt flag in venv's help output (GH-10711) Document usage of the existing `--prompt` option in the command line help. 22 February 2019, 11:05:20 UTC
6e240dd Doc: Missing backquotes. (GH-11982) 22 February 2019, 08:22:27 UTC
e5458bd bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903) 22 February 2019, 00:33:57 UTC
47d9987 bpo-35904: Add statistics.fmean() (GH-11892) 21 February 2019, 23:06:29 UTC
f36f892 bpo-36068: Make _tuplegetter objects serializable (GH-11981) 21 February 2019, 21:00:40 UTC
407c734 bpo-36057 Update docs and tests for ordering in collections.Counter [no behavior change] (#11962) * Add tests for Counter order. No behavior change. * Update docs and tests * Fix doctest output and capitalization 21 February 2019, 17:19:00 UTC
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
back to top