Commit Graph

107765 Commits

Author SHA1 Message Date
Miss Islington (bot) 3dd1153b99
bpo-41066: Update the comparison section for os vs pathlib (GH-21261)
(cherry picked from commit 0eb9deb4a6)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
2020-08-13 12:59:07 -07:00
Terry Jan Reedy f24430f154
[3.9] bpo-41520: Fix second codeop regression (GH-21848)
Fix the repression introduced by the initial regression fix.

(cherry picked from commit c818b15fa5)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-08-13 14:21:32 -04:00
Guido van Rossum b3ad2ca56a
[3.9] bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and ordering (GH-21574) (#21843)
Also added PEP 585 deprecation notes.

(cherry picked from commit ab72fdeb82)

Co-authored-by: Luciano Ramalho <luciano@ramalho.org>
2020-08-12 11:10:12 -07:00
Miss Islington (bot) 90eff4ed44
bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)
(cherry picked from commit 369a1cbdee)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-08-12 06:13:09 -07:00
Łukasz Langa 6e21a30215
Post 3.9.0rc1 2020-08-11 23:29:16 +02:00
Łukasz Langa 03e92654c9 Python 3.9.0rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl8y6lgACgkQsmmV4xAl
 BWhXjQ//XABukXJGoE4HrTusljOIn8ZmkBJbvhyaCmb83khYZHJmeExcV3UwDJE7
 U3fOfApErWwa79cn4ZI/naHAok8T4TFb0f2qvGuincG16FwTKpe/HyuMHq1OOzKn
 cCOtgulUuKG7kglykRxVSFym32Ch7y2pAVgtX8k3zwTdknx8UrfSX0mfFNQWgPgz
 ThXMIWy3PqFj1SFoOCjFq4ab8GhIcHSD4fxCibiGfZRJI7D7iJk2nHH29e0JOrwt
 ZA6kJw6nw6CqiauzSRCuBDYJTnlxTe726hh5lA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UVUj46k2Xeu2yU6e+RL/jthlczGLAehSGJTkF9IuKqYL1
 KU2RT+WYoIBKuMS4JsXgN7XQr1QrJq30el6LxpzADMvdNjAroip8ooUQRjbbjOB1
 KtDOOHl+BYTROsupH3Y2yxxXcgaKJlGyA84MWtbcljXQKAxaQHnDLh7Q820obClX
 WMo5UNBl1Q==
 =FI9l
 -----END PGP SIGNATURE-----

Merge tag 'v3.9.0rc1' into 3.9

Python 3.9.0rc1
2020-08-11 23:28:53 +02:00
Guido van Rossum d1d6a1c6ab
[3.9] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773) (GH-21830)
(cherry picked from commit e3c971ccfa)

Co-authored-by: Edward K. Ream <edreamleo@gmail.com>

Co-authored-by: Edward K. Ream <edreamleo@gmail.com>
2020-08-11 14:04:26 -07:00
Łukasz Langa 439c93d51f
Python 3.9.0rc1 2020-08-11 20:58:17 +02:00
Miss Islington (bot) 5de00f63d4
bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (#21832)
(cherry picked from commit 76643c10ed)

Co-authored-by: Ram Rachum <ram@rachum.com>
2020-08-11 19:03:21 +02:00
Miss Islington (bot) 2146e516ec
Add PEP 573 additions to What's New (GH-21374) (GH-21831)
(cherry picked from commit af3a6a8cae)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2020-08-11 18:34:20 +02:00
Victor Stinner a0b57b3317
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) (GH-21827)
regrtest_unraisable_hook() temporarily replaces sys.stderr with
sys.__stderr__ to help to display errors when a test captures stderr.

(cherry picked from commit 701b63894f)
2020-08-11 17:03:33 +02:00
Miss Islington (bot) 2cd58d8bb1
bpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)
On Git 2.28, "git diff master..." (3 dots) no longer works when
"fetch --depth=1" is used, whereas it works on Git 2.26.

