Commit Graph

106155 Commits

Author SHA1 Message Date
Miss Islington (bot) c5cddc17b5
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) (GH-22300)
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 8af239eacf)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-09-18 10:31:28 +02:00
Serhiy Storchaka 038688a53b
[3.8] Remove duplicated words words (GH-20413). (GH-22297)
(cherry picked from commit 1c5d1d7304)
2020-09-18 09:37:04 +03:00
Ethan Furman 5efb1a77e7
[3.8] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22283)
fix default `_missing_` to return `None` instead of raising a `ValueError`
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>.
(cherry picked from commit c95ad7a91f)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-16 17:38:14 -07:00
Miss Islington (bot) 007eddad3b
_auto_called cleanup (GH-22285)
(cherry picked from commit fc23a9483e)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-16 17:28:32 -07:00
Miss Islington (bot) 3f4012117b
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 3064dbf5df)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-16 07:30:54 -07:00
Miss Islington (bot) 929112ef81
bpo-41789: honor object overrides in Enum classes (GH-22250)
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 22415ad625)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-15 17:16:36 -07:00
Miss Islington (bot) 8f8ebcca95
bpo-39587: Enum - use correct mixed-in data type (GH-22263)
(cherry picked from commit bff01f3a3a)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-15 16:23:57 -07:00
Miss Islington (bot) 5fdc142597
Improve the description of difflib in the documentation (GH-22253) (GH-22260)
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 5531269f69)

Co-authored-by: Mandeep <mandeep052@gmail.com>
2020-09-15 12:45:29 -07:00
Miss Islington (bot) a0da90720d
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22256)
Revise example of "continue" in the tutorial documentation
(cherry picked from commit 7bcc6456ad)

Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>

Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
2020-09-15 09:56:43 -04:00
Miss Islington (bot) 624cc10ee4
bpo-40721: add note about enum member name case (GH-22231)
* UPPER_CASE preferred as enum members are constants
(cherry picked from commit 542e1df2b0)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-14 13:42:38 -07:00
Miss Islington (bot) b007a9be6f
bpo-41744: Package python.props with correct name in NuGet package (GH-22154)
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 7c11a9acca)

Co-authored-by: Václav Slavík <vaclav@slavik.io>
2020-09-14 12:47:40 -07:00
Miss Islington (bot) 3c618d0a07
bpo-39883: Update macOS installer copy of LICENSE. (GH-22235)
(cherry picked from commit 7dbbea75ce)

Co-authored-by: Ned Deily <nad@python.org>
2020-09-13 22:38:20 -07:00
Miss Islington (bot) d09bead939
bpo-41778: Change a punctuation on documentation. (GH-22229) (GH-22230)
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 94bfdee25d)

Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
2020-09-13 17:21:49 -04:00
Ethan Furman 38c8d3930e
[3.8] bpo-37479: Enum - use correct __format__ (GH-14545)
* bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__.
(cherry picked from commit 2f19e82fbe)

Co-authored-by: thatneat <thatneat@users.noreply.github.com>
2020-09-13 13:47:43 -07:00
Miss Islington (bot) bf50b0e80a
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) (GH-22226)
(cherry picked from commit b48389d950)
2020-09-13 19:16:39 +01:00
Miss Islington (bot) 3a150c77c3
bpo-41672: Fix type mismatches in imaplib docs (GH-22207) (#22218)
(cherry picked from commit c75330605d)

Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com>

Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com>
2020-09-12 20:04:50 +09:00
Miss Islington (bot) 530d1105ed
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 1b0f0e3d7d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-09-12 00:09:54 -07:00
Miss Islington (bot) 77901dc6c3
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 7e711ead26)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-11 23:43:27 -07:00
Miss Islington (bot) bbab34084e
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 31c9828ec0)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-11 23:09:08 -07:00
Miss Islington (bot) e4c6947024
[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 fb27187203)

