Commit Graph

108161 Commits

Author SHA1 Message Date
larryhastings 32a9ffdef1
[3.9] Remove 3.5 from Doc version switcher in master. (GH-22886) (#22888)
(cherry picked from commit 283f9a253b)
2020-10-22 07:29:26 -07:00
Inada Naoki 8f6787d93d
bpo-42057: Add a test case (GH-22878) 2020-10-22 11:28:36 +09:00
Inada Naoki 07a44d9572
bpo-42057: Fix peephole optimizer (GH-22802) 2020-10-22 11:06:07 +09:00
Miss Skeleton (bot) c3538b8381
bpo-41910: specify the default implementations of object.__eq__ and object.__ne__ (GH-22874) (#22876)
See Objects/typeobject.c:object_richcompare() for the implementation of this in CPython.

Co-authored-by: Brett Cannon <brett@python.org>
2020-10-21 20:07:39 -04:00
Miss Skeleton (bot) 6e842bcdf8
bpo-35181: Correct importlib documentation for some module attributes (GH-15190)
@ericsnowcurrently This PR will change the following:

In the library documentation importlib.rst:

- `module.__package__` can be `module.__name__` for packages;
- `spec.parent` can be `spec.__name__` for packages;
- `spec.loader` is not `None` for namespaces packages.

In the language documentation import.rst:

- `spec.loader` is not `None` for namespace packages.

Automerge-Triggered-By: GH:warsaw
(cherry picked from commit 27f1bd8787)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2020-10-21 14:39:41 -07:00
Miss Skeleton (bot) 224ed378b9
Fix bpo-39416: Change "Numeric" to lower case; an english word, not a class name (GH-22867)
This is a trivial fix to [bpo-39416](), which didn't come up until it was already committed

```
Change "Numeric" to "numeric".

I believe this is trivial enough to not need an issue or a NEWS entry, although
I'm unclear on what branches the original pull request received backports.
```

Automerge-Triggered-By: GH:merwok
(cherry picked from commit f8b1ccd63c)

Co-authored-by: kpinc <kop@karlpinc.com>
2020-10-21 13:54:39 -07:00
Miss Skeleton (bot) c3442fd8a7
bpo-41959: Fix grammar around class asyncio.MultiLoopChildWatcher text (GH-22580) (#22865)
While translating the following document to Spanish we found there is a grammar issue on the original documentation.
(cherry picked from commit caff2934f4)

Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>

Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
2020-10-21 23:34:29 +03:00
Miss Skeleton (bot) ec62b47ebc
[3.9] bpo-39416: Document some restrictions on the default string representations of numeric classes (GH-18111) (GH-22860)
[[bpo-39416]()](): Document string representations of the Numeric classes

This is a change to the specification of the Python language.

The idea here is to put sane minimal limits on the Python language's default
representations of its Numeric classes.  That way "Marty's Robotic Massage Parlor
and Python Interpreter" implementation of Python won't do anything too
crazy.

Some discussion in the email thread:
Subject: Documenting Python's float.__str__()
https://mail.python.org/archives/list/python-dev@python.org/thread/FV22TKT3S2Q3P7PNN6MCXI6IX3HRRNAL/
(cherry picked from commit c60394c7fc)


Co-authored-by: kpinc <kop@karlpinc.com>

Automerge-Triggered-By: GH:merwok
2020-10-21 11:56:16 -07:00
Miss Skeleton (bot) 871c6ccf4a
bpo-38439: Add 256px IDLE icon to the .ico, drop gifs from it (GH-19648)
(cherry picked from commit faddc7449d)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2020-10-21 09:07:13 -07:00
Miss Skeleton (bot) fcd776c6c2
Doc: Fix a typo/error in the docs for cached bytecode (GH-22445)
(cherry picked from commit cb115e36e1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-10-21 01:57:37 -07:00
Miss Skeleton (bot) 03bfb07937
Doc: Do not suggest `s[::-1]` for reversed order (GH-22457)
(cherry picked from commit fb2e94692e)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-21 01:47:54 -07:00
Miss Skeleton (bot) f72101bb62
Doc: Do not encourage using a base class name in a derived class (GH-22177)
(cherry picked from commit 4642ccd1c3)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-21 17:11:13 +09:00
Miss Skeleton (bot) 9e935adf74
Doc: Remove old Python version from future stmt (GH-21802)
(cherry picked from commit eba109a28f)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-20 23:06:29 -07:00
Miss Skeleton (bot) 7917170c5b
bpo-41316: Make tarfile follow specs for FNAME (GH-21511)
tarfile writes full path to FNAME field of GZIP format instead of just basename if user specified absolute path. Some archive viewers may process file incorrectly. Also it creates security issue because anyone can know structure of directories on system and know username or other personal information.

RFC1952 says about FNAME:
This is the original name of the file being compressed, with any directory components removed.

So tarfile must remove directory names from FNAME and write only basename of file.

Automerge-Triggered-By: @jaraco
(cherry picked from commit 22748a83d9)

Co-authored-by: Artem Bulgakov <ArtemSBulgakov@ya.ru>
2020-10-20 22:29:00 -07:00
Miss Skeleton (bot) 19019eccde
bpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208)
(cherry picked from commit 8f2b991eef)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-10-21 14:16:42 +09:00
Miss Skeleton (bot) d0bfce992c
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-10-21 14:15:18 +09:00
Miss Skeleton (bot) a1296ed60b
Update idlelib/help.html to current Sphinx output (GH-22833)
idle.rst is unchanged
(cherry picked from commit a460d45063)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-10-20 18:15:23 -07:00
Miss Skeleton (bot) d05514ace6
[3.9] bpo-42010: [docs] Clarify subscription of types (GH-22822) (GH-22840)
(cherry picked from commit 7cdf30fff3)


Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>

Automerge-Triggered-By: GH:gvanrossum
2020-10-20 16:58:49 -07:00
Miss Skeleton (bot) 46130f8538
bpo-41192: Add documentation of undocumented audit events (GH-22831)
(cherry picked from commit 3f7e990fd4)
2020-10-20 16:05:13 -04:00
Miss Skeleton (bot) d12afba507
bpo-38439: Update the Windows Store package's icons for IDLE. Artwork by Andrew Clover (GH-22817)
(cherry picked from commit 6d883fbe14)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-10-20 10:20:05 -07:00
Andrew Kuchling b948d13ec0
[3.9] bpo-41192: Clarify the sys module's description of the auditing feature (GH-22821)
Co-authored-by: Éric Araujo <merwok@netwok.org>
(cherry picked from commit 0c37269be7)
2020-10-20 11:36:52 -04:00
Miss Skeleton (bot) 4aed781eb4
Doc: Add missing spaces after period for `posix_spawn` (GH-22730)
(cherry picked from commit 5b57fa6940)

Co-authored-by: Tomer Cohen <tomer@users.noreply.github.com>
2020-10-20 08:01:56 -07:00
Miss Skeleton (bot) b249aeae89
bpo-39693: mention KeyError in tarfile extractfile documentation (GH-18639)
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>
(cherry picked from commit ec42789e6e)

Closes bpo-39693.
2020-10-20 10:31:03 -04:00
Miss Skeleton (bot) 38a17d0752
bpo-41726: Update the refcounts info of PyType_FromModuleAndSpec in refcounts.dat (GH-22112) (GH-22808)
Update refcounts info of PyType_FromModuleAndSpec in refcounts.dat
(cherry picked from commit 1e2f051a61)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2020-10-20 14:30:04 +02:00
Miss Skeleton (bot) bd9d76bbbb
bpo-30612: Tweak Windows registry path syntax in the docs (GH-20281)
(cherry picked from commit ff1ae3dd33)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-10-20 05:23:39 -07:00
Miss Skeleton (bot) c17ff5cad2
bpo-38324: Fix test__locale.py Windows failures (GH-20529)
Use wide-char _W_* fields of lconv structure on Windows
Remove "ps_AF" from test__locale.known_numerics on Windows
(cherry picked from commit f2312037e3)

Co-authored-by: TIGirardi <tiagoigirardi@gmail.com>
2020-10-20 05:07:14 -07:00
Miss Skeleton (bot) 3fc7080220
bpo-41491: plistlib: accept hexadecimal integer values in xml plist files (GH-22764) (GH-22806)
(cherry picked from commit 3185267400)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-10-20 10:05:21 +02:00
Miss Skeleton (bot) aa7b03b31b
bpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS (GH-22762) (GH-22773)
(cherry picked from commit 93a1ccabde)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-10-20 09:17:22 +02:00
Miss Skeleton (bot) 479553c7c1
bpo-42051: Reject XML entity declarations in plist files (GH-22760)
(cherry picked from commit 05ee790f4d)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-10-19 19:34:37 -07:00
Miss Skeleton (bot) e43bee7e11
bpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691)
Reduces the rate at which the ENV CHANGED failure occurs in test_asyncio SSL tests (due to unclosed transport), but does not 100% resolve it.
(cherry picked from commit de73d432bb)

Co-authored-by: Justin Turner Arthur <justinarthur@gmail.com>
2020-10-19 18:40:01 -07:00
Miss Skeleton (bot) 72ce82abcf
bpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)
This PR replaces GH-1977. The reason for the replacement is two-fold.

The fix itself is different is that if the CTE header doesn't exist in the original message, it is inserted. This is important because the new CTE could be quoted-printable whereas the original is implicit 8bit.

Also the tests are different. The test_nonascii_as_string_without_cte test in GH-1977 doesn't actually test the issue in that it passes without the fix. The test_nonascii_as_string_without_content_type_and_cte test is improved here, and even though it doesn't fail without the fix, it is included for completeness.

Automerge-Triggered-By: @warsaw
(cherry picked from commit bf838227c3)

Co-authored-by: Mark Sapiro <mark@msapiro.net>
2020-10-19 16:11:37 -07:00
Miss Skeleton (bot) 335eb57823
[doc] Add link to Generic in typing (GH-22125)
(cherry picked from commit 5bfd60fc2b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-19 16:08:19 -07:00
Miss Skeleton (bot) 9308173f88
bpo-40901: Describe what "interface name" means on Windows (GH-20694)
(cherry picked from commit f85658a098)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
2020-10-19 15:49:55 -07:00
Miss Skeleton (bot) 6a9c1268ca
Document that `test.support.bytecode_helper` is new in 3.9 (GH-22618) (GH-22761)
(cherry picked from commit cf693e537d)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2020-10-19 19:44:06 -03:00
Miss Skeleton (bot) 05d52a0ad6
bpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394)
Co-authored-by: Christian Heimes <christian@python.org>
(cherry picked from commit 5456e78f45)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2020-10-19 15:32:36 -07:00
Miss Skeleton (bot) b62ecc21b4
bpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs (GH-21360)
On Windows, the default asyncio event loop is ProactorEventLoop (as of 3.8).
(cherry picked from commit 4dfb190a33)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-10-19 15:30:39 -07:00
Miss Skeleton (bot) e67f186898
bpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463)
(cherry picked from commit 33242a9328)

