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

sort by:
Revision Author Date Message Commit Date
8135455 bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645) Also includes other minor test skipping doc improvements. https://bugs.python.org/issue37094 (cherry picked from commit ffed76b6fc4d7dd0244b662d6e5738eb496d9def) Co-authored-by: Makdon <makdon@makdon.me> 31 May 2019, 16:31:53 UTC
ee114d7 IDLE - Capitalize search dialogs' 'Close' button label. (GH-13691) It seems to be the only widget label not capitalized. (cherry picked from commit ba0430211f5101c9d748d72b03926ca79c5252a8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 31 May 2019, 08:44:29 UTC
e8661c1 bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761) (cherry picked from commit 2f5b9dcc0a89cbde1499c76df81c36bfd5ef9aa8) Co-authored-by: Antti Haapala <antti@haapala.name> 30 May 2019, 20:41:06 UTC
f1487b3 bpo-24564: shutil.copystat(): ignore EINVAL on os.setxattr() (GH-13369) (cherry picked from commit a16387ab2d85f19665920bb6ff91a7e57f59dd2a) Co-authored-by: Ying Wang <me@yingw787.com> 30 May 2019, 05:58:30 UTC
3a98bbf [3.7] bpo-36983: Fix typing.__all__ and add test for exported names (GH-13456) (GH-13662) https://bugs.python.org/issue36983 Fixes issue 36983 30 May 2019, 04:05:33 UTC
4e1e887 bpo-36794: Document that Lock.acquire is fair. (GH-13082) https://bugs.python.org/issue36794 (cherry picked from commit 34f4f5efea730504216ee19f237734e0bb0104ee) Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com> 29 May 2019, 18:24:32 UTC
cee95fe bpo-36739: Update controlflow.rst (GH-12983) in addition to global-statement also mention nonlocal-statement (in the paragraph describing access to variables which are non local to a function (cherry picked from commit e1f95e77e0647aff602e0660ba3c282b71045875) Co-authored-by: pbhd <p-bauer-schriesheim@t-online.de> 29 May 2019, 03:48:12 UTC
3708316 [3.7] Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) (GH-13495) If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(), PyObject_Free() would be called on a static string in type_dealloc(). (cherry picked from commit 0613c1e481440aa8f54ba7f6056924c175fbcc13) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 29 May 2019, 03:35:33 UTC
8ea0fd8 bpo-26903: Limit ProcessPoolExecutor to 61 workers on Windows (GH-13132) (GH-13643) Co-Authored-By: brianquinlan <brian@sweetapp.com> (cherry picked from commit 39889864c09741909da4ec489459d0197ea8f1fc) Co-authored-by: Brian Quinlan <brian@sweetapp.com> 29 May 2019, 03:12:30 UTC
0eb6999 bpo-22102: Fixes zip files with disks set to 0 (GH-5985) (cherry picked from commit ab0716ed1ea2957396054730afbb80c1825f9786) Co-authored-by: Francisco Facioni <fran6co@gmail.com> 28 May 2019, 23:33:21 UTC
218abd1 Docs: FIX broken links. (GH-13491) (cherry picked from commit 7114c6504a60365b8b0cd718da0ec8a737599fb9) Co-authored-by: Julien Palard <julien@palard.fr> 28 May 2019, 23:09:14 UTC
d6a14a1 [3.7] Fix typo in docs for socket.CAN_RAW_FD_FRAMES (GH-13635) (GH-13637) There is an extra "one" in the text description for the constant socket.CAN_RAW_FD_FRAMES (cherry picked from commit 1b05aa219041eb1c9dbcb4ec6c1fa5b20f060bf5) 28 May 2019, 19:32:12 UTC
95b7706 Doc: Add missing forward reference in the tutorial. (GH-13499) (cherry picked from commit 51ddab8dae056867f3595ab3400bffc93f67c8d4) Co-authored-by: Julien Palard <julien@palard.fr> 28 May 2019, 13:20:58 UTC
e7ddf58 bpo-26423: Fix possible overflow in wrap_lenfunc() (GH-13606) Fix possible overflow in wrap_lenfunc() when sizeof(long) < sizeof(Py_ssize_t) (e.g., 64-bit Windows). (cherry picked from commit 05f16416d99dc9fc76fef11e56f16593e7a5955e) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 28 May 2019, 13:17:43 UTC
1cfb90b Doc: Space breaking whole definition. (GH-13615) (cherry picked from commit 0811f2d81a12a3415dc2cb2744b41520c48d4db5) Co-authored-by: Julien Palard <julien@palard.fr> 28 May 2019, 12:28:34 UTC
a6733fd Remove outdated time.monotonic reference (GH-13264) Per ae58649, time.monotonic is always available, making the old note outdated. (cherry picked from commit 293e9f86b8d10fcd88d6a2015babae76e9a8bd8f) Co-authored-by: Brad <brad.solomon.1124@gmail.com> 28 May 2019, 10:56:05 UTC
d57bb1c Fix broken :ref: in asyncio docs (GH-11805) (cherry picked from commit 5033e315d28d54a41bcd987d04e6e6453d5b275f) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 28 May 2019, 04:22:25 UTC
1062cf7 bpo-36856: Handle possible overflow in faulthandler_stack_overflow (GH-13205) (cherry picked from commit 6236c9823ef3e8e2229b0598d3d8189adf5e00f2) Co-authored-by: Xi Ruoyao <xry111@mengyan1223.wang> 28 May 2019, 00:14:21 UTC
0f352d4 bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601) Fix destructor _pyio.BytesIO and _pyio.TextIOWrapper: initialize their _buffer attribute as soon as possible (in the class body), because it's used by __del__() which calls close(). (cherry picked from commit a3568417c49f36860393075b21c93996a5f6799b) Co-authored-by: Victor Stinner <vstinner@redhat.com> 28 May 2019, 00:05:49 UTC
abdda3a bpo-37039: IDLE - zoomheight fixes (GH-13576) Move doc entry to match menu and refactor zoom function. A followup patch will include a blurb. (cherry picked from commit df9b032f47e4edaf306d95449370e565ee470018) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 27 May 2019, 23:48:04 UTC
e8318f3 bpo-37051: Refine note on what objects are hashable (GH-13587) (GH-13595) (cherry picked from commit cc1c582f6fe450ce1c7de849137039e9b5fab8eb) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 27 May 2019, 17:43:18 UTC
a79b6c5 [3.7] bpo-37035: Don't log OSError (GH-13548) (#13594) https://bugs.python.org/issue37035. (cherry picked from commit 1f39c28e489cca0397fc4c3675d13569318122ac) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 27 May 2019, 15:52:05 UTC
bfd0b77 [3.7] bpo-28866: No type cache for types with specialized mro, invalidation is hard. (GH-13157) (GH-13589) * No type cache for types with specialized mro, invalidation is hard. * FIX: Don't disable method cache custom types that do not implement mro(). * fixing implem. * Avoid storing error flags, also decref. * news entry * Clear as soon as we're getting an error. * FIX: Reference leak. (cherry picked from commit 180dc1b0f4a57c3f66351568ae8488fa8576d7f0) Co-authored-by: Julien Palard <julien@palard.fr> https://bugs.python.org/issue28866 26 May 2019, 22:14:23 UTC
f3d9094 BPO-27639: Correct return type for UserList slicing operation (#13203) Added logic to __getitem__ magic method for UserList to ensure that the return type matches that of self. 26 May 2019, 14:28:09 UTC
1b85f4e bpo-27987: pymalloc: align by 16bytes on 64bit platform (GH-12850) (cherry picked from commit f0be4bbb9b3cee876249c23f2ae6f38f43fa7495) Co-authored-by: Inada Naoki <songofacandy@gmail.com> 25 May 2019, 17:18:34 UTC
2156fec [3.7] Revert "align PyGC_Head to alignof(long double) (GH-13335)" (GH-13569) This reverts commit ea2b76bdc5f97f49701213d105b8ec2387ea2fa5. See the bug for discussion. https://bugs.python.org/issue27987 25 May 2019, 17:05:01 UTC
ea2b76b bpo-27987: align PyGC_Head to alignof(long double) (GH-13335) 25 May 2019, 12:13:33 UTC
c70ab1c bpo-37038: Make idlelib.run runnable; add test clause (GH-13560) (cherry picked from commit 81bb97df6138c755e229dcdac9bed747e31b61b3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 25 May 2019, 05:10:09 UTC
cee4ac8 bpo-35907: Clarify the NEWS entry (GH-13558) 24 May 2019, 21:29:10 UTC
310f414 bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778) ``_thread.interrupt_main()`` now avoids setting the Python error status if the ``SIGINT`` signal is ignored or not handled by Python. (cherry picked from commit 608876b6b1eb59538e6c29671a733033fb8b5be7) Co-authored-by: Matěj Cepl <mcepl@cepl.eu> 24 May 2019, 09:22:38 UTC
a3488e5 bpo-36797: Reduce levels of indirection in outdated distutils docs (GH-13462) (cherry picked from commit e788057a9188ff37e232729815dfda2529079420) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com> 23 May 2019, 14:19:41 UTC
7cc47e9 bpo-37008: make mock_open handle able to honor next() (GH-13492) I've reported the issue on https://bugs.python.org/issue37008 and now I'm trying to bring a solution to this minor issue. I think it could be trivially backported to 3.7 branch. https://bugs.python.org/issue37008 (cherry picked from commit 394119afc6611f17bac96f5ec6fefa00000ae795) Co-authored-by: Damien Nadé <Anvil@users.noreply.github.com> 23 May 2019, 10:21:11 UTC
0416d6f bpo-27737: Allow whitespace only headers encoding (GH-13478) (#13517) (cherry picked from commit ef5bb25e2d6147cd44be9c9b166525fb30485be0) Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> 23 May 2019, 01:41:43 UTC
367fe57 bpo-35091: Objects/listobject.c: Replace overflow checks in gallop fu… (GH-10202) …nctions with asserts The actual overflow can never happen because of the following: * The size of a list can't be greater than PY_SSIZE_T_MAX / sizeof(PyObject*). * The size of a pointer on all supported plaftorms is at least 4 bytes. * ofs is positive and less than the list size at the beginning of each iteration. https://bugs.python.org/issue35091 (cherry picked from commit 6bc5917903b722bdd0e5d3020949f26fec5dfe9a) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> 23 May 2019, 00:18:55 UTC
b73c21c bpo-33110: Catch errors raised when running add_done_callback on already completed futures (GH-13141) Wrap the callback call within the `add_done_callback` function within concurrent.futures, in order to behave in an identical manner to callbacks added to a running future are triggered once it has completed. (cherry picked from commit 2a3a2ece502c05ea33c95dd0db497189e0354bfd) Co-authored-by: Sam Martin <ABitMoreDepth@users.noreply.github.com> 22 May 2019, 22:02:24 UTC
34bab21 bpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-13474) (GH-13505) CVE-2019-9948: Avoid file reading as disallowing the unnecessary URL scheme in URLopener().open() and URLopener().retrieve() of urllib.request. Co-Authored-By: SH <push0ebp@gmail.com> (cherry picked from commit 0c2b6a3943aa7b022e8eb4bfd9bffcddebf9a587) 22 May 2019, 21:28:28 UTC
81c5ec9 [3.7] bpo-33482: fix codecs.StreamRecoder.writelines (GH-6779) (GH-13502) A very simple fix. I found this while writing typeshed stubs for StreamRecoder. https://bugs.python.org/issue33482. (cherry picked from commit b3be4072888a4ce054993c2801802721466ea02d) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> https://bugs.python.org/issue33482 22 May 2019, 16:28:38 UTC
a58db96 bpo-36829: Enhance PyErr_WriteUnraisable() (GH-13487) PyErr_WriteUnraisable() now displays the exception even if displaying the traceback failed. Moreover, hold a strong reference to sys.stderr while using it. Document that an exception must be set when calling PyErr_WriteUnraisable(), but don't add an assertion to check it at runtime. Cleanup: use longer names for variables and create write_unraisable_exc_file() subfunction. 22 May 2019, 16:23:28 UTC
d092caf bpo-36907: fix refcount bug in _PyStack_UnpackDict() (GH-13381) (GH-13493) 22 May 2019, 12:52:13 UTC
791e5fc bpo-36965: Fix includes in main.c on Windows with non-MSC compilers (GH-13421) (GH-13471) Include windows.h rather than crtdbg.h to get STATUS_CONTROL_C_EXIT constant. Moreover, include windows.h on Windows, not only when MSC is used. (cherry picked from commit 925af1d99b69bf3e229411022ad840c5a0cfdcf8) 22 May 2019, 11:04:06 UTC
aea49b1 [3.7] bpo-36035: fix Path.rglob for broken links (GH-11988) (GH-13469) Links creating an infinite symlink loop would raise an exception. (cherry picked from commit d5c120f7eb6f2a9cdab282a5d588afed307a23df) Co-authored-by: Jörg Stucke <joerg.stucke@fkie.fraunhofer.de> https://bugs.python.org/issue36035 21 May 2019, 19:05:08 UTC
390d88e [3.7] bpo-19376: Added doc mentioning `datetime.strptime()` without a year fails for Feb 29. (GH-10243) (cherry picked from commit 56027ccd6b9dab4a090e4fef8574933fb9a36ff2) Co-authored-by: Abhishek Kumar Singh <toanant@users.noreply.github.com> 21 May 2019, 19:03:58 UTC
6b48e65 bpo-36929: Modify io/re tests to allow for missing mod name (GH-13392) * bpo-36929: Modify io/re tests to allow for missing mod name For a vanishingly small number of internal types, CPython sets the tp_name slot to mod_name.type_name, either in the PyTypeObject or the PyType_Spec. There are a few minor places where this surfaces: * Custom repr functions for those types (some of which ignore the tp_name in favor of using a string literal, such as _io.TextIOWrapper) * Pickling error messages The test suite only tests the former. This commit modifies the test suite to allow Python implementations to omit the module prefix. https://bugs.python.org/issue36929 (cherry picked from commit ccb7ca728e09b307f9e9fd36ec40353137e68a3b) Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com> 21 May 2019, 17:51:56 UTC
3c9c2dc bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321) The script needs to be updated to support win 10/ 1803 chcp.com command (output has trailing dot) https://bugs.python.org/issue34144 (cherry picked from commit 6955d44b41058e3bcc59ff41860bd4cc8948c441) Co-authored-by: Lorenz Mende <Lorenz.mende@gmail.com> 21 May 2019, 15:41:44 UTC
cdb2dbf [3.7] bpo-22865: Expand on documentation for the pty.spawn function (GH-11980) (GH-13455) (cherry picked from commit 522ccef8690970fc4f78f51a3adb995f2547871a) Co-authored-by: Geoff Shannon <earthlingzephyr@gmail.com> 21 May 2019, 09:36:57 UTC
50b3f20 bpo-36969: Make PDB args command display keyword only arguments (GH-13452) (cherry picked from commit bf457c7d8224179a023957876e757f2a7ffc3d9d) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> 20 May 2019, 22:34:23 UTC
3887932 bpo-35721: Close socket pair if Popen in _UnixSubprocessTransport fails (GH-11553) This slightly expands an existing test case `test_popen_error` to trigger a `ResourceWarning` and fixes it. https://bugs.python.org/issue35721 (cherry picked from commit 9932fd91e878b740704ff599522e945a4bbe2ae1) Co-authored-by: Niklas Fiekas <niklas.fiekas@backscattering.de> 20 May 2019, 12:35:56 UTC
2d94d4f bpo-36958: In IDLE, print exit message (GH-13435) Print any argument other than None or int passed to SystemExit or sys.exit(). (cherry picked from commit 6d965b39b7a486dd9e96a60b19ee92382d668299) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 20 May 2019, 07:16:53 UTC
64b0bdb closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403) (cherry picked from commit 53d378c81286644138415cb56da52a7351e1a477) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 20 May 2019, 00:54:08 UTC
205c1f0 bpo-34580: Update sqlite3 examples to call close() explicitly (GH-9079) The sqlite3.Connection object doesn't call its close() method when it's used as a context manager. (cherry picked from commit 287b84de939db47aa8c6f30734ceb8aba9d1db29) Co-authored-by: Xtreak <tir.karthi@gmail.com> 19 May 2019, 22:36:32 UTC
f393e8e bpo-29183: Fix double exceptions in wsgiref.handlers.BaseHandler (GH-12914) (cherry picked from commit 7c59362a15dfce538512ff1fce4e07d33a925cfb) Co-authored-by: Berker Peksag <berker.peksag@gmail.com> 19 May 2019, 16:28:38 UTC
3645d29 bpo-27141: Fix collections.UserList and UserDict shallow copy. (GH-4094) (cherry picked from commit f4e1babf44792bdeb0c01da96821ba0800a51fd8) Co-authored-by: Bar Harel <bzvi7919@gmail.com> 19 May 2019, 14:26:35 UTC
f81b33b Orthographical fix (GH-13418) Add a missing comma. (cherry picked from commit 1d5bdef550d4395211fbe5f3c1444d7ea5bb54a2) Co-authored-by: Boštjan Mejak <bostjan.xperia@gmail.com> 19 May 2019, 09:13:28 UTC
951b161 bpo-36783: Add new references for C API Documentation changes (GH-13204) (cherry picked from commit d28772ab6967fea136c0707f0207673ebad66f61) Co-authored-by: Edison A <20975616+SimiCode@users.noreply.github.com> 19 May 2019, 02:12:01 UTC
561c63c Fixed typo (GH-11522) Given example does not run, loop variable is missing. Secondly, this is bad example how to handle shutdown signal, because it would cause `RuntimeError: Event loop stopped before Future completed.` Perhaps it would be better to cancel all tasks instead of closing loop directly? Did not create issue, because question is quite simple. (cherry picked from commit ceb842e155f5fa0109fa88d52da3d1f5e73490ad) Co-authored-by: Alexander Vasin <hi@alvass.in> 18 May 2019, 09:48:47 UTC
740a7cd bpo-36908: 'This module is always available' isn't helpful. (GH-13297) Makes the documentation of math and cmath module more helpful for the beginners. (cherry picked from commit 6faad355db6c2bd4a0ade7868f245b42c04f5337) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> 17 May 2019, 21:08:21 UTC
5386aaf bpo-33524: Fix the folding of email header when max_line_length is 0 or None (GH-13391) and there are non-ascii characters in the header. (cherry picked from commit feac6cd7753425fba006e97e2d9b74a0c0c75894) Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com> 17 May 2019, 20:47:12 UTC
9050aaf [3.7] Fix typo in _PyMethodDef_RawFastCallKeywords error message (GH-13343) (GH-13385) (cherry picked from commit a8b46944d72bba6dc76260ed61da5c78d3f9d9c0) Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be> 17 May 2019, 11:34:47 UTC
ced80d8 Simplify SSLSocket / SSLObject doc string (GH-9972) (GH-13384) Instead of maintaining the same docstring two times, let's copy common docstrings from SSLObject methods and properties to SSLSocket. (cherry picked from commit 80ed353329ef01ca6ab2056051fb999818a86215) Co-authored-by: Christian Heimes <christian@python.org> 17 May 2019, 11:29:35 UTC
a22c42f docs 36789: resolve incorrect note regarding UTF-8 (GH-13111) (cherry picked from commit f98c3c59c0930ee41175d8935f72bfeed5fee17a) Co-authored-by: redshiftzero <jen@freedom.press> 17 May 2019, 11:01:47 UTC
85ed171 bpo-1875: Raise SyntaxError in invalid blocks that will be optimised away (GH-13332) Move the check for dead conditionals (if 0) to the peephole optimizer and make sure that the code block is still compiled to report any existing syntax errors within. (cherry picked from commit af8646c8054d0f4180a2013383039b6a472f9698) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 17 May 2019, 10:59:48 UTC
9470404 bpo-35545: Fix asyncio discarding IPv6 scopes (GH-11271) This PR proposes a solution to [bpo-35545](https://bugs.python.org/issue35545) by adding an optional `flowinfo` and `scopeid` to `asyncio.base_events._ipaddr_info` to carry the full address information into `_ipaddr_info` and avoid discarding IPv6 specific information. Changelog entry & regression tests to come. https://bugs.python.org/issue35545 (cherry picked from commit ac8eb8f36bf7ca636f8d886eb65a3b532f4725d5) Co-authored-by: Erwan Le Pape <lepaperwan@users.noreply.github.com> 17 May 2019, 09:05:19 UTC
4be0720 Doc: Add link threading.settrace to sys.settrace (GH-13345) (cherry picked from commit 245f528a92d7748dbd7acf9cba860153c143bbfe) Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de> 17 May 2019, 09:02:51 UTC
f02d1a4 bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) The final addition (cur += step) may overflow, so use size_t for "cur". "cur" is always positive (even for negative steps), so it is safe to use size_t here. Co-Authored-By: Martin Panter <vadmium+py@gmail.com> (cherry picked from commit 14514d9084a40f599c57da853a305aa264562a43) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 17 May 2019, 07:33:10 UTC
aa73841 bpo-35926: Add support for OpenSSL 1.1.1b on Windows (GH-11779) 16 May 2019, 16:41:36 UTC
876756e Fix typos in documentation. Patch by tirkarthi. (GH-13354) (cherry picked from commit 8a533ffb499b168ed4bdb707c9919290631e267d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 16 May 2019, 05:38:31 UTC
78dd781 bpo-36015: Handle StreamHandler representaton of stream with an integer name (GH-11908) (GH-13183) (cherry picked from commit ca87eebb22d202c33f3317cbf85059cadc64fa9f) Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> 15 May 2019, 18:06:29 UTC
4fd7f56 [3.7] bpo-36799: Fix typo in ctypes.rst (GH-13104) (GH-13341) (cherry picked from commit 133fc89ca) Co-authored-by: Yavor Konstantinov <7553015+sehnsucht13@users.noreply.github.com> 15 May 2019, 15:53:25 UTC
c647ad9 Revert "bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)" (GH-13328) This reverts commit 93aa57ac6594d1cc30d147720fc8a7a4e1ca2d3e. 14 May 2019, 20:29:54 UTC
2fef5b0 bpo-33529, email: Fix infinite loop in email header encoding (GH-12020) (GH-13321) (cherry picked from commit c1f5667be1e3ec5871560c677402c1252c6018a6) Co-authored-by: Krzysztof Wojcik <wojcikk2903@users.noreply.github.com> 14 May 2019, 20:12:46 UTC
8226832 bpo-36760: Clarify subprocess capture_output docs. (GH-13322) Clarify how to capture stdout and stderr combined into one stream. (cherry picked from commit e883091abf7ca84a88e956fe5202e75c53bd4128) Co-authored-by: Gregory P. Smith <greg@krypto.org> 14 May 2019, 19:39:17 UTC
ecd668d bpo-36915: regrtest always remove tempdir of worker processes (GH-13312) When using multiprocessing (-jN option), worker processes now create their temporary directory inside the temporary directory of the main process. So the main process is able to remove temporary directories of worker processes even if they crash or when they are killed by regrtest on KeyboardInterrupt (CTRL+c). Rework also how multiprocessing arguments are parsed in main.py. (cherry picked from commit 3c93153f7db5dd9b06f229e61978fd9199b3c097) Co-authored-by: Victor Stinner <vstinner@redhat.com> 14 May 2019, 15:25:06 UTC
8b3823a bpo-32995 - Added context variable in glossary (GH-9741) (cherry picked from commit c0a1a07c7e9814cad79cce3580c16284b2df7f52) Co-authored-by: Vinodhini Balusamy <me.vinob@gmail.com> 14 May 2019, 12:24:42 UTC
d8e123a bpo-36719: Fix regrtest MultiprocessThread (GH-13301) (GH-13303) MultiprocessThread.kill() now closes stdout and stderr to prevent popen.communicate() to hang. (cherry picked from commit c923c3449f825021b13521b2380e67ba35a36f55) Co-authored-by: Victor Stinner <vstinner@redhat.com> 14 May 2019, 12:12:49 UTC
30cccf0 bpo-36845: validate integer network prefix when constructing IP networks (GH-13298) (cherry picked from commit 5e48e3db6f5a937023e99d89cef8884d22bd8533) Co-authored-by: Nicolai Moore <niconorsk@gmail.com> 14 May 2019, 11:00:16 UTC
0a5b88e bpo-24538: Fix bug in shutil involving the copying of xattrs to read-only files. (PR-13212) (#13234) Extended attributes can only be set on user-writeable files, but shutil previously first chmod()ed the destination file to the source's permissions and then tried to copy xattrs. This will cause failures if attempting to copy read-only files with xattrs, as occurs with Git clones on Lustre FS. (cherry picked from commit 79efbb719383386051c72f2ee932eeca8e033e6b) Co-authored-by: Olexa Bilaniuk <obilaniu@users.noreply.github.com> 14 May 2019, 05:30:22 UTC
da86bf7 Changes to the documentation of normcase (GH-4725) (cherry picked from commit 32d1458b2e2e00eeb29022179eeb04b83fb7f3c4) Co-authored-by: Kexuan Sun <me@kianasun.com> 14 May 2019, 02:21:25 UTC
c0abd0c bpo-34424: Handle different policy.linesep lengths correctly. (GH-8803) (cherry picked from commit 45b2f8893c1b7ab3b3981a966f82e42beea82106) Co-authored-by: Jens Troeger <jenstroeger@users.noreply.github.com> 14 May 2019, 02:02:46 UTC
7f485ea bpo-35138: Added an example for timeit.timeit with callable arguments (GH-9787) * Update timeit.rst (cherry picked from commit 8da5ebe11e0cb6599af682b22f7c2b2b7b9debd8) Co-authored-by: Anders Hovmöller <boxed@killingar.net> 13 May 2019, 19:41:31 UTC
ee9b5ce Docs: Add bz2 usage examples (GH-13258) * Docs: Add bz2 usage examples - Adds an "Examples of usage" section inspired by the one found in the gzip docs - Corrects the descriptions for ``compresslevel`` and ``data``: - ``compresslevel`` must be an `int`, not any number. For instance, passing a float will raise ``TypeError`` - Notes that `data` must be bytes-like (cherry picked from commit be6939fb02e65b56c45377940b339d150b124d05) Co-authored-by: Brad <brad.solomon.1124@gmail.com> 13 May 2019, 18:50:16 UTC
19464bc bpo-36719: regrtest -jN no longer stops on crash (GH-13231) "python3 -m test -jN ..." now continues the execution of next tests when a worker process crash (CHILD_ERROR state). Previously, the test suite stopped immediately. Use --failfast to stop at the first error. Moreover, --forever now also implies --failfast. (cherry picked from commit b0917df329ba14b7bc6fa782c1b61e7a2163af0b) Co-authored-by: Victor Stinner <vstinner@redhat.com> 13 May 2019, 17:55:07 UTC
68a11b6 [3.7] bpo-36807: When saving a file in IDLE, call flush and fsync (GH-13102) (#13288) Includes blurb fix in 85c69d5 (cherry picked from commit 4f098b35f58e911639f8e9adc393d5cf5c792e7f) 13 May 2019, 16:58:42 UTC
24482bd [3.7] bpo-36895: document time.clock() has been removed in 3.8 (GH-13287) 13 May 2019, 16:08:48 UTC
744129d bpo-36903: Fix ResourceWarning in test_logging (GH-13283) (GH-13285) (cherry picked from commit 2c10538d11fa9be9a1a9f21605861e10ec4fa207) Co-authored-by: Xtreak <tir.karthi@gmail.com> 13 May 2019, 15:39:50 UTC
074d7c4 [3.7] bpo-34682: Wording and grammatical changes to the doc(https://docs.python.org/3) (GH-13120) (GH-13281) https://bugs.python.org/issue34682 (cherry picked from commit 778a9107586e29421af3a08209cf0b557c1fe5bc) Co-authored-by: divyag9 <divyam9@gmail.com> 13 May 2019, 13:48:49 UTC
af5ef3e bpo-33882: mention breakpoint() in debugger-related FAQ (GH-7759) (GH-13077) (cherry picked from commit cf48e55f7f7718482fa712552f0cbc0aea1c826f) Co-authored-by: Andre Delfino <adelfino@gmail.com> 13 May 2019, 13:03:10 UTC
b7e483b bpo-36791: Safer detection of integer overflow in sum(). (GH-13080) (cherry picked from commit 29500737d45cbca9604d9ce845fb2acc3f531401) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 12 May 2019, 09:37:15 UTC
4f5febd [3.7] bpo-36822: Fix minor grammatical error in glossary.rst (GH-13145). (GH-13260) (cherry picked from commit 90fb04c1e23c0fddd438bd0f73e7c018cacef4bc) Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com> 12 May 2019, 03:53:02 UTC
34ed40f [3.7] bpo-34408: Prevent a null pointer dereference and resource leakage in `PyInterpreterState_New()` (GH-8767) (GH-13237) * A pointer in `PyInterpreterState_New()` could have been `NULL` when being dereferenced. * Memory was leaked in `PyInterpreterState_New()` when taking some error-handling code path. (cherry picked from commit 95d630e) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 10 May 2019, 20:16:19 UTC
069a5b4 bpo-33071: remove outdated PyPI docs (GH-13087) Patch by Kojo Idrissa. (cherry picked from commit 1b4abcf302ff2c8f4d4881294510d48ba5186b53) Co-authored-by: Kojo Idrissa <kojoidrissa@users.noreply.github.com> 10 May 2019, 08:50:54 UTC
98b360e [3.7] bpo-10536: Enhancements to gettext docs (GH-10324) (GH-13224) (cherry picked from commit 55f3317e984cc35bd18ba0326ed98766a2750ffd) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> https://bugs.python.org/issue10536 09 May 2019, 20:26:09 UTC
6daaf3f [3.7] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (GH-13197) We updated the server, our testsuite must match. https://bugs.python.org/issue36816 ✈️ CLE -> DEN ✈️ #pycon2019 #beyonce (cherry picked from commit 6bd81734de0b73f1431880d6a75fb71bcbc65fa1) Authored-by: Gregory P. Smith <greg@krypto.org> https://bugs.python.org/issue36816 08 May 2019, 21:13:08 UTC
ed8860c bpo-31873: Update unicode.rst - 'unicode' capitalization (GH-4125) Update 'unicode' capitalization. 'Unicode' is a proper noun, and as such should be capitalized. Changed multiple instances. (cherry picked from commit 85225b6a58a516c50c055d5114668ed2fcdcda8c) Co-authored-by: toonarmycaptain <toonarmycaptain@hotmail.com> 08 May 2019, 16:34:12 UTC
5e08fe1 Doc: Be explicit that Pathlib resolve was strict before 3.6. (GH-11316) (cherry picked from commit 1d4b16051f8550fd7dada3670a3e83ae13b99d3b) Co-authored-by: Julien Palard <julien@palard.fr> 08 May 2019, 15:26:23 UTC
3afbe69 [3.7] Doc: Fix missing bracket (GH-13163) (GH-13189) (cherry picked from commit 70b80541bb044e8cb7037acaf97f64890fef418e) Co-authored-by: Zhaorong Ma <mazhaorong@gmail.com> 08 May 2019, 14:07:02 UTC
93aa57a bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098) https://bugs.python.org/issue36801 (cherry picked from commit 1cc0ee7d9f6a2817918fafd24c18d8bb093a85d3) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 07 May 2019, 21:48:35 UTC
5edd82c Add a footnote about Cheese Shop in Doc/tutorial (GH-13103) (GH-13174) (cherry picked from commit e19a91e45fd54a56e39c2d12e6aaf4757030507f) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> 07 May 2019, 20:59:20 UTC
3b4b28e [3.7] bpo-36533: Reinit logging.Handler locks on fork(). (GH-12704) (GH-13170) Instead of attempting to acquire and release them all across fork which was leading to deadlocks in some applications that had chained their own handlers while holding multiple locks. (cherry picked from commit 64aa6d2000665efb1a2eccae176df9520bf5f5e6) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google LLC] 07 May 2019, 20:29:41 UTC
299f69c bpo-35125: remove inner callback on outer cancellation in asyncio shield (GH-10340) When the future returned by shield is cancelled, its completion callback of the inner future is not removed. This makes the callback list of inner inner future grow each time a shield is created and cancelled. This change unregisters the callback from the inner future when the outer future is cancelled. https://bugs.python.org/issue35125 (cherry picked from commit b35acc5b3a0148c5fd4462968b310fb436726d5a) Co-authored-by: Romain Picard <romain.picard@oakbits.com> 07 May 2019, 19:38:00 UTC
19ca5b5 bpo-31922: Do not connect UDP sockets when broadcast is allowed (GH-423) *Moved from python/asyncioGH-493.* This PR fixes issue python/asyncioGH-480, as explained in [this comment](https://github.com/python/asyncio/issues/480GH-issuecomment-278703828). The `_SelectorDatagramTransport.sendto` method has to be modified ~~so `_sock.sendto` is used in all cases (because it is tricky to reliably tell if the socket is connected or not). Could that be an issue for connected sockets?~~ *EDIT* ... so `_sock.send` is used only if `_sock` is connected. It also protects `socket.getsockname` against `OSError` in `_SelectorTransport`. This might happen on Windows if the socket is not connected (e.g. for UDP broadcasting). https://bugs.python.org/issue31922 (cherry picked from commit 63deaa5b70108ef441c57728322da6b4321db4fc) Co-authored-by: Vincent Michel <vxgmichel@gmail.com> 07 May 2019, 17:45:53 UTC
back to top