summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42057: Fix peephole optimizer (GH-22802)Inada Naoki2020-10-222-1/+3
|
* bpo-41910: specify the default implementations of object.__eq__ and ↵Miss Skeleton (bot)2020-10-222-6/+9
| | | | | | | 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>
* bpo-35181: Correct importlib documentation for some module attributes (GH-15190)Miss Skeleton (bot)2020-10-212-21/+11
| | | | | | | | | | | | | | | | | | @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 27f1bd8787d24ac53cc3dc6ea5eb00b8a3499839) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* Fix bpo-39416: Change "Numeric" to lower case; an english word, not a class ↵Miss Skeleton (bot)2020-10-211-1/+1
| | | | | | | | | | | | | | | | | 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 f8b1ccd63c94bcde1c15d56d24add89861b6ceee) Co-authored-by: kpinc <kop@karlpinc.com>
* bpo-41959: Fix grammar around class asyncio.MultiLoopChildWatcher text ↵Miss Skeleton (bot)2020-10-211-1/+1
| | | | | | | | | | (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 caff2934f46510920a6169e192707d59e9c55f6b) Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com> Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
* [3.9] bpo-39416: Document some restrictions on the default string ↵Miss Skeleton (bot)2020-10-212-0/+19
| | | | | | | | | | | | | | | | | | | | | | 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 c60394c7fc9cc09b16e9675a3eeb5844b6d8523f) Co-authored-by: kpinc <kop@karlpinc.com> Automerge-Triggered-By: GH:merwok
* bpo-38439: Add 256px IDLE icon to the .ico, drop gifs from it (GH-19648)Miss Skeleton (bot)2020-10-213-0/+6
| | | | | (cherry picked from commit faddc7449d07e883b8ad8bb95dd68ce6dbdc06e8) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Doc: Fix a typo/error in the docs for cached bytecode (GH-22445)Miss Skeleton (bot)2020-10-211-1/+1
| | | | | (cherry picked from commit cb115e36e1aba04b90b0ecac6f043e60064ac65b) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Doc: Do not suggest `s[::-1]` for reversed order (GH-22457)Miss Skeleton (bot)2020-10-212-7/+1
| | | | | (cherry picked from commit fb2e94692e3a8eb66915575f4a122d56fe8999a0) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Doc: Do not encourage using a base class name in a derived class (GH-22177)Miss Skeleton (bot)2020-10-211-6/+6
| | | | | (cherry picked from commit 4642ccd1c3e460cb2746d3f2095f1c1d1bafa4fe) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Doc: Remove old Python version from future stmt (GH-21802)Miss Skeleton (bot)2020-10-211-2/+2
| | | | | (cherry picked from commit eba109a28f48b20b05f08abbe6604eebb07788f9) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-41316: Make tarfile follow specs for FNAME (GH-21511)Miss Skeleton (bot)2020-10-214-1/+17
| | | | | | | | | | | | | 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 22748a83d927d3da1beaed771be30887c42b2500) Co-authored-by: Artem Bulgakov <ArtemSBulgakov@ya.ru>
* bpo-41646: Mention path-like objects support in the docs for shutil.copy() ↵Miss Skeleton (bot)2020-10-211-3/+3
| | | | | | | (GH-22208) (cherry picked from commit 8f2b991eef062c22c429a96983c78be007180b66) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-41744: Package python.props with correct name in NuGet package (GH-22154)Miss Skeleton (bot)2020-10-215-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>
* Update idlelib/help.html to current Sphinx output (GH-22833)Miss Skeleton (bot)2020-10-211-33/+37
| | | | | | idle.rst is unchanged (cherry picked from commit a460d45063844a21c20fa8b0d23878165f99f3b5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.9] bpo-42010: [docs] Clarify subscription of types (GH-22822) (GH-22840)Miss Skeleton (bot)2020-10-202-2/+17
| | | | | | | | (cherry picked from commit 7cdf30fff39ea97f403b5472096349998d190e30) Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com> Automerge-Triggered-By: GH:gvanrossum
* bpo-41192: Add documentation of undocumented audit events (GH-22831)Miss Skeleton (bot)2020-10-205-2/+56
| | | | (cherry picked from commit 3f7e990fd49dbabc1dde41ce58c1bdda9f56ead7)
* bpo-38439: Update the Windows Store package's icons for IDLE. Artwork by ↵Miss Skeleton (bot)2020-10-204-2/+8
| | | | | | | Andrew Clover (GH-22817) (cherry picked from commit 6d883fbe14751b58d9ed2fd708322613d8931035) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.9] bpo-41192: Clarify the sys module's description of the auditing ↵Andrew Kuchling2020-10-201-10/+25
| | | | | | | feature (GH-22821) Co-authored-by: Éric Araujo <merwok@netwok.org> (cherry picked from commit 0c37269be7065b9b15b7b3a4406084f9535a793a)
* Doc: Add missing spaces after period for `posix_spawn` (GH-22730)Miss Skeleton (bot)2020-10-201-2/+2
| | | | | (cherry picked from commit 5b57fa69408c4856bf0ae02f2eaa3db1ef980ea6) Co-authored-by: Tomer Cohen <tomer@users.noreply.github.com>
* bpo-39693: mention KeyError in tarfile extractfile documentation (GH-18639) Miss Skeleton (bot)2020-10-204-7/+11
| | | | | | Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com> (cherry picked from commit ec42789e6e14f6b6ac13569aeadc13798d7173a8) Closes bpo-39693.
* bpo-41726: Update the refcounts info of PyType_FromModuleAndSpec in ↵Miss Skeleton (bot)2020-10-202-0/+6
| | | | | | | | refcounts.dat (GH-22112) (GH-22808) Update refcounts info of PyType_FromModuleAndSpec in refcounts.dat (cherry picked from commit 1e2f051a6127904cfee5f9e4021dd6e4a4d51c0f) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-30612: Tweak Windows registry path syntax in the docs (GH-20281)Miss Skeleton (bot)2020-10-201-3/+3
| | | | | (cherry picked from commit ff1ae3dd334faa2006394c2318db385cdc42030a) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-38324: Fix test__locale.py Windows failures (GH-20529)Miss Skeleton (bot)2020-10-204-5/+40
| | | | | | | Use wide-char _W_* fields of lconv structure on Windows Remove "ps_AF" from test__locale.known_numerics on Windows (cherry picked from commit f2312037e3a974d26ed3e23884f94c6af111a27a) Co-authored-by: TIGirardi <tiagoigirardi@gmail.com>
* bpo-41491: plistlib: accept hexadecimal integer values in xml plist files ↵Miss Skeleton (bot)2020-10-203-1/+19
| | | | | | | (GH-22764) (GH-22806) (cherry picked from commit 3185267400be853404f22a1e06bb9fe1210735c7) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS ↵Miss Skeleton (bot)2020-10-203-0/+18
| | | | | | | (GH-22762) (GH-22773) (cherry picked from commit 93a1ccabdede416425473329b8c718d507c55e29) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-42051: Reject XML entity declarations in plist files (GH-22760)Miss Skeleton (bot)2020-10-203-0/+28
| | | | | (cherry picked from commit 05ee790f4d1cd8725a90b54268fc1dfe5b4d1fa2) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-38912: fix close before connect callback in test_asyncio SSL tests ↵Miss Skeleton (bot)2020-10-202-0/+3
| | | | | | | | (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 de73d432bb29f6439f2db16cb991e15e09c70c26) Co-authored-by: Justin Turner Arthur <justinarthur@gmail.com>
* bpo-27321 Fix email.generator.py to not replace a non-existent header. ↵Miss Skeleton (bot)2020-10-193-1/+42
| | | | | | | | | | | | | | (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 bf838227c35212709dc43b3c3c57f8e1655c1d24) Co-authored-by: Mark Sapiro <mark@msapiro.net>
* [doc] Add link to Generic in typing (GH-22125)Miss Skeleton (bot)2020-10-191-1/+1
| | | | | | (cherry picked from commit 5bfd60fc2bf26bd6fa23a3a50c7990b7f68b3ea3) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-40901: Describe what "interface name" means on Windows (GH-20694)Miss Skeleton (bot)2020-10-191-0/+19
| | | | | (cherry picked from commit f85658a09878c658ae0e0590bfa30e4ce51c9a04) Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
* Document that `test.support.bytecode_helper` is new in 3.9 (GH-22618) (GH-22761)Miss Skeleton (bot)2020-10-191-0/+2
| | | | | | | (cherry picked from commit cf693e537dc8aaa14315a7f59baec4a31d1167d3) Co-authored-by: Saiyang Gou <gousaiyang@163.com> Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* bpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394)Miss Skeleton (bot)2020-10-193-6/+12
| | | | | | Co-authored-by: Christian Heimes <christian@python.org> (cherry picked from commit 5456e78f4593edc277ab72fb9a9db1ebae7d4c2d) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs ↵Miss Skeleton (bot)2020-10-191-4/+2
| | | | | | | | (GH-21360) On Windows, the default asyncio event loop is ProactorEventLoop (as of 3.8). (cherry picked from commit 4dfb190a33a1deac60306f15d52d2fe11fb93464) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463)Miss Skeleton (bot)2020-10-191-1/+1
| | | | | (cherry picked from commit 33242a9328cb3912f02819d2d092bf89681000b2) Co-authored-by: Michel Samia <m.samia@seznam.cz>
* Link to the msvcrt module from the Windows FAQ (GH-22268)Miss Skeleton (bot)2020-10-191-1/+1
| | | | | (cherry picked from commit 5d9e6575177f3e5f9aa20d6a08ae1204f122e672) Co-authored-by: abdo <abd.nh25@gmail.com>
* Remove extra pip package (GH-22778)Steve Dower2020-10-191-0/+0
|
* bpo-40484: Document compiler flags under AST module (GH-19885) (GH-22758)Miss Skeleton (bot)2020-10-192-20/+46
| | | | | | | | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> (cherry picked from commit 155938907c2b3df71608ddeaa0a43d2ec1f2c699) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* Correct name of bytecode in change note. (GH-22723) (#22765)Miss Skeleton (bot)2020-10-191-1/+1
| | | | | (cherry picked from commit b580ed1d9d55461d8dde027411b90be26cae131e) Co-authored-by: Mark Shannon <mark@hotpy.org>
* bpo-41192: Fix some broken anchors for audit event entries (GH-21310) (GH-22767)Miss Skeleton (bot)2020-10-193-4/+3
| | | | | | (cherry picked from commit ebc8c3828779374b9be4fae5c8ffc0059d36ac8c) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* bpo-40492: Fix --outfile with relative path when the program changes it ↵Anthony Sottile2020-10-184-1/+28
| | | | | working dir (GH-19910) (cherry picked from commit 3c0ac18504cfeed822439024339d5717f42bdd66)
* 3.9 whatsnew: fix bpo issue for AST change (GH-22742) (GH-22749)Miss Skeleton (bot)2020-10-181-1/+1
| | | | | | (cherry picked from commit 67f04878debbcec60191cddbddf9c83e8b9b36fe) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22747)Miss Skeleton (bot)2020-10-184-1/+7
| | | | | | (cherry picked from commit c304c9a7efa8751b5bc7526fa95cd5f30aac2b92) Co-authored-by: scaramallion <scaramallion@users.noreply.github.com>
* bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message ↵Miss Skeleton (bot)2020-10-183-1/+16
| | | | | | | (GH-19940) (cherry picked from commit 3635388f52b42e5280229104747962117104c453) Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com>
* bpo-40341: Remove some "discouraged solutions" in Doc/faq/programming.rst ↵Miss Skeleton (bot)2020-10-161-21/+1
| | | | | | | | | (GH-22726) (GH-22727) (cherry picked from commit a22a19f3548f6064035e7c59a19cda1e9506db92) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22725)Miss Skeleton (bot)2020-10-161-2/+2
| | | (cherry picked from commit e9959c71185d0850c84e3aba0301fbc238f194a9)
* [3.9] Fix incorrect parameter name (GH-22613) (GH-22628)Xie Yanbo2020-10-151-1/+1
| | | | | | Automerge-Triggered-By: @Mariatta (cherry picked from commit a42759351bff7b07fa8bf2cece0088f8539721d1) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
* Minor clarification (GH-22708) (GH-22709)Miss Skeleton (bot)2020-10-151-3/+3
|
* bpo-41984: GC track all user classes (GH-22701/GH-22702)Miss Skeleton (bot)2020-10-155-21/+52
| | | (cherry picked from commit c13b847a6f913b72eeb71651ff626390b738d973)
* bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466)Miss Skeleton (bot)2020-10-154-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running in a non-UTF-8 locale, if an error occurs while importing a native Python module (say because a dependent share library is missing), the error message string returned may contain non-ASCII code points causing a UnicodeDecodeError. PyUnicode_DecodeFSDefault is used for buffers which may contain filesystem paths. For consistency with os.strerror(), PyUnicode_DecodeLocale is used for buffers which contain system error messages. While the shortname parameter is always encoded in ASCII according to PEP 489, it is left decoded using PyUnicode_FromString to minimize the changes and since it should not affect the decoding (albeit _potentially_ slower). In dynload_hpux, since the error buffer contains a message generated from a static ASCII string and the module filesystem path, PyUnicode_DecodeFSDefault is used instead of PyUnicode_DecodeLocale as is used elsewhere. * bpo-41894: Fix bugs in dynload error msg handling For both dynload_aix and dynload_hpux, properly handle the possibility that decoding strings may return NULL and when such an error happens, properly decrement any previously decoded strings and return early. In addition, in dynload_aix, ensure that we pass the decoded string *object* pathname_ob to PyErr_SetImportError instead of the original pathname buffer. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 2d2af320d94afc6561e8f8adf174c9d3fd9065bc) Co-authored-by: Kevin Adler <kadler@us.ibm.com>