https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
9cf6752 Python 3.9.0 05 October 2020, 15:07:58 UTC
e8165e7 bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370) (cherry picked from commit 62e40d8450b9c78346ec3617de7fe3f0ad381510) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 04 October 2020, 17:19:18 UTC
c549527 bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332) Fix the compiler warning: format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int` (cherry picked from commit c322948892438a387d752ec18d1eb512699a4d67) Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> 04 October 2020, 17:17:27 UTC
168a838 [3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544) (cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 04 October 2020, 17:12:34 UTC
c26a666 [3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22397) Closes bpo issue 41602. (cherry picked from commit a68a2ad19c891faa891904b3da537911cc77df21) Co-authored-by: Thomas Grainger <tagrain@gmail.com> 04 October 2020, 16:40:36 UTC
bd55c46 bpo-41815: SQLite: segfault if backup called on closed database (GH-22322) GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database Attempting to backup a closed database will trigger segfault: ```python import sqlite3 target = sqlite3.connect(':memory:') source = sqlite3.connect(':memory:') source.close() source.backup(target) ``` (cherry picked from commit bfee9fad84531a471fd7864e88947320669f68e2) Co-authored-by: Peter McCormick <peter@pdmccormick.com> 04 October 2020, 16:36:45 UTC
d636089 Fix a compiler warning in pycore_pylifecycle.h (GH-22331) 04 October 2020, 16:35:07 UTC
df71b65 bpo-41875: Use __builtin_unreachable when possible (GH-22433) (cherry picked from commit 24ba3b0df5e5f2f237d7b23b4017ba12f16320ae) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> 04 October 2020, 16:19:34 UTC
87e94e1 Typo fix - "mesasge" should be "message" (GH-22498) * Correct at 2 places in email module (cherry picked from commit 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a) Co-authored-by: Hansraj Das <raj.das.136@gmail.com> 04 October 2020, 15:33:21 UTC
f093007 [3.9] Remove duplicated words words (GH-22298). (GH-22299) (cherry picked from commit 27201cddf3b25be7df25bbe36966531539757d60) 04 October 2020, 15:32:39 UTC
3d87eee [3.9] Remove duplicated words words (GH-20413). (GH-22296) (cherry picked from commit 1c5d1d7304a119040fd3118128bdb412f0cce6a6) 04 October 2020, 15:32:39 UTC
fd510e3 [doc] Use list[int] instead of List[int] (etc.) in a few more places (GH-22524) This changes a few occurrences left behind by GH-22340. Automerge-Triggered-By: @gvanrossum (cherry picked from commit 7f54e563dc150cd670ca8df678437455c3a7f2cd) Co-authored-by: Andre Delfino <adelfino@gmail.com> 04 October 2020, 15:30:50 UTC
d96078b [doc] Fix link to abc.collections.Iterable (GH-22520) Missed this occurrence before, sorry. Also changed "the PEP" to "PEP". Automerge-Triggered-By: @gvanrossum (cherry picked from commit 3fe614893742faee3c64e6d974e11329a496424f) Co-authored-by: Andre Delfino <adelfino@gmail.com> 04 October 2020, 15:30:49 UTC
faaa303 [3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418) (cherry picked from commit 52301312bb9de2299b0c42468fd1936d869e651c) Co-authored-by: Ram Rachum <ram@rachum.com> 04 October 2020, 15:30:49 UTC
5533c49 [3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554) (cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf) Co-authored-by: Ram Rachum <ram@rachum.com> 04 October 2020, 15:30:49 UTC
fd3d00a [doc] Fix link to abc.collections.Iterable (GH-22502) Automerge-Triggered-By: @gvanrossum (cherry picked from commit d4b9edd5052a2d9ae3d2be69975cc933afb37737) Co-authored-by: Andre Delfino <adelfino@gmail.com> 04 October 2020, 15:30:49 UTC
95de362 bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291) (cherry picked from commit 20ce62f00957d11f24f6449cd5c0ef5dd67174d4) Co-authored-by: Campbell Barton <ideasman42@gmail.com> 04 October 2020, 15:30:49 UTC
5711c81 Fix grammar in secrets module documentation (GH-22467) From `In particularly,` to `In particular,` (cherry picked from commit 63298930fb531ba2bb4f23bc3b915dbf1e17e9e1) Co-authored-by: Max Smolens <msmolens@users.noreply.github.com> 04 October 2020, 15:30:48 UTC
900b985 [doc] Leverage the fact that the actual types can now be indexed for typing (GH-22340) This shows users that they can use the actual types. Using deprecated types is confusing. This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place. This should be backported to 3.9. Automerge-Triggered-By: @gvanrossum (cherry picked from commit d9ab95ff1fe81efdf70e545d536d9f6927d1ba81) Co-authored-by: Andre Delfino <adelfino@gmail.com> 04 October 2020, 15:30:48 UTC
a5750cf bpo-41858: Clarify line in optparse doc (GH-22407) The existing line is easily read as being incomplete. (cherry picked from commit 00eb063b6600fdb4ba5cfb99da83cc1660ec69bf) Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com> 04 October 2020, 15:30:48 UTC
7e21aab bpo-41844: Add IDLE section to What's New 3.9 (GN-22382) (cherry picked from commit 22b7616f26694ac707fd53ece500febfad665426) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 04 October 2020, 15:30:48 UTC
f8b3c64 bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309) Doc/requirements.txt becomes the reference for packages and package versions needed to build the Python documentation. * Doc/Makefile now uses Doc/requirements.txt * .travis.yml now uses "make env" of Doc/Makefile * Update Sphinx to version 2.4.4 (cherry picked from commit 8394500cca56490cc347604d39ca40abcdce46c3) 04 October 2020, 15:30:48 UTC
e5cc5fd bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) Use an unique identifier for the different grammars documented using the Sphinx productionlist markup. productionlist markups of the same grammar, like "expressions" or "compound statements", use the same identifier "python-grammar". (cherry picked from commit 8af239eacfcf52e4e0e2b0223e7cea4672309483) Co-authored-by: Victor Stinner <vstinner@python.org> 04 October 2020, 15:30:47 UTC
8dd4302 [3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288) (cherry picked from commit a33f2c2bae759fc9d06e1c032fd2026135f2df45) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 October 2020, 15:30:47 UTC
1f7c99c Post 3.9.0rc2 17 September 2020, 08:45:49 UTC
274e9ce Merge tag 'v3.9.0rc2' into 3.9 Python 3.9.0rc2 17 September 2020, 08:45:24 UTC
f76a388 bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998) * When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``. (cherry picked from commit 0b419b791077414bbc011a412698ebb362b63761) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 17 September 2020, 07:57:07 UTC
a9ba8ba [3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282) fix default `_missing_` to return `None` instead of raising a `ValueError` Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com> (cherry picked from commit c95ad7a91fbd7636f33a098d3b39964ab083bf49) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 17 September 2020, 00:37:51 UTC
4465df6 _auto_called cleanup (GH-22285) (cherry picked from commit fc23a9483ef0d7c98bea9f82392377d0b6ef7b18) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 17 September 2020, 00:27:09 UTC
2bd31b5 Python 3.9.0rc2 16 September 2020, 21:23:13 UTC
48f9925 bpo-41517: do not allow Enums to be extended (GH-22271) fix bug that let Enums be extended via multiple inheritance (cherry picked from commit 3064dbf5df1021e85b507366a7ea448c8895efe7) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 16 September 2020, 14:35:14 UTC
6a39888 bpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128) I just realized that my recent PR with sendfile on Solaris ([PR 22040](https://github.com/python/cpython/pull/22040)) has broken error handling. Sorry for that, this simple followup fixes that. Automerge-Triggered-By: @1st1 (cherry picked from commit fa8c9e70104b0aef966a518eb3a80a4881906ae0) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com> 16 September 2020, 12:25:09 UTC
7e356f1 [3.9] bpo-41687: Fix sendfile implementation to work with Solaris (GH-22040) (GH-22273) (cherry picked from commit 8c0be6fd9101746235b63ddfb84106d1e9ca286b) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com> 16 September 2020, 11:52:26 UTC
a467706 [3.9] bpo-41789: honor object overrides in Enum classes (GH-22250) (GH-22272) EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that. 16 September 2020, 10:58:33 UTC
95b81e2 bpo-39587: Enum - use correct mixed-in data type (GH-22263) (GH-22266) (cherry picked from commit bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1) 15 September 2020, 23:59:48 UTC
49917d5 bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262) Automerge-Triggered-By: @gvanrossum (cherry picked from commit 2e87774df1a0eaf2a1fe8cc4d958df60f7125b6e) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> 15 September 2020, 23:37:13 UTC
0374883 Improve the description of difflib in the documentation (GH-22253) (#22261) From "can produce difference information in various formats ..." to " can produce information about file differences in various formats ..." Automerge-Triggered-By: @Mariatta (cherry picked from commit 5531269f698f789d1247123fd82681f7a455f66e) Co-authored-by: Mandeep <mandeep052@gmail.com> 15 September 2020, 19:45:05 UTC
55e0836 [3.9] bpo-41631: _ast module uses again a global state (GH-21961) (GH-22258) Partially revert commit ac46eb4ad6662cf6d771b20d8963658b2186c48c: "bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)". Using a module state per module instance is causing subtle practical problems. For example, the Mercurial project replaces the __import__() function to implement lazy import, whereas Python expected that "import _ast" always return a fully initialized _ast module. Add _PyAST_Fini() to clear the state at exit. The _ast module has no state (set _astmodule.m_size to 0). Remove astmodule_traverse(), astmodule_clear() and astmodule_free() functions.. (cherry picked from commit e5fbe0cbd4be99ced5f000ad382208ad2a561c90) Co-authored-by: Victor Stinner <vstinner@python.org> 15 September 2020, 18:32:56 UTC
0cc037f bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22255) Revise example of "continue" in the tutorial documentation (cherry picked from commit 7bcc6456ad4704da9b287c8045768fa53961adc5) Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com> Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com> 15 September 2020, 13:56:28 UTC
b502c76 bpo-40721: add note about enum member name case (GH-22231) * UPPER_CASE preferred as enum members are constants (cherry picked from commit 542e1df2b018ee7068dba8076f2d6e84efd6e144) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 14 September 2020, 20:49:29 UTC
bf7d4d0 bpo-39883: Update macOS installer copy of LICENSE. (GH-22235) (GH-22236) (cherry picked from commit 7dbbea75cec27a48b68cc07c23f3f317cacf4a16) Co-authored-by: Ned Deily <nad@python.org> 14 September 2020, 05:59:58 UTC
b3d11ab [3.9] bpo-41778: Change a punctuation on documentation. (GH-22229) (GH-22232) On this paragrapah the clarification about IIS7 seems there's not connection beacuase is in other sentence. Move the punctuation to connect both the last sentence with the information in the parenthesis. I think the NEWS is not necessary here. Automerge-Triggered-By: @ericvsmith (cherry picked from commit 94bfdee25db31941b187591ae5ae9bf3ed431090) Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com> 13 September 2020, 21:38:01 UTC
c978be2 bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) (GH-22225) (cherry picked from commit b48389d95093c3f912549add8da339edc164bf0d) 13 September 2020, 18:20:38 UTC
98f6e67 bpo-41672: Fix type mismatches in imaplib docs (GH-22207) (cherry picked from commit c75330605d4795850ec74fdc4d69aa5d92f76c00) Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com> 12 September 2020, 08:14:37 UTC
7dfcc8e bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197) Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed. (cherry picked from commit 1b0f0e3d7d03155da1cf9769a847874d559e57e3) Co-authored-by: Victor Stinner <vstinner@python.org> 12 September 2020, 07:11:38 UTC
34e3c75 bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206) Argument script_exec_args is usually an absolute file name, but twice has form ['-m', 'module_name']. (cherry picked from commit 7e711ead26fea6465e0ef2e3b8880b57ba8fc129) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 12 September 2020, 06:45:34 UTC
c2577b9 bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146) The problems occured with a repository build on machine with freshly updated Windows 10 Pro. (cherry picked from commit 31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 12 September 2020, 06:18:59 UTC
c97e402 [doc] struct: update note about network byte order form to be more helpful (GH-22201) Update the sentence to provide some context on why network byte order is defined as big endian. (cherry picked from commit fb2718720346c8c7a0ad2d7477f20e9a5524ea0c) Co-authored-by: Stargirl Flowers <theaflowers@google.com> 11 September 2020, 15:35:23 UTC
7af6bf4 Doc: Fix alphabetical ordering of removeprefix/suffix. (GH-22194) (cherry picked from commit 3304cbd990f06b72480a6dc8f6f4fe1a1376dde7) Co-authored-by: Benjamin Peterson <benjamin@python.org> 11 September 2020, 00:13:56 UTC
1b4bdb4 bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) The new link responds much faster and begins with a short explanation of the status of the doc. (cherry picked from commit 06d0b8b67e8aebd8fe4c34e97d6915c11f4afa30) Co-authored-by: Mark Roseman <mark@markroseman.com> 10 September 2020, 20:19:29 UTC
b86e626 [doc] Remove superfluous comment about equal in f-strings (GH-22006) Automerge-Triggered-By: @kushaldas (cherry picked from commit 788b79fa7b6184221e68d4f1a3fbe0b3270693f6) Co-authored-by: Andre Delfino <adelfino@gmail.com> 10 September 2020, 06:48:54 UTC
5f76d72 Update idlelib/help.html to current IDLE doc (GH-22181) (cherry picked from commit 471247150e9707e583297ac6b4edff978efd8941) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 09 September 2020, 23:16:05 UTC
41dbd6e Add missing colon to IDLE doc markup (GH-22007) (cherry picked from commit 7a797a3967fdfedbaf49fd1f140ee670d7db40ad) Co-authored-by: Andre Delfino <adelfino@gmail.com> 09 September 2020, 22:29:51 UTC
46bc21e [3.9] bpo-41688: Document bug in **= dispatching in the language data… (GH-22172) I tossed in a "This bug is fixed in Python 3.10" sentence but I'm not sure if that's appropriate to have here. 09 September 2020, 18:01:38 UTC
5dd8b3d Fix incorrect bpo number in change notes. (GH-22151) (#22174) 09 September 2020, 16:33:21 UTC
014b4ef Fixes dead links to Django's logging config docs (GH-20823) (GH-22170) (cherry picked from commit 714217f9561507bbc7218a02089d0e1da0239372) 09 September 2020, 13:45:08 UTC
b2376f9 Fix compiler warnings in init_dump_ascii_wstr() (GH-22150) Fix GCC 9.3 (using -O3) warnings on x86: initconfig.c: In function ‘init_dump_ascii_wstr’: initconfig.c:2679:34: warning: format ‘%lc’ expects argument of type ‘wint_t’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2679 | PySys_WriteStderr("%lc", ch); initconfig.c:2682:38: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2682 | PySys_WriteStderr("\\x%02x", ch); initconfig.c:2686:38: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2686 | PySys_WriteStderr("\\U%08x", ch); initconfig.c:2690:38: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2690 | PySys_WriteStderr("\\u%04x", ch); (cherry picked from commit 640e8e1d5f61d5868453d992da04bf4741327748) Co-authored-by: Victor Stinner <vstinner@python.org> 09 September 2020, 10:31:25 UTC
11a82c7 bpo-41525: Make the Python program help ASCII-only (GH-21836) (cherry picked from commit 58de1dd6a8677bd213802c19204b827cb7134695) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 09 September 2020, 00:47:53 UTC
fd1c725 [doc] Fix padding in timeit (GH-22152) Compare -p and -u options help in rendered output to see the difference. (cherry picked from commit 594f0ce73be807c0fecf958dc0644fa37983f5fe) Co-authored-by: Andre Delfino <adelfino@gmail.com> 08 September 2020, 23:56:02 UTC
6e770fc [3.9] Fix typo in typing.py (GH-22121) (GH-22156) This is a trivial PR to fix a typo in a docstring in typing.py. From reverences -> references (cherry picked from commit 84ef33c5117acd9867781135a9aeb62052432e8a) Co-authored-by: Graham Bleaney <gbleaney@gmail.com> 08 September 2020, 23:36:07 UTC
1671b0e bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092) (cherry picked from commit fd4cafd4700dc03cb05fc2e5263c2666d785d6e3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 07 September 2020, 16:30:21 UTC
c73ee5a bpo-41401: Fix test_fspath_support in test_io. (GH-21640) (GH-22133) The error is exposed on non-UTF-8 locales. (cherry picked from commit 67987acd5dc9776f55f4e139e2b3d9e7a6434d9f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 07 September 2020, 14:45:57 UTC
b6d2acb [3.9] closes bpo-41723: Fix an error in the py_compile documentation. (GH-22118) (cherry picked from commit 5371a46) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 06 September 2020, 03:54:46 UTC
e4b359d [3.9] [doc] Fix padding in some typing definitions (GH-22114) (GH-22115) Automerge-Triggered-By: @gvanrossum (cherry picked from commit 2623868ede4ef3c848fc83a9b1e19e0d031dee1d) Co-authored-by: Andre Delfino <adelfino@gmail.com> 06 September 2020, 02:54:12 UTC
a708ae7 bpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363) (GH-22109) (cherry picked from commit c2c1f1f906cdeb40576880d4b6a4f8fcbc016eb8) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 05 September 2020, 15:37:04 UTC
21100ab Remove unnecessary grammar decorations and change header (GH-20819) (GH-22101) (cherry picked from commit b4282dd15079ed46edc9d382b21422320a0af94f) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 04 September 2020, 23:40:54 UTC
d64d78b bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850) (GH-22107) (cherry picked from commit c51db0ea40ddabaf5f771ea633b37fcf4c90a495) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 04 September 2020, 23:38:50 UTC
242eac1 On path with known exact float, extract the double with the fast macro. (GH-21072) (cherry picked from commit 930f4518aea7f3f0f914ce93c3fb92831a7e1d2a) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 04 September 2020, 23:12:48 UTC
e92219d bpo-29590: fix stack trace for gen.throw() with yield from (GH-19896) * Add failing test. * bpo-29590: fix stack trace for gen.throw() with yield from (GH-NNNN) When gen.throw() is called on a generator after a "yield from", the intermediate stack trace entries are lost. This commit fixes that. (cherry picked from commit 8b33961e4bc4020d8b2d5b949ad9d5c669300e89) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com> 04 September 2020, 23:07:18 UTC
106c1df closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847) Free the stack allocated in va_build_stack if do_mkstack fails and the stack is not a small_stack (cherry picked from commit 75c80b0bda89debf312f075716b8c467d411f90e) Co-authored-by: Tony Solomonik <tony.solomonik@gmail.com> 04 September 2020, 22:56:04 UTC
8ed1c17 Fix typo in message from assert statement (GH-21283) The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition. (cherry picked from commit 99c0ee3c893bb99fd98a97084fc386ce2911eb64) Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com> 04 September 2020, 22:55:05 UTC
fbb9ee0 [3.9] bpo-38787: Clarify docs for PyType_GetModule and warn against common mistake (GH-20215) (GH-21984) (cherry picked from commit d9a966ae08258da2ce2a432c943d8194760f09c4) Co-authored-by: Petr Viktorin <encukou@gmail.com> Automerge-Triggered-By: @Mariatta 04 September 2020, 22:32:28 UTC
bf8bf1c [3.9] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) (GH-22009) I added some information to the `Concurrency and Multithreading` section of the `Developing with asyncio` guide. This is all information that would have helped me when I started using asyncio. I incorrectly assumed that `loop.call_soon_threadsafe()` and `run_coroutine_threadsafe()` could be called from a thread in a process separate from the one that the event loop is running in. Explicitly stating that this will not work will probably help some people starting out with asyncio in the future. I also added references to some other functions that can be used for inter-process communication without blocking the event loop. The section already mentions running blocking code in a ThreadPoolExecutor, but I think listing these other options in this section will also be helpful. (cherry picked from commit c68c5af2dc5ada8875a662f2beaac6234eae2a5a) Co-authored-by: Roger Iyengar <ri@rogeriyengar.com> 04 September 2020, 22:31:06 UTC
bd078df [3.9] bpo-40486: Specify what happens if directory content change diring iteration (GH-22025) (GH-22093) (cherry picked from commit 306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 September 2020, 22:29:06 UTC
78ef1b6 [3.9] Fix error in argparse documentation example (GH-17399) (GH-21992) Automerge-Triggered-By: @rhettinger (cherry picked from commit 8784d3300ec4ffc58bc0e9ab3cff9a24187dbe4c) Co-authored-by: SarahPythonista <4283226+SarahPythonista@users.noreply.github.com> 04 September 2020, 22:26:22 UTC
672d8b9 [3.9] [doc] Fix a typo in the graphlib docs (GH-22030) (GH-22076) (cherry picked from commit 851606007665dc30089e5e1953208c5428e455b1) Co-authored-by: Mario Šaško <mariosasko777@gmail.com> 04 September 2020, 22:25:50 UTC
6386e86 bpo-38585: Remove references to defusedexpat (GH-22095) defusedexpat is not maintained. (cherry picked from commit 51b84f8e96a441c498210f827c1297ee4973525f) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 04 September 2020, 21:17:45 UTC
fb050d0 bpo-41721: Add xlc options (GH-22097) (cherry picked from commit 84a7917b4c9afec07575065cffa143b91fe98c14) Authored-by: Stefan Krah <skrah@bytereef.org> 04 September 2020, 21:02:57 UTC
8f13ff9 bpo-41700: Skip test if the locale is not supported (GH-22081) (GH-22085) (cherry picked from commit 54a66ade2067c373d31003ad260e1b7d14c81564) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> 04 September 2020, 09:55:25 UTC
8d68e59 bpo-39010: Improve test shutdown (GH-22066) (#22082) Simply closing the event loop isn't enough to avoid warnings. If we don't also shut down the event loop's default executor, it sometimes logs a "dangling thread" warning. Follow-up to GH-22017 (cherry picked from commit be435ae2b064dc64f04475bec632862e1dbf605f) Co-authored-by: Ben Darnell <ben@bendarnell.com> Co-authored-by: Ben Darnell <ben@bendarnell.com> 03 September 2020, 20:54:43 UTC
a268005 bpo-41696: Fix handling of debug mode in asyncio.run (GH-22069) (#22071) * bpo-41696: Fix handling of debug mode in asyncio.run This allows PYTHONASYNCIODEBUG or -X dev to enable asyncio debug mode when using asyncio.run * 📜🤖 Added by blurb_it. Co-authored-by: hauntsaninja <> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 0770ad948cb6d9f7f6c4002efd83e27c27069808) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 03 September 2020, 20:54:09 UTC
49571c0 bpo-39010: Fix errors logged on proactor loop restart (GH-22017) (#22034) Stopping and restarting a proactor event loop on windows can lead to spurious errors logged (ConnectionResetError while reading from the self pipe). This fixes the issue by ensuring that we don't attempt to start multiple copies of the self-pipe reading loop. (cherry picked from commit ea5a6363c3f8cc90b7c0cc573922b10f296073b6) Co-authored-by: Ben Darnell <ben@bendarnell.com> Co-authored-by: Ben Darnell <ben@bendarnell.com> 03 September 2020, 19:38:29 UTC
270e249 [3.9] Fix 'gather' rules in the python parser generator (GH-22021) (GH-22080) Currently, empty sequences in gather rules make the conditional for gather rules fail as empty sequences evaluate as "False". We need to explicitly check for "None" (the failure condition) to avoid false negatives. (cherry picked from commit e55a0e9) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 03 September 2020, 15:35:36 UTC
be17295 [3.9] bpo-41697: Correctly handle KeywordOrStarred when parsing arguments in the parser (GH-22077) (GH-22079) (cherry picked from commit 315a61f7a9418d904e0eea14b1f054fac3a90e9f) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 03 September 2020, 15:35:17 UTC
a5d0232 bpo-39883: Use BSD0 license for code in docs (GH-17635) (GH-22073) The PSF board approved this use. (cherry picked from commit e223d06a8b2067c68e9f97c4628c2b0f056dcae6) Co-authored-by: Todd <toddrjen@gmail.com> 03 September 2020, 14:40:10 UTC
8de34cd [3.9] bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053) (GH-22067) This program can segfault the parser by stack overflow: ``` import ast code = "f(" + ",".join(['a' for _ in range(100000)]) + ")" print("Ready!") ast.parse(code) ``` the reason is that the rule for arguments has a simple recursion when collecting args: args[expr_ty]: [...] | a=named_expression b=[',' c=args { c }] { [...] }. (cherry picked from commit 4a97b1517a6b5ff22e2984b677a680b07ff0ce11) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 02 September 2020, 20:30:51 UTC
a763ee3 [3.9] bpo-39349: Add cancel_futures to Executor.shutdown base class (GH-22023) (GH-22048) * Add cancel_futures parameter to the Executor base class, since it was missed in the original PR (https://github.com/python/cpython/pull/18057) that added cancel_futures. (cherry picked from commit 17dc1b7) 02 September 2020, 19:28:28 UTC
27183f4 Fix invalid escape sequences in the peg_highlight Sphinx extension (GH-22047) (GH-22065) (cherry picked from commit 5a4a963a6c798fa9207a9998618a9c0ec3b6b6d7) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 02 September 2020, 16:43:43 UTC
bafaf07 [doc] Remove references to PyChecker. (GH-22054) (cherry picked from commit dea82b67315a6b873f7d4e558dd00a851137dcbb) Co-authored-by: Andre Delfino <adelfino@gmail.com> 02 September 2020, 13:29:33 UTC
e2e0338 Remove reference to Boa Constructor. (GH-22056) (cherry picked from commit 1d25f5bf7b795b47e753aca56d7579d4ad7ee468) Co-authored-by: Andre Delfino <adelfino@gmail.com> 02 September 2020, 13:29:16 UTC
63fa113 Fixed mistake in test for f-string error description (GH-22036) (GH-22059) (GH-22060) (cherry picked from commit 749ed85e4446f548e22934931241f644a33d81ce) Co-authored-by: han-solo <hanish0019@gmail.com> Co-authored-by: han-solo <hanish0019@gmail.com> 02 September 2020, 12:13:39 UTC
e2977f6 Note the buffer slots can be set with PyType_Spec with the unlimited API. (GH-22052) Follow up to f7c4e236429606e1c982cacf24e10fc86ef4462f. (cherry picked from commit 700fa1b836f315048e8b89ede5018a0c0a213946) Co-authored-by: Benjamin Peterson <benjamin@python.org> 02 September 2020, 03:18:21 UTC
d14775d [3.9] bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020) (GH-22045) When allocating MemoryError classes, there is some logic to use pre-allocated instances in a freelist only if the type that is being allocated is not a subclass of MemoryError. Unfortunately in the destructor this logic is not present so the freelist is altered even with subclasses of MemoryError.. (cherry picked from commit 9b648a95ccb4c3b14f1e87158f5c9f5dbb2f62c0) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 01 September 2020, 20:40:57 UTC
4217b3c bpo-41617: Fix pycore_byteswap.h to support clang 3.0 (GH-22042) (GH-22044) __builtin_bswap16() is not available in LLVM clang 3.0. (cherry picked from commit e6905e4c82cc05897dc1bf5ab2b5b94b2b043a7f) 01 September 2020, 18:54:37 UTC
c16a2a1 bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036) (GH-22041) * Fixed `f-string/str.format` error description when using two `,` in format specifier. Co-authored-by: millefalcon <hanish0019@hmail.com> (cherry picked from commit 0d6aa7f0ee38eb453bc8f73bf4830e6172be2f35) Co-authored-by: han-solo <hanish0019@gmail.com> Co-authored-by: han-solo <hanish0019@gmail.com> 01 September 2020, 15:45:59 UTC
ca55ecb bpo-41344: Raise ValueError when creating shared memory of size 0 (GH-21556) (GH-22018) (cherry picked from commit 475a5fbb5644ea200c990d85d8c264e78ab6c7ea) Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com> Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com> 30 August 2020, 19:42:22 UTC
901c2ea bpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845) (GH-21978) 30 August 2020, 06:53:09 UTC
6b5e887 bpo-41634: Fix a typo in the curses documentation (GH-21958) (cherry picked from commit 398575c210f79627830c5c470184f54ace950ac6) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 29 August 2020, 22:33:48 UTC
88b86a9 bpo-19521: Fix parallel build race condition on AIX (GH-22001) Patch by Michael Haubenwallner. (cherry picked from commit e6dcd371b2c54a94584dd124e8c592a496d46a47) Co-authored-by: Stefan Krah <skrah@bytereef.org> 29 August 2020, 16:36:40 UTC
c01a7ed [3.9] bpo-41624: fix documentation of typing.Coroutine (GH-21952) (#21982) (cherry picked from commit 8c58d2a) Co-authored-by: MingZhe Hu <humingzhework@163.com> Co-authored-by: MingZhe Hu <humingzhework@163.com> 28 August 2020, 15:06:31 UTC
back to top