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

sort by:
Revision Author Date Message Commit Date
c989340 bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) (cherry picked from commit 64b4a3a2deabcd4103fac2759a311fe94159b4d1) Co-authored-by: Victor Stinner <vstinner@redhat.com> 26 September 2019, 15:13:39 UTC
96c8475 [3.8] bpo-38234: Backport init path config changes from master (GH-16423) * bpo-38234: Py_SetPath() uses the program full path (GH-16357) Py_SetPath() now sets sys.executable to the program full path (Py_GetProgramFullPath()), rather than to the program name (Py_GetProgramName()). Fix also memory leaks in pathconfig_set_from_config(). (cherry picked from commit 1ce152a42eaa917d7763bce93f1e1ca72530d7ca) * bpo-38234: Add tests for Python init path config (GH-16358) (cherry picked from commit bb6bf7d342b4503a6227fd209fac934905b6a1aa) * bpo-38234: test_embed: test pyvenv.cfg and pybuilddir.txt (GH-16366) Add test_init_pybuilddir() and test_init_pyvenv_cfg() to test_embed to test pyvenv.cfg and pybuilddir.txt configuration files. Fix sysconfig._generate_posix_vars(): pybuilddir.txt uses UTF-8 encoding, not ASCII. (cherry picked from commit 52ad33abbfb6637d74932617c7013bae0ccf6e32) * bpo-38234: Cleanup getpath.c (GH-16367) * search_for_prefix() directly calls reduce() if found is greater than 0. * Add calculate_pybuilddir() subfunction. * search_for_prefix(): add path string buffer for readability. * Fix some error handling code paths: release resources on error. * calculate_read_pyenv(): rename tmpbuffer to filename. * test.pythoninfo now also logs windows.dll_path (cherry picked from commit 221fd84703c545408bbb4a6e0b58459651331f5c) * bpo-38234: Fix test_embed pathconfig tests (GH-16390) bpo-38234: On macOS and FreeBSD, the temporary directory can be symbolic link. For example, /tmp can be a symbolic link to /var/tmp. Call realpath() to resolve all symbolic links. (cherry picked from commit 00508a7407d7d300b487532e2271534b20e378a7) * bpo-38234: Add test_init_setpath_config() to test_embed (GH-16402) * Add test_embed.test_init_setpath_config(): test Py_SetPath() with PyConfig. * test_init_setpath() and test_init_setpythonhome() no longer call Py_SetProgramName(), but use the default program name. * _PyPathConfig: isolated, site_import and base_executable fields are now only available on Windows. * If executable is set explicitly in the configuration, ignore calculated base_executable: _PyConfig_InitPathConfig() copies executable to base_executable. * Complete path config documentation. (cherry picked from commit 8bf39b606ef7b02c0279a80789f3c4824b0da5e9) * bpo-38234: Complete init config documentation (GH-16404) (cherry picked from commit 88feaecd46a8f427e30ef7ad8cfcddfe392a2402) * bpo-38234: Fix test_embed.test_init_setpath_config() on FreeBSD (GH-16406) Explicitly preinitializes with a Python preconfiguration to avoid Py_SetPath() implicit preinitialization with a compat preconfiguration. Fix also test_init_setpath() and test_init_setpythonhome() on macOS: use self.test_exe as the executable (and base_executable), rather than shutil.which('python3'). (cherry picked from commit 49d99f01e6e51acec5ca57a02e857f0796bc418b) * bpo-38234: Py_Initialize() sets global path configuration (GH-16421) * Py_InitializeFromConfig() now writes PyConfig path configuration to the global path configuration (_Py_path_config). * Add test_embed.test_get_pathconfig(). * Fix typo in _PyWideStringList_Join(). (cherry picked from commit 12f2f177fc483723406d7917194e7f655a20631b) 26 September 2019, 14:17:34 UTC
68040ed bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016) (GH-16415) Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com> (cherry picked from commit 1ad7be2f16cc9955f271f57a5089602bb41eee85) Co-authored-by: Mohammad Dehghan <md.unicorn@gmail.com> 26 September 2019, 09:16:38 UTC
b3c35fe Doc: Use the `with` statement in the first example of the ftplib doc. (GH-16271) (GH-16412) (cherry picked from commit 5d326abf2cb4891b78d9319a81bffb3974b5b745) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> 26 September 2019, 07:12:39 UTC
d75bf44 [3.8] closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16409) Fixes CVE-2019-15903. See full changelog at https://github.com/libexpat/libexpat/blob/R_2_2_8/expat/Changes. (cherry picked from commit 52b940803860e37bcc3f6096b2d24e7c20a0e807) 26 September 2019, 04:57:14 UTC
b92b8c5 [3.8] bpo-22273: Changed conditions for ctypes array-in-struct handling. (GH-16381) (GH-16401) (cherry picked from commit c64af8fad3c4f5751af624647fbb0ce023f525dc) 25 September 2019, 21:41:02 UTC
4267e8f bpo-38271: encrypt private key test files with AES256 (GH-16385) The private keys for test_ssl were encrypted with 3DES in traditional PKCSGH-5 format. 3DES and the digest algorithm of PKCSGH-5 are blocked by some strict crypto policies. Use PKCSGH-8 format with AES256 encryption instead. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38271 Automerge-Triggered-By: @tiran (cherry picked from commit bfd0c963d88f3df69489ee250655e2b8f3d235bd) Co-authored-by: Christian Heimes <christian@python.org> 25 September 2019, 16:13:54 UTC
ca14f04 bpo-38005: Remove support of string argument in InterpreterID(). (GH-16227) Make negative interpreter id to raise ValueError instead of RuntimeError. (cherry picked from commit 543a3951a1c96bae0ea839eacec71d3b1a563a10) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 25 September 2019, 15:56:05 UTC
66cd041 [3.8] bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382) (GH-16393) Make it easier to run and test Python on systems with restrict crypto policies: * add requires_hashdigest to test.support to check if a hash digest algorithm is available and working * avoid MD5 in test_hmac * replace MD5 with SHA256 in test_tarfile * mark network tests that require MD5 for MD5-based digest auth or CRAM-MD5 https://bugs.python.org/issue38270 (cherry picked from commit c64a1a61e6fc542cada40eb069a239317e1af36e) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38270 Automerge-Triggered-By: @tiran 25 September 2019, 15:50:31 UTC
7444a5a bpo-38255: super() can search attributes as well as methods (GH-16368) (GH-16391) Improvement suggested by Géry Ogam. (cherry picked from commit 15ccc4fac09b866d61b069c6c136aabfe4bac09c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 25 September 2019, 15:24:12 UTC
e4be8c9 bpo-36210: correct logic in setup.py for optional extensions for AIX (GH-12202) (GH-16376) 25 September 2019, 14:14:09 UTC
2e566bf bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705) (GH-16389) If Python is installed, skip test_tools.test_pathfix test because Tools/scripts/pathfix.py script is not installed. (cherry picked from commit 3f43ceff186da09978d0aff257bb18b8ac7611f7) 25 September 2019, 14:12:32 UTC
c71c54c bpo-37064: Add -k and -a options to pathfix.py tool (GH-16387) * bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548) Add flag -k to pathscript.py script: preserve shebang flags. (cherry picked from commit 50254ac4c179cb412e90682098c97db786143929) * bpo-37064: Add option -a to pathfix.py tool (GH-15717) Add option -a to Tools/Scripts/pathfix.py script: add flags. (cherry picked from commit 1dc1acbd73f05f14c974b7ce1041787d7abef31e) 25 September 2019, 13:22:40 UTC
16cec13 bpo-38248: Fix inconsistent immediate asyncio.Task cancellation (GH-16330) (GH-16383) (cherry picked from commit edad4d89e357c92f70c0324b937845d652b20afd) Co-authored-by: Yury Selivanov <yury@edgedb.com> 25 September 2019, 11:48:52 UTC
4633355 bpo-38260: Add Docs on asyncio.run (GH-16337) Add docs about return and raise exception on asyncio.run https://bugs.python.org/issue38260 Automerge-Triggered-By: @asvetlov (cherry picked from commit 17deb16883fa574a86e42551cc37f044182347ad) Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com> 25 September 2019, 09:12:47 UTC
ce62dcc bpo-22273: Update ctypes to correctly handle arrays in small structur… (GH-15839) (GH-16370) (cherry picked from commit 12f209eccb1587e8c98057d9c5f865c21f4a16c1) 25 September 2019, 04:10:20 UTC
1a17a05 [3.8] bpo-36871: Handle spec errors in assert_has_calls (GH-16005) (GH-16364) The fix in PR 13261 handled the underlying issue about the spec for specific methods not being applied correctly, but it didn't fix the issue that was causing the misleading error message. The code currently grabs a list of responses from _call_matcher (which may include exceptions). But it doesn't reach inside the list when checking if the result is an exception. This results in a misleading error message when one of the provided calls does not match the spec. https://bugs.python.org/issue36871 Automerge-Triggered-By: @gpshead (cherry picked from commit b5a7a4f0c20717a4c92c371583b5521b83f40f32) Co-authored-by: Samuel Freilich <sfreilich@google.com> https://bugs.python.org/issue36871 Automerge-Triggered-By: @gpshead 25 September 2019, 00:29:17 UTC
081641f bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) Multiprocessing test test_mymanager() now also expects -SIGTERM, not only exitcode 0. bpo-30356: BaseManager._finalize_manager() sends SIGTERM to the manager process if it takes longer than 1 second to stop, which happens on slow buildbots. (cherry picked from commit b0e1ae5f5430433766e023c1a6936aeba0f2b84e) Co-authored-by: Victor Stinner <vstinner@redhat.com> 24 September 2019, 12:39:47 UTC
fea9ca1 bpo-38212: Increase MP test_queue_feeder_donot_stop_onexc() timeout (GH-16348) Multiprocessing tests: increase test_queue_feeder_donot_stop_onexc() timeout from 1 to 60 seconds. (cherry picked from commit 99799c722065d0524f3ab0bc455e1938bb8dc60f) Co-authored-by: Victor Stinner <vstinner@python.org> 24 September 2019, 11:07:28 UTC
5b94eb8 closes bpo-16637: libpython: construct integer object directly from gdbvalue (GH-15232) This fixes the exception '`ValueError: invalid literal for int() with base 10` if `str(gdbval)` returns a hexadecimal value (e.g. '0xa0'). This is the case if the output-radix is set to 16 in gdb. See https://sourceware.org/gdb/onlinedocs/gdb/Numbers.html for more information. (cherry picked from commit 6f53d34fb0f944a8c0ee530334c353559ac40f72) Co-authored-by: Marc Hartmayer <marc1006@users.noreply.github.com> 24 September 2019, 03:52:50 UTC
a7c73a0 closes bpo-38253: Fix typo of Py_SET_ERANGE_IF_OVERFLOW in pyport.h. (GH-16230) (cherry picked from commit 4346bad3321699d49a45e3446270b57726ab5c8f) Co-authored-by: Hai Shi <shihai1992@gmail.com> 24 September 2019, 02:41:06 UTC
7f7cd89 bpo-38234: read_pth_file() now returns PyStatus (GH-16338) Refactor path configuration code: * read_pth_file() now returns PyStatus to report errors, rather than calling Py_FatalError(). * Move argv0_path and zip_path buffers out of PyCalculatePath structures. * On Windows, _PyPathConfig.home is now preferred over PyConfig.home. (cherry picked from commit 85ce0a7178801b538160cbb5cf9ef50a713c45bf) Co-authored-by: Victor Stinner <vstinner@redhat.com> 23 September 2019, 23:16:53 UTC
3f5409a bpo-38234: Fix _PyConfig_InitPathConfig() (GH-16335) (GH-16336) * _PyConfig_InitPathConfig() now starts by copying the global path configuration, and then override values set in PyConfig. * _PyPathConfig_Calculate() implementations no longer override _PyPathConfig fields which are already computed. For example, if _PyPathConfig.prefix is not NULL, leave it unchanged. * If Py_SetPath() has been called, _PyConfig_InitPathConfig() doesn't call _PyPathConfig_Calculate() anymore. * _PyPathConfig_Calculate() no longer uses PyConfig, except to initialize PyCalculatePath structure. * pathconfig_calculate(): remove useless temporary "_PyPathConfig new_config" variable. * calculate_module_search_path(): remove hack to workaround memory allocation failure, call Py_FatalError() instead. * Fix get_program_full_path(): handle memory allocation failure. (cherry picked from commit 9c42f8cda552694f3b47d6388d4ae84d61731872) 23 September 2019, 17:50:27 UTC
c5c6425 bpo-38236: Dump path config at first import error (GH-16300) (GH-16332) Python now dumps path configuration if it fails to import the Python codecs of the filesystem and stdio encodings. (cherry picked from commit fcdb027234566c4d506d6d753c7d5638490fb088) 23 September 2019, 13:59:00 UTC
fe9089a Updated incorrect level-setting code to use setLevel(). (GH-16325) (GH-16327) (cherry picked from commit 1d094af716e8ce5e5710e1dfbce7832ba333be55) 22 September 2019, 03:26:37 UTC
24231ca bpo-38237: Shorter docstring (GH-16322) (GH-16323) (cherry picked from commit b104ecbbafc14f9ca0c8371963c45dca893f6b75) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 21 September 2019, 20:32:07 UTC
37bc935 bpo-38237: Let pow() support keyword arguments (GH-16302) (GH-16320) Backported with release manager approval 21 September 2019, 08:22:29 UTC
865bb68 [3.8] bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947) (GH-16299) (cherry picked from commit 8b03f943c37e07fb2394acdcfacd066647f9b1fd) Co-authored-by: Lisa Roach <lisaroach14@gmail.com> 21 September 2019, 06:00:04 UTC
f4e0ceb Doc: Fix spelling errors of 'initial' in enum.py (GH-16314) (cherry picked from commit bb16fb2cb8dca1fa1d67621c3175793eda7dbdc2) Co-authored-by: HongWeipeng <hongweichen8888@sina.com> 21 September 2019, 05:41:35 UTC
960f52a Doc: Remove provisional note for asyncio.run() (GH-16310) (GH-16311) Based on a comment from @asvetlov https://github.com/python/cpython/pull/15735GH-discussion_r323619076, this removes the provisional note for ``asyncio.run()`` in the documentation. Automerge-Triggered-By: @1st1 (cherry picked from commit 77af2290e594479002aa7d8f914d1f38b14a4854) Co-authored-by: Kyle Stanley <aeros167@gmail.com> 21 September 2019, 05:29:09 UTC
8fe4755 Minor code and comment cleanup (GH-16315) (GH-16316) (cherry picked from commit 7ce4bfa8cfcc78d03e164f2de64a2caad1d919af) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 21 September 2019, 05:18:10 UTC
9f3dcf8 [3.8] bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298) (GH-16313) * bpo-38234: Remove _PyPathConfig.dll_path (GH-16307) The DLL path is not computed from any user configuration and cannot be configured by PyConfig. Instead, add a new _Py_dll_path global variable. Remove _PyConfig_SetPathConfig(): replaced with _PyPathConfig_Init(). Py_Initialize() now longer sets the "global path configuration", but only initialize _Py_dll_path. (cherry picked from commit c422167749f92d4170203e996a2c619c818335ea) * bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298) * If Py_SetPath() has been called, _PyConfig_InitPathConfig() now uses its value. * Py_Initialize() now longer copies path configuration from PyConfig to the global path configuration (_Py_path_config). (cherry picked from commit e267793aa4101b2771ed0e66aaff5743d23f59af) 21 September 2019, 00:13:14 UTC
245d439 bpo-38205: Py_UNREACHABLE() calls Py_FatalError() (GH-16290) (GH-16306) (cherry picked from commit b1542583bee204130934c2b90684041e29378250) 20 September 2019, 21:36:32 UTC
b50edac bpo-33694: Remove test_asyncio ProactorDatagramTransportTests (GH-16288) ProactorDatagramTransportTests tests are too close to the implementation. (cherry picked from commit bc2256ea177a653bcab15b06b5f5725b10c1fff3) Co-authored-by: Victor Stinner <vstinner@redhat.com> 20 September 2019, 21:27:28 UTC
c410390 bpo-37937: Mention frame.f_trace in sys.settrace docs (GH-15439) Mention frame.f_trace in sys.settrace docs, as well as the fact you still need to call `sys.settrace` to enable the tracing machinery before setting `frame.f_trace` will have any effect. (cherry picked from commit 9c2682efc69568e1b42a0c1759489d6f2e3b30ea) Co-authored-by: Ram Rachum <ram@rachum.com> 20 September 2019, 15:26:27 UTC
0ab6b01 bpo-37353: Updated parser note about source code compatibility(GH-14277) (cherry picked from commit 062cfe3b11c61d03ccc2915e360f9b0d80e23642) Co-authored-by: Prateek Nayak <45075669+Kriyszig@users.noreply.github.com> 20 September 2019, 14:03:21 UTC
fb7746d bpo-37531: sync regrtest with master branch (GH-16285) 19 September 2019, 16:05:09 UTC
8d9efc4 Fix _PyTraceMalloc_Fini() definition (GH-16259) (GH-16278) The function return type is void, not int. (cherry picked from commit d299b8b47d9dbea8fec2c2abcb6c32ad32f5f4d1) Co-authored-by: Victor Stinner <vstinner@redhat.com> 19 September 2019, 06:41:35 UTC
16eb623 Doc: Clarify dict equality irrespective of ordering. (GH-16266) (cherry picked from commit 3171d67a6aaf7fe88685b3a80644f0284686ef63) Co-authored-by: toonarmycaptain <toonarmycaptain@hotmail.com> 19 September 2019, 05:58:42 UTC
6612a4f [3.8] bpo-38218: Doc: Corrected syntax for return annotation (GH-16265) (GH-16274) Signed-off-by: Jason Plurad <pluradj@us.ibm.com> (cherry picked from commit 9ab6038fe843e1193d795eb58fd5931b44be5a96) Co-authored-by: Jason Plurad <pluradj@us.ibm.com> 19 September 2019, 05:42:57 UTC
064e1e3 bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16260) dump_traceback_later() and cancel_dump_traceback_later() functions of the faulthandler module are always available since Python 3.7. 18 September 2019, 12:37:02 UTC
47bbab9 [3.8] bpo-38070: Py_FatalError() logs runtime state (GH-16258) * bpo-38070: _Py_DumpTraceback() writes <no Python frame> (GH-16244) When a Python thread has no frame, _Py_DumpTraceback() and _Py_DumpTracebackThreads() now write "<no Python frame>", rather than writing nothing. (cherry picked from commit 8fa3e1740b3f03ea65ddb68411c2238c5f98eec2) * bpo-38070: Enhance _PyObject_Dump() (GH-16243) _PyObject_Dump() now dumps the object address for freed objects and objects with ob_type=NULL. (cherry picked from commit b39afb78768418d9405c4b528c80fa968ccc974d) * bpo-38070: Add _PyRuntimeState.preinitializing (GH-16245) Add _PyRuntimeState.preinitializing field: set to 1 while Py_PreInitialize() is running. _PyRuntimeState: rename also pre_initialized field to preinitialized. (cherry picked from commit d3b904144e86e2442961de6a7dccecbe133d5c6d) * bpo-38070: Py_FatalError() logs runtime state (GH-16246) (cherry picked from commit 1ce16fb0977283ae42a9f8917bbca5f44aa69324) 18 September 2019, 12:10:16 UTC
7a2f687 bpo-37904: Edition on python tutorial - section 4 (GH-16169) (GH-16234) A little change on first paragraph of python tutorial to be more clearly https://bugs.python.org/issue37904 Automerge-Triggered-By: @ericvsmith (cherry picked from commit b57481318e3e3cbacd398b898f9849ec8f2d7eec) Co-authored-by: Diego Alberto Barriga Martínez <diegobarriga@protonmail.com> 18 September 2019, 10:36:15 UTC
2adcd79 bpo-38191: Use positional-only parameters in TypedDict(). (GH-16240) 18 September 2019, 06:08:01 UTC
31af1cc bpo-36546: No longer a need to make "data" positional only (GH-16252) (GH-16253) (cherry picked from commit 272d0d017aef585acf84bb0af99a90a2a8582b2c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 18 September 2019, 04:06:53 UTC
54ba5f1 bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). (GH-16222) This includes such names as "cls", "self", "typename", "_typename", "fields" and "_fields". Passing positional arguments by keyword is deprecated. (cherry picked from commit 2bf31ccab3d17f3f35b42dca97f99576dfe2fc7d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 17 September 2019, 18:41:55 UTC
3c1786f bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH-16070) Even when the helper is not started yet. This behavior follows conventional generator one. There is no reason for `async_generator_athrow` to handle `gen.throw()` differently. https://bugs.python.org/issue38013 (cherry picked from commit c275312a6284bd319ea33c9abd7e15c230eca43f) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 17 September 2019, 13:20:06 UTC
5f1590d bpo-37531: regrtest main process uses shorter timeout (GH-16220) (GH-16224) When using multiprocesss (-jN), the main process now uses a timeout of 60 seconds instead of the double of the --timeout value. The buildbot server stops a job which does not produce any output in 1200 seconds. (cherry picked from commit 46b0b81220a23bc4aee5ba3ba67e8cf1b5df7960) Co-authored-by: Victor Stinner <vstinner@redhat.com> 17 September 2019, 12:34:13 UTC
f668d2b bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166) In the format string for assert_called the evaluation order is incorrect and hence for mock's without name, 'None' is printed whereas it should be 'mock' like for other messages. The error message is ("Expected '%s' to have been called." % self._mock_name or 'mock'). (cherry picked from commit 5f5f11faf9de0d8dcbe1a8a4eb35d2a4232d6eaa) Co-authored-by: Abraham Toriz Cruz <awonderfulcode@gmail.com> 17 September 2019, 11:35:56 UTC
728bea6 Doc: Fix grammar/spelling in ssl.VERIFY_CRL_CHECK_LEAF docs (GH-16221) (cherry picked from commit 219fb9d65ef7e5363eccc9dde0988bb085db1c86) Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com> 17 September 2019, 10:49:20 UTC
1ba7471 bpo-38192: Fix remaining passing of "loop" in the protocol examples (GH-16202) See https://bugs.python.org/issue38192 . https://bugs.python.org/issue38192 (cherry picked from commit 5d359cc62e0244e1fd8d17146a4135079d6843bf) Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com> 17 September 2019, 07:24:31 UTC
d8d653c bpo-38185: Fixed case-insensitive string comparison in sqlite3.Row indexing. (GH-16190) (cherry picked from commit f669581a9527afb0d2325f9845a86715c0ba365d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 17 September 2019, 06:39:11 UTC
73ccc33 bpo-35379: When exiting IDLE, catch any AttributeError. (GH-16212) One happens when EditorWindow.close is called twice. Printing a traceback, when IDLE is run from a terminal, is useless and annoying. (cherry picked from commit dfd34a9cd58e8150c324190f746de919e140abe8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 17 September 2019, 06:23:12 UTC
f04299d bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155) (cherry picked from commit 8debfa50407107ff2329d01081cdc12d359f1d12) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 17 September 2019, 06:14:20 UTC
d90bb23 Doc: Add list(dict) in stdtypes library (GH-16209) (GH-16210) (cherry picked from commit 63dedef48bba9d54f13b958237696505fa665796) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> 17 September 2019, 05:05:33 UTC
ad845be bpo-38183: Test_idle ignores user config directory GH-16198) It no longer tries to create or access .idlerc or any files within. Users must run IDLE to discover problems with saving settings. (cherry picked from commit 0048afc16a7e7301d5c565237db271505e5fbed9) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 17 September 2019, 03:32:55 UTC
7076764 bpo-28556: Update the opening note in typing docs (GH-16204) This PR replaces the old note mentioning that `typing` is a provisional module with a new one mentioning types are not enforced at runtime. I am not sure if there was any official announcement about making `typing` non-provisional, but _de-facto_ no new features were added during Python 3.7, and no backwards incompatible changes were made except for few small things that were considered bugs. (cherry picked from commit 81528ba2e81c39f4d6bca5b785e818c7d08b8501) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com> 16 September 2019, 22:11:10 UTC
1ecc75a bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140) ``OPENSSL_VERSION_1_1`` was never defined in ``_hashopenssl.c``. https://bugs.python.org/issue33936 (cherry picked from commit 724f1a57231f9287c37255adf0e4364d12cf693d) Co-authored-by: Christian Heimes <christian@python.org> 16 September 2019, 19:48:03 UTC
917c622 Doc: Fix Wikipedia link for functools.lru_cache (GH-16183) (cherry picked from commit 336b3064d8981bc7f76c5cc6f6a0527df69771d6) Co-authored-by: amist <amistern0@gmail.com> 16 September 2019, 18:55:04 UTC
cc8edfb bpo-38100: Fix spelling error in unittest.mock code (GH-16168) (cherry picked from commit a9187c31185fe7ea47271839898416400cc3d976) Co-authored-by: marcoramirezmx <55331462+marcoramirezmx@users.noreply.github.com> 16 September 2019, 16:52:45 UTC
9dc381c Doc: Add link of GNU Readline library to interpreter tutorial (GH-16152) (GH-16189) (cherry picked from commit f18242be16714da2cfe013dbadfaf2e31d971562) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> 16 September 2019, 16:30:04 UTC
4924d55 bpo-38081: Add more non-fatal error codes for ntpath.realpath (GH-16156) (cherry picked from commit 89b8933bb537179f81003928786c5cc6183af591) Co-authored-by: Steve Dower <steve.dower@python.org> 16 September 2019, 14:43:36 UTC
26729ce bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184) (cherry picked from commit 3ab73f6bbf4ff66e7ace3c4eab25461b5c7d71d4) Co-authored-by: Steve Dower <steve.dower@python.org> 16 September 2019, 14:40:19 UTC
0067fc2 bpo-38153: detect shake independently from sha3 (GH-16143) XOF digests (SHAKE) are not available in OpenSSL 1.1.0 but SHA3 fixed-length digests are. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit eb2b0c694aef6122fdf95015abb24e0d095b6401) Co-authored-by: Christian Heimes <christian@python.org> 16 September 2019, 12:28:32 UTC
07186c3 bpo-33095: Add reference to isolated mode in -m and script option (GH-7764) Attempt to make isolated mode easier to discover via additional inline documentation. Co-Authored-By: Julien Palard <julien@palard.fr> (cherry picked from commit bdd6945d4dbd1fe6a7fcff95f7d6908db7d791a1) Co-authored-by: Xtreak <tir.karthi@gmail.com> 16 September 2019, 12:21:03 UTC
e8d7fa2 [3.8] bpo-38153: Normalize hashlib algorithm names (GH-16083) (GH-16144) Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 995b5d38e7cc24cac3de8dfd516115f86b0bcf80) Co-authored-by: Christian Heimes <christian@python.org> 16 September 2019, 12:08:55 UTC
817227e Doc: remove duplicate word in controlflow tutorial (GH-16163) (cherry picked from commit b7af4e75657e6478920d00260c48a1a3020002fc) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> 16 September 2019, 07:13:14 UTC
322309e [3.8] bpo-38168: Fix a possbile refleak in setint() of mmapmodule.c (GH-16136) (GH-16174) (cherry picked from commit 56a45142e70a1ccf3233d43cb60c47255252e89a) Co-authored-by: Hai Shi <shihai1992@gmail.com> https://bugs.python.org/issue38168 Automerge-Triggered-By: @zhangyangyu 16 September 2019, 06:26:57 UTC
346b7c9 bpo-38117: Updated OpenSSL to 1.1.1d in macOS installer. (GH-16170) (cherry picked from commit 24d1597e430498ebe2d3d18fba2cacb3957b494d) Co-authored-by: Ned Deily <nad@python.org> 16 September 2019, 02:57:28 UTC
1cd6e92 bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159) https://bugs.python.org/issue38178 (cherry picked from commit c717c73fa33a2f3591442059eaf6e7a673e2c725) Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com> 15 September 2019, 17:13:34 UTC
d6fdfc8 bpo-37798: Prevent undefined behavior in direct calls to the C helper function. (GH-16149) (GH-16160) (cherry picked from commit 6e27a0d77520bf2c4412e367496212510f81b983) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 15 September 2019, 17:04:00 UTC
b65be6c bpo-38158: Removing nonexistant member "doc" from PyType_Spec documentation (GH-16142) (GH-16154) (cherry picked from commit 8b31a11a698cb5aa9b439b349c8de4e388846f73) Co-authored-by: t k <tahia.khan@utoronto.ca> 15 September 2019, 07:00:44 UTC
4a71df8 bpo-37635: Update arg name for seek() in IO tutorial (GH-16147) Typically, the second positional argument for ``seek()`` is *whence*. That is the POSIX standard name (http://man7.org/linux/man-pages/man3/lseek.3p.html) and the name listed in the documentation for ``io`` module (https://docs.python.org/3/library/io.htmlGH-io.IOBase.seek). The tutorial for IO is the only location where the second positional argument for ``seek()`` is referred to as *from_what*. I suspect this was created at an early point in Python's history, and was never updated (as this section predates the GitHub repository): ``` $ git grep "from_what" Doc/tutorial/inputoutput.rst:To change the file object's position, use ``f.seek(offset, from_what)``. The position is computed Doc/tutorial/inputoutput.rst:the *from_what* argument. A *from_what* value of 0 measures from the beginning Doc/tutorial/inputoutput.rst:the reference point. *from_what* can be omitted and defaults to 0, using the ``` For consistency, I am suggesting that the tutorial be updated to use the same argument name as the IO documentation and POSIX standard for ``seek()``, particularly since this is the only location where *from_what* is being used. Note: In the POSIX standard, *whence* is technically the third positional argument, but the first argument *fildes* (file descriptor) is implicit in Python. https://bugs.python.org/issue37635 (cherry picked from commit ff603f6c3d3dc0e9ea8c1c51ce907c4821f42c54) Co-authored-by: Kyle Stanley <aeros167@gmail.com> 14 September 2019, 20:47:31 UTC
f37a983 [3.8] bpo-38005: Fixed comparing and creating of InterpreterID and ChannelID. (GH-15652) (GH-16145) * Fix a crash in comparing with float (and maybe other crashes). * They are now never equal to strings and non-integer numbers. * Comparison with a large number no longer raises OverflowError. * Arbitrary exceptions no longer silenced in constructors and comparisons. * TypeError raised in the constructor contains now the name of the type. * Accept only ChannelID and int-like objects in channel functions. * Accept only InterpreterId, int-like objects and str in the InterpreterId constructor. * Accept int-like objects, not just int in interpreter related functions. (cherry picked from commit bf169915ecdd42329726104278eb723a7dda2736) 14 September 2019, 16:36:19 UTC
d322abb [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. (cherry picked from commit 279f44678c8b84a183f9eeb85e0b086228154497) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 14 September 2019, 10:31:50 UTC
66da347 bpo-37953: Fix deprecation warnings in test_typing (GH-16133) self.assertEquals() is deprecated. ``` ./python -We -m test test_typing Run tests sequentially 0:00:00 load avg: 0.23 [1/1] test_typing test test_typing failed -- Traceback (most recent call last): File "/home/lubuntu2/cpython/Lib/test/test_typing.py", line 2382, in test_forward_equality_gth self.assertEquals(Union[c1, c1_gth], Union[c1]) File "/home/lubuntu2/cpython/Lib/unittest/case.py", line 1390, in deprecated_func warnings.warn( DeprecationWarning: Please use assertEqual instead. test_typing failed == Tests result: FAILURE == 1 test failed: test_typing Total duration: 140 ms Tests result: FAILURE ``` https://bugs.python.org/issue37953 (cherry picked from commit d057b896f97e6d7447b9bf9246770c41cf205299) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 14 September 2019, 08:02:19 UTC
f05d39d [3.8] Doc: Fix link to window.getch in curses documentation (GH-16132) (GH-16135) (cherry picked from commit a26ace19bddea2d7a999a6de8286b3f27b132f35) Co-authored-by: Anthony Sottile <asottile@umich.edu> 14 September 2019, 06:25:10 UTC
e91edfe bpo-37953: Fix ForwardRef hash and equality checks (GH-15400) Ideally if we stick a ForwardRef in a dictionary we would like to reliably be able to get it out again. https://bugs.python.org/issue37953 (cherry picked from commit e082e7cbe4a934b86f7a07354d97d4e14a9dd46a) Co-authored-by: plokmijnuhby <39633434+plokmijnuhby@users.noreply.github.com> 13 September 2019, 20:00:39 UTC
cd85200 Fix typo in test_api.py. (GH-16119) (cherry picked from commit 0bc17ea2f5966f429b5b8d6b4ccb9c01f1f610d0) Co-authored-by: Benjamin Peterson <benjamin@python.org> 13 September 2019, 17:49:09 UTC
cf25765 bpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108) (GH-16113) https://bugs.python.org/issue34706 Specifically in the case of a class that does not override its constructor signature inherited from object. These are Buck Evan @bukzor's changes cherrypicked from GH-9344. (cherry picked from commit 5b9ff7a0dcb16d6f5c3cd4f1f52e0ca6a4bde586) Co-authored-by: Gregory P. Smith <greg@krypto.org> 13 September 2019, 17:42:35 UTC
1087383 Doc: fcntl.lockf() is more powerful than written (GH-6750) (cherry picked from commit 77cd0ceab2f6c1696fb1d31115c2f880b2e21934) Co-authored-by: Eric O. LEBIGOT (EOL) <lebigot@users.noreply.github.com> 13 September 2019, 17:39:42 UTC
e6b14c0 bpo-32790: Add info about alt format using GH- for 'g' in chart (GH-6624) (cherry picked from commit d44542f9a231bf725ecd82eb640a672c759a8227) Co-authored-by: bchhabra2490 <bchhabra2490@gmail.com> 13 September 2019, 17:28:46 UTC
53ff2ca [3.8] bpo-38150: Fix refleak in the finalizer of a _testcapimodule type (GH-16115) (GH-16118) The PyLong created in the finalizer was not being cleaned up https://bugs.python.org/issue38150 Automerge-Triggered-By: @matrixise (cherry picked from commit a67ac2f2d9550e5a36d28f9b6eeacf6575dda2d5) Co-authored-by: Eddie Elizondo <eelizondo@fb.com> 13 September 2019, 17:10:53 UTC
436b429 bpo-38092: Reduce overhead when using multiprocessing in a Windows virtual environment (GH-16098) https://bugs.python.org/issue38092 (cherry picked from commit f2b7556ef851ac85e7cbf189d1b29fdeb9539b88) Co-authored-by: Steve Dower <steve.dower@python.org> 13 September 2019, 16:59:11 UTC
83c21fd bpo-37199: Replace the early returns added in c2cda63. (GH-14535) (cherry picked from commit 81319a81b2a3f42fe1047c2e6f5fd958faab6cdb) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 13 September 2019, 16:12:33 UTC
97d7ba4 Run autoreconf. (GH-16106) (cherry picked from commit f3095b0b58ad9d59cf221bb6498f5aa673c0b25a) Co-authored-by: Benjamin Peterson <benjamin@python.org> 13 September 2019, 14:50:43 UTC
590ed09 bpo-25068: urllib.request.ProxyHandler now lowercases the dict keys (GH-13489) (cherry picked from commit b761e3aed1fbada4572a776f6a0d3c4be491d595) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 13 September 2019, 14:25:51 UTC
bd2e7cc closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998) (cherry picked from commit 0519d497b04b252f50dfff9101fb7f4b9e33f1c4) Co-authored-by: Doyle Rowland <doyle.rowland@reliaqual.com> 13 September 2019, 13:57:45 UTC
c27bcc3 bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. (GH-13765) (cherry picked from commit 9585f46b97931d2640c3343dfe03aed15beb9fea) Co-authored-by: Windson yang <wiwindson@outlook.com> 13 September 2019, 13:43:34 UTC
6638c92 [3.8] bpo-38148: Add slots to asyncio transports (GH-16077) (GH-16093) * bpo-38148: Add slots to asyncio transports * Update Misc/NEWS.d/next/Library/2019-09-13-08-55-43.bpo-38148.Lnww6D.rst Co-Authored-By: Kyle Stanley <aeros167@gmail.com> (cherry picked from commit 9eb35ab0d71a6bd680e84fa0f828cb634e72b681) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 13 September 2019, 13:14:55 UTC
4556b1d bpo-29986: Doc: Delete tip to raise TypeError from tp_richcompare. (GH-16095) (cherry picked from commit 375a3e2bdbeb4dce69aba4b5bc90f55fe27e81b4) Co-authored-by: Julien Palard <julien@palard.fr> 13 September 2019, 13:14:42 UTC
60d5e2c Doc: Improve consistency of os.path.normcase with other os.path functions (GH-14004) (cherry picked from commit 53f78ec9e181f544b1a4575f32d42e296e05e4b4) Co-authored-by: Kexuan Sun <me@kianasun.com> 13 September 2019, 13:07:48 UTC
44cb89a bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921) Handle time comparison for cookies with `expires` attribute when `CookieJar.make_cookies` is called. Co-authored-by: Demian Brecht <demianbrecht@gmail.com> https://bugs.python.org/issue12144 Automerge-Triggered-By: @asvetlov (cherry picked from commit bb41147eab15a2958f4ad38261e5bf608f6ace1b) Co-authored-by: Xtreak <tir.karthi@gmail.com> 13 September 2019, 11:47:51 UTC
b9bfe14 bpo-36889: Document Stream class and add docstrings (GH-14488) * This just copies the docs from `StreamWriter` and `StreamReader`. * Add docstring for asyncio functions. https://bugs.python.org/issue36889 Automerge-Triggered-By: @asvetlov (cherry picked from commit d31b31516c71890e8735606aec1dbf2bfb8fd6be) Co-authored-by: Xtreak <tir.karthi@gmail.com> 13 September 2019, 11:23:43 UTC
52c99ae Fix the ImportWarning regarding __spec__ and __package__ being None (GH-16003) (cherry picked from commit 6e1a30b15e73ebc82e6790495fd54cc8971723ec) Co-authored-by: Xtreak <tir.karthi@gmail.com> 13 September 2019, 10:53:22 UTC
8750dfe bpo-37785: Fix xgettext warning in argparse (GH-15161) (cherry picked from commit 42671aea2db6cbc54369617da0fd3545048e0a45) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com> 13 September 2019, 09:45:27 UTC
664d56a bpo-38133: Allow py.exe launcher to locate installations from the Microsoft Store (GH-16025) (cherry picked from commit ed93a8852d120c5a3606720edc723bf5aa6a1fc2) Co-authored-by: Steve Dower <steve.dower@python.org> 12 September 2019, 17:36:14 UTC
4145f62 Emphasize the need to always call PySequence_Fast. (GH-11140) (cherry picked from commit 57b7dbc46e71269d855e644d30826d33eedee2a1) Co-authored-by: Matti Picus <matti.picus@gmail.com> 12 September 2019, 16:26:17 UTC
21bfff9 closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193) The "--" should not be included with long options passed to getopt.getopt. Fixes https://bugs.python.org/issue37803 (cherry picked from commit 855df7f273c3988c72f01e51ba57091887ec38b2) Co-authored-by: Daniel Hahler <github@thequod.de> 12 September 2019, 16:05:52 UTC
6dc3e61 bpo-37908: Add an example of ArgumentParser.exit() (GH-15455) Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> (cherry picked from commit b1a2abdb06408ffc4f13d6ff50351ad49c99afc0) Co-authored-by: Hai Shi <shihai1992@gmail.com> 12 September 2019, 15:43:14 UTC
back to top