Replace "..." (3 dots) with ".." (2 dots) in the "git diff" command
computing the list of modified files between the base branch and the
PR branch.
(cherry picked from commit eaa551702d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-08-10 10:09:41 -07:00
Miss Islington (bot) 9c253f4bc9
bpo-41514: Fix buggy IDLE test (GH-21808)
test_run method test_fatal_error failed when run twice, as with
python -m test -m test_fatal_error test_idle test_idle
because func.called was not reinitialized to 0.
This bug caused a failure on a refleak buildbot.
(cherry picked from commit 416f0b71ba)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-08-10 07:05:02 -07:00
Victor Stinner d2bea2636d
[3.9] bpo-41194: Convert _ast extension to PEP 489 (GH-21807)
* bpo-41194: Convert _ast extension to PEP 489 (GH-21293)

Convert the _ast extension module to PEP 489 "Multiphase
initialization". Replace the global _ast state with a module state.

(cherry picked from commit b1cc6ba73a)

* bpo-41204: Fix compiler warning in ast_type_init() (GH-21307)

(cherry picked from commit 1f76453173)
2020-08-10 15:55:54 +02:00
Ned Deily b0a2705532
Update macOS installer welcome files for 3.9.0rc. (GH-21804) 2020-08-10 03:04:13 -04:00
Miss Islington (bot) a9fa66377f
bpo-41468: Improve and test IDLE run error exit (GH-21798)
A message box pops up when an unexpected error stops the run process.  Tell users it is likely a random glitch, but report it if not.
(cherry picked from commit f2e161c279)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-08-09 13:26:21 -07:00
Miss Islington (bot) 6860cf5387
Doc: Add output to example code in programming FAQ (GH-21346)
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74c4e)

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
2020-08-09 11:54:26 -07:00
Miss Islington (bot) 462b095d72
Improve renamed test_run.RecursionLimitTest (GH-21794)
PEP 8 style and new comments.
(cherry picked from commit 8b67bf907c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-08-09 10:35:48 -07:00
Miss Islington (bot) 103ce3debf
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 82ca8fada1)

Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
2020-08-08 11:55:15 -07:00
Miss Islington (bot) d9106434f7
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
(cherry picked from commit a4084b9d1e)

Co-authored-by: Konge <zkonge@outlook.com>
2020-08-07 20:24:12 -07:00
Miss Islington (bot) deea701b7f
Doc: Add a link to tutorial page from `open()` doc (GH-21737)
Adds a link to the "Reading and Writing Files" page so users can
more easily discover how file handles are handled with the `with`
context manager vs without it.
(cherry picked from commit 705f145565)

Co-authored-by: Benjamin Kane <bbkane@users.noreply.github.com>
2020-08-07 20:03:56 -07:00
Steve Dower 70e9243a55
bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 (GH-21774) 2020-08-08 00:47:40 +01:00
Miss Islington (bot) 1ecbfbc26a
Update Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files (GH-21776)
(cherry picked from commit 102b4988b1)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-08-07 16:01:44 -07:00
Miss Islington (bot) 5e12a5b822
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
gdb 9.2 on Fedora Rawhide is not reliable, see:

* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=1866884
(cherry picked from commit e27a51c11e)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-08-07 09:18:29 -07:00
Miss Islington (bot) b2514c4934
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
(cherry picked from commit 46e19b61d3)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-08-07 00:49:53 -07:00
Miss Islington (bot) fc354ca51d
bpo-39871: Fix an error in a news entry (GH-21749)
(cherry picked from commit 5463635580)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-08-06 22:45:49 -07:00
Miss Islington (bot) 1437bb06a9
bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
(cherry picked from commit 777b611c8c)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-08-06 09:54:52 -07:00
Miss Islington (bot) b49b88a93a
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
(cherry picked from commit 52f98424a5)

Co-authored-by: Eric L. Frederich <eric.frederich@gmail.com>
2020-08-05 14:52:59 -07:00
Miss Islington (bot) a1320989f5
bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)
(cherry picked from commit 8f4380d2f5)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
2020-08-05 06:52:29 -07:00
Miss Islington (bot) ea680631b4
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
See PEP 623 for detail.
(cherry picked from commit 270b4ad4df)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-08-04 18:56:08 -07:00
Miss Islington (bot) 1d16229f3f
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
On Windows, fix asyncio recv_into() return value when the socket/pipe
is closed (BrokenPipeError): return 0 rather than an empty byte
string (b'').
(cherry picked from commit 602a971a2a)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-08-03 18:00:29 -07:00
Miss Islington (bot) b6724be804
bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)
incr cannot be larger than INT_MAX: downcast to int explicitly.
(cherry picked from commit bde48fd811)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-08-03 17:56:54 -07:00
Miss Islington (bot) 3c4fc864ce
bpo-41425: Make tkinter doc example runnable (GH-21706)
Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit c36dbac588)
2020-08-03 00:25:30 -04:00
Miss Islington (bot) 905c7de6e4
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
(cherry picked from commit ecaf949cc4)