Co-authored-by: Michel Samia <m.samia@seznam.cz>
2020-10-19 15:24:05 -07:00
Miss Skeleton (bot) 9b5e373aa8
Link to the msvcrt module from the Windows FAQ (GH-22268)
(cherry picked from commit 5d9e657517)

Co-authored-by: abdo <abd.nh25@gmail.com>
2020-10-19 15:08:36 -07:00
Steve Dower 6b487e07d0
Remove extra pip package (GH-22778) 2020-10-19 21:05:04 +01:00
Miss Skeleton (bot) a358a0ad71
bpo-40484: Document compiler flags under AST module (GH-19885) (GH-22758)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
(cherry picked from commit 155938907c)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
2020-10-19 20:29:38 +01:00
Miss Skeleton (bot) 8f0b8b5749
Correct name of bytecode in change note. (GH-22723) (#22765)
(cherry picked from commit b580ed1d9d)

Co-authored-by: Mark Shannon <mark@hotpy.org>
2020-10-19 17:44:25 +02:00
Miss Skeleton (bot) 2ee6ef98b4
bpo-41192: Fix some broken anchors for audit event entries (GH-21310) (GH-22767)
(cherry picked from commit ebc8c38287)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2020-10-19 11:39:25 -04:00
Anthony Sottile 7c949020ef
bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)
(cherry picked from commit 3c0ac18504)
2020-10-19 00:16:22 +03:00
Miss Skeleton (bot) e5c7ac7a22
3.9 whatsnew: fix bpo issue for AST change (GH-22742) (GH-22749)
(cherry picked from commit 67f04878de)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2020-10-18 20:16:54 +03:00
Miss Skeleton (bot) a055ced9d4
bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22747)
(cherry picked from commit c304c9a7ef)

Co-authored-by: scaramallion <scaramallion@users.noreply.github.com>
2020-10-18 18:32:56 +03:00
Miss Skeleton (bot) 6a2aa4994e
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
(cherry picked from commit 3635388f52)

Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com>
2020-10-18 09:00:18 +03:00
Miss Skeleton (bot) 0fbddb14dc
bpo-40341: Remove some "discouraged solutions" in Doc/faq/programming.rst (GH-22726) (GH-22727)
(cherry picked from commit a22a19f354)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-10-16 13:27:59 -07:00
Miss Skeleton (bot) dff9161821
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22725)
(cherry picked from commit e9959c7118)
2020-10-16 18:21:49 +01:00
Xie Yanbo b30934e9af
[3.9] Fix incorrect parameter name (GH-22613) (GH-22628)
Automerge-Triggered-By: @Mariatta
(cherry picked from commit a42759351b)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
2020-10-15 22:55:28 +05:30
Miss Skeleton (bot) 78723b378b
Minor clarification (GH-22708) (GH-22709) 2020-10-15 00:09:33 -07:00