Co-authored-by: Stargirl Flowers <theaflowers@google.com>
2020-09-11 08:29:04 -07:00
Miss Islington (bot) 8a30bdd21d
bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) (#22193)
The new link responds much faster and begins with a short explanation of the status of the doc.
(cherry picked from commit 06d0b8b67e)

Co-authored-by: Mark Roseman <mark@markroseman.com>
2020-09-10 16:21:35 -04:00
Miss Islington (bot) e3d0e9bab9
[doc] Remove superfluous comment about equal in f-strings (GH-22006)
Automerge-Triggered-By: @kushaldas
(cherry picked from commit 788b79fa7b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-09 23:41:13 -07:00
Miss Islington (bot) 9133b01b58
Update idlelib/help.html to current IDLE doc (GH-22181)
(cherry picked from commit 471247150e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-09 16:10:09 -07:00
Miss Islington (bot) d423aa8e95
Add missing colon to IDLE doc markup (GH-22007)
(cherry picked from commit 7a797a3967)

Co-authored-by: Andre Delfino <adelfino@gmail.com>

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-09 18:34:20 -04:00
Miss Islington (bot) 4c4c354de2
[3.8] [3.9] bpo-41688: Document bug in **= dispatching in the language data… (GH-22172) (GH-22175)
(cherry picked from commit 46bc21e178)


Co-authored-by: Ammar Askar <ammar@ammaraskar.com>

Automerge-Triggered-By: @brettcannon
2020-09-09 11:15:49 -07:00
Miss Islington (bot) 778a9b2c55
Fixes dead links to Django's logging config docs (GH-20823) (GH-22171)
(cherry picked from commit 714217f956)
2020-09-09 14:40:41 +01:00
Miss Islington (bot) 23d3681671
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 640e8e1d5f)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-09-09 03:26:32 -07:00
Miss Islington (bot) 9171dc2827
bpo-41525: Make the Python program help ASCII-only (GH-21836)
(cherry picked from commit 58de1dd6a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-09-08 17:46:41 -07:00
Miss Islington (bot) 68bc6792b4
[3.8] [doc] Fix padding in timeit (GH-22152) (GH-22159)
Compare -p and -u options help in rendered output to see the difference.
(cherry picked from commit 594f0ce73b)


Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-08 16:57:11 -07:00
Mariatta 7799dd38e7
[3.8] Fix typo in typing.py (GH-22121) (GH-22158)
This is a trivial PR to fix a typo in a docstring in typing.py. From reverences -> references.
(cherry picked from commit 84ef33c511)

Co-authored-by: Graham Bleaney <gbleaney@gmail.com>

Automerge-Triggered-By: @Mariatta
2020-09-08 16:28:02 -07:00
Łukasz Langa 3cb5073773
Post 3.8.6rc1 2020-09-08 11:39:14 +02:00
Łukasz Langa 7c6dc8517e Python 3.8.6rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl9WV1gACgkQsmmV4xAl
 BWhaFA/+MhK/h03WVVmcmK53W3aU70AHhLLlRhftYSxN6hUgEYWt8VFupOtD8947
 56RDjlpDKxeRiErjxT2ymLCdkiLCbXSfVD2aKY2H76370On4SKMjAB2VcPa2dsA9
 cw8HPjc3CzXxSYBz1+aKc5OJs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b87qOv2f0hzZTrx1xB1UYplljaXFPeD6DsrkrHm2YgqytGuE0768X
 9tAInVlLWQ0MCxO0OeyVJpV0Mi2NapG+hqRY3UlRcsLQdoK9grMZxTdyCqGJcYCK
 CyiL13etXP6kHsAa6PwgxTCL/HyE25ZgRyc0ZVEolELx3eGZR9UyQg/l8KJpOLQI
 tMnTMIxuoLzPEBvFtHHp7L7/V11OmWl4ojW8Vl3thYbXGScjtHVEXh4GRm0dT1br
 VigswpqDx+Njj/XqNUanZo59rtWiLB6b5b6z0y4JvPxF3BX6GFRRsUOO8ILUENma
 bf0QNqrN1Q==
 =/G5i
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.6rc1' into 3.8

Python 3.8.6rc1
2020-09-08 11:38:51 +02:00
Miss Islington (bot) ebef6c0b50
bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)
(cherry picked from commit fd4cafd470)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-09-07 09:28:04 -07:00
Łukasz Langa 08bd63da6e
Python 3.8.6rc1 2020-09-07 17:52:19 +02:00
Victor Stinner 84105cbaa3
bpo-41401: Fix test_fspath_support in test_io. (GH-21640) (GH-22133) (GH-22135)
The error is exposed on non-UTF-8 locales.

(cherry picked from commit 67987acd5d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit c73ee5acc9)
2020-09-07 17:27:03 +02:00
Miss Islington (bot) 4e581d64b8
closes bpo-41723: Fix an error in the py_compile documentation. (GH-22110)
(cherry picked from commit 5371a464ce)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-09-05 20:47:17 -07:00
Pablo Galindo 6ae61959ec
bpo-41654: Explicitly cast PyExc_MemoryError to PyTypeObject to avoid warning (GH-22102) 2020-09-05 17:07:54 +01:00
Miss Islington (bot) 4ddb2d73ac
[3.8] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) (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 c68c5af2dc)


Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
2020-09-04 15:30:21 -07:00
Miss Islington (bot) e77547b90c
[3.8] Fix error in argparse documentation example (GH-17399) (GH-21990)
Automerge-Triggered-By: @rhettinger
(cherry picked from commit 8784d3300e)


Co-authored-by: SarahPythonista <4283226+SarahPythonista@users.noreply.github.com>
2020-09-04 15:26:21 -07:00
Miss Islington (bot) 66e9c2aee4
[3.8] closes bpo-41533: Fix a potential memory leak when allocating a stack (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 75c80b0bda)


Co-authored-by: Tony Solomonik <tony.solomonik@gmail.com>
2020-09-04 15:26:05 -07:00
Miss Islington (bot) e52f5bc898
[3.8] bpo-40486: Specify what happens if directory content change diring iteration (GH-22025) (GH-22094)
(cherry picked from commit 306cfb3a37)


Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-09-04 15:25:51 -07:00
Miss Islington (bot) 1470c9189c
bpo-38585: Remove references to defusedexpat (GH-22095)
defusedexpat is not maintained.
(cherry picked from commit 51b84f8e96)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-09-04 15:25:04 -07:00
Miss Islington (bot) 4bcff52447
bpo-41700: Skip test if the locale is not supported (GH-22081) (GH-22086)
(cherry picked from commit 54a66ade20)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-09-04 18:55:44 +09:00
Miss Islington (bot) 40e2444c36
bpo-39010: Improve test shutdown (GH-22066) (#22083)
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 be435ae2b0)

Co-authored-by: Ben Darnell <ben@bendarnell.com>

Co-authored-by: Ben Darnell <ben@bendarnell.com>
2020-09-03 13:54:36 -07:00
Miss Islington (bot) 1f5f127377
bpo-41696: Fix handling of debug mode in asyncio.run (GH-22069) (#22072)
* 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 0770ad948c)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2020-09-03 13:54:06 -07:00
Miss Islington (bot) a986b061a3
bpo-39010: Fix errors logged on proactor loop restart (GH-22017) (#22035)
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 ea5a6363c3)

Co-authored-by: Ben Darnell <ben@bendarnell.com>

Co-authored-by: Ben Darnell <ben@bendarnell.com>
2020-09-03 12:38:34 -07:00
Miss Islington (bot) 9fef7c54a0
bpo-39883: Use BSD0 license for code in docs (GH-17635) (GH-22074)
The PSF board approved this use.
(cherry picked from commit e223d06a8b)

Co-authored-by: Todd <toddrjen@gmail.com>
2020-09-03 07:41:09 -07:00
Miss Islington (bot) 5d663ededd
[doc] Remove references to PyChecker. (GH-22055)
(cherry picked from commit dea82b6731)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-02 08:29:46 -05:00
Miss Islington (bot) a8b05c4b97
Remove reference to Boa Constructor. (GH-22057)
(cherry picked from commit 1d25f5bf7b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-02 08:28:59 -05:00
Pablo Galindo 77f4000ae0
[3.8] [3.9] bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020) (GH-22046)
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 9b648a95cc)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>.
(cherry picked from commit 87e91ae2e5)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-09-01 21:40:48 +01:00