Co-authored-by: Nathan M <nathanmaynes@gmail.com>
2020-08-02 19:19:48 -07:00
Karthikeyan Singaravelan fe928b32da
[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH-21697)
(cherry picked from commit cadda52d97)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
2020-07-31 07:17:18 -07:00
Miss Islington (bot) 607ba9deff
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
Automerge-Triggered-By: @brettcannon
(cherry picked from commit ba18c0b13b)

Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
2020-07-29 11:43:54 -07:00
Miss Islington (bot) 0124f2b5e0
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21667) 2020-07-28 18:39:10 -07:00
Miss Islington (bot) 22216107f2
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
(cherry picked from commit a74eea238f)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2020-07-28 18:16:19 -07:00
Miss Islington (bot) aa16ac7433
[3.9] Improve blake2 comment for Victor (GH-20981) (GH-20982)
Signed-off-by: Christian Heimes <christian@python.org>


(cherry picked from commit 8a0fe7b454)


Co-authored-by: Christian Heimes <christian@python.org>
2020-07-28 12:29:46 -07:00
Miss Islington (bot) 67020a3e13
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
(cherry picked from commit 34cd3e9f6a)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
2020-07-28 09:58:30 -07:00
Miss Islington (bot) 95cc37f6b8
bpo-41412 and bpo-40948: Windows installer updates (GH-21656)
Prevent installation on Windows 8 and earlier.
Download UCRT on demand when required (non-updated Windows 8.1 only)
Add reference to py launcher to post-install message
(cherry picked from commit 37a06cbe5c)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-07-28 08:55:38 -07:00
Miss Islington (bot) e31b8a5cd1
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)
(cherry picked from commit 5e3826785d)

Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
2020-07-28 07:56:15 -07:00
Pablo Galindo bc2c0e9a57
[3.9] Validate the AST produced by the parser in debug mode (GH-21643) (GH-21646)
This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult..
(cherry picked from commit 1332226b32)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-07-28 00:12:31 +01:00
Guido van Rossum e962e3f65a
[3.9] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (GH-21645)
Co-Authored-By: Rishi <rishi93dev@gmail.com>

(cherry picked from commit 13efaec)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
2020-07-27 16:01:49 -07:00
Guido van Rossum e6b2d93f0c
[3.9] bpo-40939: Use the new grammar for the grammar specification documentation (GH-19969) (#21641)
(We censor the heck out of actions and some other stuff using a custom "highlighter".)

(cherry picked from commit 72cabb2aa6)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-07-27 12:00:42 -07:00
Miss Islington (bot) 8b052751d3
bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
... when an unknown option is passed.  TypeError was being raised because a 2to3 fix was missing.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit f1d40f941a)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2020-07-26 22:14:12 -04:00
Miss Islington (bot) 6e4975a1c7
bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)
On some platform such as VMware ESXi, DefaultSelector fails
to detect selector due to default value.
This fix adds a check and uses the correct selector depending upon
select implementation and actual call.

Fixes: [bpo-41182]()

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit bcd47837a9)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-07-26 08:32:25 -07:00
Miss Islington (bot) 41d1c04f73
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (GH-21553)
The issue raised by recursive evaluation is infinite recursion with
recursive types. In that case, only the first recursive ForwardRef is
evaluated.
(cherry picked from commit 653f420b53)

Co-authored-by: wyfo <joperez@hotmail.fr>
2020-07-26 08:31:24 -07:00
Miss Islington (bot) 8b7544cd02
bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)
(cherry picked from commit b1a87300a0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-07-26 00:38:52 -07:00
Miss Islington (bot) b74e536075
bpo-37309: NEWS for GH-41373 (GH-21612)
(cherry picked from commit af08db7bac)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-07-25 21:25:17 -07:00