summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.9.0v3.9.0Łukasz Langa2020-10-0511-558/+911
|
* bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)Miss Islington (bot)2020-10-042-0/+27
| | | | | (cherry picked from commit 62e40d8450b9c78346ec3617de7fe3f0ad381510) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)Miss Islington (bot)2020-10-041-1/+1
| | | | | | | | 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>
* [3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)Pablo Galindo2020-10-042-17/+14
| | | | | (cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from ↵Łukasz Langa2020-10-043-6/+91
| | | | | | | | pymain_run_module (GH-21956) (#22397) Closes bpo issue 41602. (cherry picked from commit a68a2ad19c891faa891904b3da537911cc77df21) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)Miss Islington (bot)2020-10-043-0/+13
| | | | | | | | | | | | | | | | 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>
* Fix a compiler warning in pycore_pylifecycle.h (GH-22331)Pablo Galindo2020-10-041-1/+1
|
* bpo-41875: Use __builtin_unreachable when possible (GH-22433)Miss Islington (bot)2020-10-042-1/+5
| | | | | (cherry picked from commit 24ba3b0df5e5f2f237d7b23b4017ba12f16320ae) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* Typo fix - "mesasge" should be "message" (GH-22498)Miss Skeleton (bot)2020-10-041-2/+2
| | | | | | * Correct at 2 places in email module (cherry picked from commit 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
* [3.9] Remove duplicated words words (GH-22298). (GH-22299)Serhiy Storchaka2020-10-042-3/+3
| | | | (cherry picked from commit 27201cddf3b25be7df25bbe36966531539757d60)
* [3.9] Remove duplicated words words (GH-20413). (GH-22296)Serhiy Storchaka2020-10-045-5/+5
| | | | (cherry picked from commit 1c5d1d7304a119040fd3118128bdb412f0cce6a6)
* [doc] Use list[int] instead of List[int] (etc.) in a few more places (GH-22524)Miss Skeleton (bot)2020-10-042-8/+8
| | | | | | | | 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>
* [doc] Fix link to abc.collections.Iterable (GH-22520)Miss Skeleton (bot)2020-10-041-2/+2
| | | | | | | | 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>
* [3.9] bpo-41867: List options for timespec in docstrings of isoformat ↵Miss Skeleton (bot)2020-10-042-6/+12
| | | | | | | methods (GH-22418) (cherry picked from commit 52301312bb9de2299b0c42468fd1936d869e651c) Co-authored-by: Ram Rachum <ram@rachum.com>
* [3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths ↵Miss Skeleton (bot)2020-10-042-5/+22
| | | | | | | (GH-20554) (cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf) Co-authored-by: Ram Rachum <ram@rachum.com>
* [doc] Fix link to abc.collections.Iterable (GH-22502)Miss Skeleton (bot)2020-10-041-1/+1
| | | | | | Automerge-Triggered-By: @gvanrossum (cherry picked from commit d4b9edd5052a2d9ae3d2be69975cc933afb37737) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)Miss Islington (bot)2020-10-041-4/+6
| | | | | (cherry picked from commit 20ce62f00957d11f24f6449cd5c0ef5dd67174d4) Co-authored-by: Campbell Barton <ideasman42@gmail.com>
* Fix grammar in secrets module documentation (GH-22467)Miss Islington (bot)2020-10-041-1/+1
| | | | | | From `In particularly,` to `In particular,` (cherry picked from commit 63298930fb531ba2bb4f23bc3b915dbf1e17e9e1) Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
* [doc] Leverage the fact that the actual types can now be indexed for typing ↵Miss Islington (bot)2020-10-042-30/+29
| | | | | | | | | | | | | | (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>
* bpo-41858: Clarify line in optparse doc (GH-22407)Miss Islington (bot)2020-10-041-1/+1
| | | | | | The existing line is easily read as being incomplete. (cherry picked from commit 00eb063b6600fdb4ba5cfb99da83cc1660ec69bf) Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
* bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)Miss Islington (bot)2020-10-041-0/+14
| | | | | (cherry picked from commit 22b7616f26694ac707fd53ece500febfad665426) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)Victor Stinner2020-10-043-8/+12
| | | | | | | | | | 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)
* bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)Miss Islington (bot)2020-10-048-69/+70
| | | | | | | | | | 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>
* [3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)Terry Jan Reedy2020-10-041-0/+5
| | | | | (cherry picked from commit a33f2c2bae759fc9d06e1c032fd2026135f2df45) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Post 3.9.0rc2Łukasz Langa2020-09-171-1/+1
|
* Merge tag 'v3.9.0rc2' into 3.9Łukasz Langa2020-09-1740-95/+409
|\ | | | | | | Python 3.9.0rc2
| * Python 3.9.0rc2v3.9.0rc2Łukasz Langa2020-09-1640-95/+409
| |
* | bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)Miss Islington (bot)2020-09-175-3/+34
| | | | | | | | | | | | | | | | | | * 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>
* | [3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282)Ethan Furman2020-09-174-2/+21
| | | | | | | | | | | | | | 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>
* | _auto_called cleanup (GH-22285)Miss Islington (bot)2020-09-172-1/+12
|/ | | | | (cherry picked from commit fc23a9483ef0d7c98bea9f82392377d0b6ef7b18) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-41517: do not allow Enums to be extended (GH-22271)Miss Islington (bot)2020-09-163-5/+18
| | | | | | fix bug that let Enums be extended via multiple inheritance (cherry picked from commit 3064dbf5df1021e85b507366a7ea448c8895efe7) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128)Miss Islington (bot)2020-09-161-3/+2
| | | | | | | | | | 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>
* [3.9] bpo-41687: Fix sendfile implementation to work with Solaris (GH-22040) ↵Łukasz Langa2020-09-163-0/+26
| | | | | | | (GH-22273) (cherry picked from commit 8c0be6fd9101746235b63ddfb84106d1e9ca286b) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* [3.9] bpo-41789: honor object overrides in Enum classes (GH-22250) (GH-22272)Ethan Furman2020-09-163-1/+14
| | | 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.
* bpo-39587: Enum - use correct mixed-in data type (GH-22263) (GH-22266)Miss Islington (bot)2020-09-153-1/+56
| | | (cherry picked from commit bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1)
* bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262)Miss Islington (bot)2020-09-153-0/+46
| | | | | | Automerge-Triggered-By: @gvanrossum (cherry picked from commit 2e87774df1a0eaf2a1fe8cc4d958df60f7125b6e) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* Improve the description of difflib in the documentation (GH-22253) (#22261)Miss Islington (bot)2020-09-151-2/+2
| | | | | | | | | | 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>
* [3.9] bpo-41631: _ast module uses again a global state (GH-21961) (GH-22258)Pablo Galindo2020-09-157-309/+155
| | | | | | | | | | | | | | | | | | | | 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>
* bpo-41776: Revise example of "continue" in the tutorial documentation ↵Miss Islington (bot)2020-09-151-5/+5
| | | | | | | | | | (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>
* bpo-40721: add note about enum member name case (GH-22231)Miss Islington (bot)2020-09-141-0/+6
| | | | | | * UPPER_CASE preferred as enum members are constants (cherry picked from commit 542e1df2b018ee7068dba8076f2d6e84efd6e144) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-39883: Update macOS installer copy of LICENSE. (GH-22235) (GH-22236)Miss Islington (bot)2020-09-141-3/+24
| | | | | (cherry picked from commit 7dbbea75cec27a48b68cc07c23f3f317cacf4a16) Co-authored-by: Ned Deily <nad@python.org>
* [3.9] bpo-41778: Change a punctuation on documentation. (GH-22229) (GH-22232)Emmanuel Arias2020-09-131-2/+2
| | | | | | | | | | | | | 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>
* bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* ↵Miss Islington (bot)2020-09-131-3/+3
| | | | | functions (GH-21763) (GH-22225) (cherry picked from commit b48389d95093c3f912549add8da339edc164bf0d)
* bpo-41672: Fix type mismatches in imaplib docs (GH-22207)Miss Islington (bot)2020-09-121-2/+2
| | | | | (cherry picked from commit c75330605d4795850ec74fdc4d69aa5d92f76c00) Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com>
* bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)Miss Islington (bot)2020-09-123-9/+23
| | | | | | | | 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>
* bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)Miss Islington (bot)2020-09-122-1/+2
| | | | | | | 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>
* bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)Miss Islington (bot)2020-09-121-1/+1
| | | | | | | | 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>
* [doc] struct: update note about network byte order form to be more helpful ↵Miss Islington (bot)2020-09-111-2/+4
| | | | | | | | (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>
* Doc: Fix alphabetical ordering of removeprefix/suffix. (GH-22194)Miss Islington (bot)2020-09-111-27/+28
| | | | | (cherry picked from commit 3304cbd990f06b72480a6dc8f6f4fe1a1376dde7) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188)Miss Islington (bot)2020-09-102-1/+2
| | | | | | 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>