summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.8.6v3.8.6Łukasz Langa2020-09-2320-29/+175
|
* bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22369)Miss Islington (bot)2020-09-232-0/+27
| | | | | (cherry picked from commit 62e40d8450b9c78346ec3617de7fe3f0ad381510) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)Miss Islington (bot)2020-09-224-42/+51
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* fix `EventType` basesMiss Islington (bot)2020-09-222-6/+7
| | | `StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
* bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)Miss Islington (bot)2020-09-224-9/+8
| | | | | | | The marker was added to the language in 3.8 and 3.7 only gets security patches. (cherry picked from commit 40a0625792e795cd41c4ba20475e3b770b53817a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)Miss Islington (bot)2020-09-213-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>
* bpo-41811: create SortKey members using first given value (GH-22316) (GH-22326)Miss Islington (bot)2020-09-192-3/+7
| | | | | (cherry picked from commit ae0d2a33ec05aece939a959d36fcf1df1e210a08) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309) ↵Victor Stinner2020-09-183-5/+14
| | | | | | | | | | | | | (GH-22310) 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) (cherry picked from commit 9e73cac173e5e9010bd18c8334fffeee1cade3a4)
* bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)Miss Islington (bot)2020-09-182-15/+22
| | | | | | | | | | | | | | * bpo-35293: Remove RemovedInSphinx40Warning * Update Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst Co-authored-by: Victor Stinner <vstinner@python.org> * bpo-35293: Apply Victor's review Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 6595cb0af4c51c0381c233b97884fe916a4ddd35) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) (GH-22300)Miss Islington (bot)2020-09-188-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.8] Remove duplicated words words (GH-20413). (GH-22297)Serhiy Storchaka2020-09-184-4/+4
| | | | (cherry picked from commit 1c5d1d7304a119040fd3118128bdb412f0cce6a6)
* [3.8] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22283)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-41789: honor object overrides in Enum classes (GH-22250)Miss Islington (bot)2020-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. Automerge-Triggered-By: @ethanfurman (cherry picked from commit 22415ad62555d79bd583b4a7d6a96006624a8277) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-39587: Enum - use correct mixed-in data type (GH-22263)Miss Islington (bot)2020-09-153-1/+56
| | | | | (cherry picked from commit bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* Improve the description of difflib in the documentation (GH-22253) (GH-22260)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>
* bpo-41776: Revise example of "continue" in the tutorial documentation ↵Miss Islington (bot)2020-09-151-5/+5
| | | | | | | | | | (GH-22234) (GH-22256) 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-41744: Package python.props with correct name in NuGet package (GH-22154)Miss Islington (bot)2020-09-145-4/+8
| | | | | | | | | | | NuGet automatically includes .props file from the build directory in the target using the package, but only if the .props file has the correct name: it must be $(id).props Rename python.props correspondingly in all the nuspec variants. Also keep python.props as it were for backward compatibility. (cherry picked from commit 7c11a9accabe3720940f334eb1226bb7bb9179c7) Co-authored-by: Václav Slavík <vaclav@slavik.io>
* bpo-39883: Update macOS installer copy of LICENSE. (GH-22235)Miss Islington (bot)2020-09-141-3/+24
| | | | | (cherry picked from commit 7dbbea75cec27a48b68cc07c23f3f317cacf4a16) Co-authored-by: Ned Deily <nad@python.org>
* bpo-41778: Change a punctuation on documentation. (GH-22229) (GH-22230)Miss Islington (bot)2020-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>
* [3.8] bpo-37479: Enum - use correct __format__ (GH-14545)Ethan Furman2020-09-135-6/+63
| | | | | | * bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__. (cherry picked from commit 2f19e82fbe98ce86bcd98a176328af2808b678e8) Co-authored-by: thatneat <thatneat@users.noreply.github.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-22226) (cherry picked from commit b48389d95093c3f912549add8da339edc164bf0d)
* bpo-41672: Fix type mismatches in imaplib docs (GH-22207) (#22218)Miss Islington (bot)2020-09-121-2/+2
| | | | | | | (cherry picked from commit c75330605d4795850ec74fdc4d69aa5d92f76c00) Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com> 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>
* bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) ↵Miss Islington (bot)2020-09-102-1/+2
| | | | | | | | | (#22193) 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>
* [doc] Remove superfluous comment about equal in f-strings (GH-22006)Miss Islington (bot)2020-09-101-1/+1
| | | | | | Automerge-Triggered-By: @kushaldas (cherry picked from commit 788b79fa7b6184221e68d4f1a3fbe0b3270693f6) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Update idlelib/help.html to current IDLE doc (GH-22181)Miss Islington (bot)2020-09-091-4/+4
| | | | | (cherry picked from commit 471247150e9707e583297ac6b4edff978efd8941) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Add missing colon to IDLE doc markup (GH-22007)Miss Islington (bot)2020-09-091-1/+1
| | | | | | | (cherry picked from commit 7a797a3967fdfedbaf49fd1f140ee670d7db40ad) Co-authored-by: Andre Delfino <adelfino@gmail.com> Co-authored-by: Andre Delfino <adelfino@gmail.com>
* [3.8] [3.9] bpo-41688: Document bug in **= dispatching in the language ↵Miss Islington (bot)2020-09-091-0/+7
| | | | | | | | | | data… (GH-22172) (GH-22175) (cherry picked from commit 46bc21e1780016aaacd34e472f838dc792fb674c) Co-authored-by: Ammar Askar <ammar@ammaraskar.com> Automerge-Triggered-By: @brettcannon
* Fixes dead links to Django's logging config docs (GH-20823) (GH-22171)Miss Islington (bot)2020-09-091-2/+2
| | | (cherry picked from commit 714217f9561507bbc7218a02089d0e1da0239372)
* Fix compiler warnings in init_dump_ascii_wstr() (GH-22150)Miss Islington (bot)2020-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | 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>
* bpo-41525: Make the Python program help ASCII-only (GH-21836)Miss Islington (bot)2020-09-094-3/+8
| | | | | (cherry picked from commit 58de1dd6a8677bd213802c19204b827cb7134695) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.8] [doc] Fix padding in timeit (GH-22152) (GH-22159)Miss Islington (bot)2020-09-081-1/+1
| | | | | | | 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>
* [3.8] Fix typo in typing.py (GH-22121) (GH-22158)Mariatta2020-09-081-1/+1
| | | | | | | | 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> Automerge-Triggered-By: @Mariatta
* Post 3.8.6rc1Łukasz Langa2020-09-081-1/+1
|
* Merge tag 'v3.8.6rc1' into 3.8Łukasz Langa2020-09-0836-55/+319
|\ | | | | | | Python 3.8.6rc1
| * Python 3.8.6rc1v3.8.6rc1Łukasz Langa2020-09-0736-55/+319
| |
* | bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)Miss Islington (bot)2020-09-073-2/+19
|/ | | | | (cherry picked from commit fd4cafd4700dc03cb05fc2e5263c2666d785d6e3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41401: Fix test_fspath_support in test_io. (GH-21640) (GH-22133) (GH-22135)Victor Stinner2020-09-071-1/+1
| | | | | | | | The error is exposed on non-UTF-8 locales. (cherry picked from commit 67987acd5dc9776f55f4e139e2b3d9e7a6434d9f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit c73ee5acc96b4bbd6885156883b224b8cc3e470c)
* closes bpo-41723: Fix an error in the py_compile documentation. (GH-22110)Miss Islington (bot)2020-09-061-1/+1
| | | | | (cherry picked from commit 5371a464ce88ffc88f3bb95cfd86f355b7d02953) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-41654: Explicitly cast PyExc_MemoryError to PyTypeObject to avoid ↵Pablo Galindo2020-09-051-2/+3
| | | | warning (GH-22102)
* [3.8] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) ↵Miss Islington (bot)2020-09-041-0/+10
| | | | | | | | | | | | | (GH-22010) 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>
* [3.8] Fix error in argparse documentation example (GH-17399) (GH-21990)Miss Islington (bot)2020-09-041-2/+2
| | | | | | | Automerge-Triggered-By: @rhettinger (cherry picked from commit 8784d3300ec4ffc58bc0e9ab3cff9a24187dbe4c) Co-authored-by: SarahPythonista <4283226+SarahPythonista@users.noreply.github.com>
* [3.8] closes bpo-41533: Fix a potential memory leak when allocating a stack ↵Miss Islington (bot)2020-09-042-0/+5
| | | | | | | | | | (GH-21847) (GH-22015) 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>
* [3.8] bpo-40486: Specify what happens if directory content change diring ↵Miss Islington (bot)2020-09-043-3/+17
| | | | | | | | iteration (GH-22025) (GH-22094) (cherry picked from commit 306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>