| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
PyType_FromModuleAndSpec() (GH-23410)
* There were leaks if Py_tp_bases is used more than once or if some call is
failed before setting tp_bases.
* There was a crash if the bases argument or the Py_tp_bases slot is not a tuple.
* The documentation was not accurate.
(cherry picked from commit 1db76394ea79030aa4ed5349c950f6c6da51450f)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 6edf06b24a9335a2b0d44634a95e4f5ba0d586d9)
Co-authored-by: ArioA <ArioA@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
or error of the test. (GH-22740) (GH-22782)
(cherry picked from commit fa8748271a61177e9bf609921fa464cc6990478b)
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
|
|
|
|
|
|
|
|
| |
(GH-23184)
(cherry picked from commit 7c01f1540f958d4f52188b28afca721a9a6925c3)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
|
|
| |
The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
(cherry picked from commit aa01011003bb855cd52abfd49f2443446590d913)
Co-authored-by: Yash Shete <universeyash4@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 8836574a0f34ae81643c8af79bbb9062e332a4e3)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
|
|
|
|
|
|
|
|
| |
(GH-23269)
(cherry picked from commit bbeb2d266d6fc1ca9778726d0397d9d6f7a946e3)
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
|
|
|
|
|
| |
(cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
|
|
|
|
|
|
| |
Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
(cherry picked from commit fd6f6fa403789c8877b1099cc6fcc437d2e54634)
Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
iterables (GH-23073) (GH-23105)
People call wait() and as_completed() with various non-set iterables,
a list should be the most common but there are others as well[1].
Considering typeshed also documents wait()[2] and as_completed()[3]
as accepting arbitrary iterables I think it's a good idea to document
the status quo better.
[1] https://github.com/aio-libs/aiokafka/pull/672
[2] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L161
[3] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L40.
(cherry picked from commit 3d86d090dcbbdfdd3e5a5951cab30612d6131222)
Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
|
|
|
|
|
| |
(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 0f25c231b3a024e358c3e55d9aba2f7bcc49630c)
Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
comprehensions'(GH-20272)
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
(cherry picked from commit 2d55aa9e37c9c84f4f6a8135d0326da0bcd8f38b)
Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
|
|
|
|
|
| |
(cherry picked from commit e01e442125bbc98e6dab66f38ecc6c45f69e6587)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
|
|
|
|
|
|
|
| |
(cherry picked from commit ec388cfb4ede56dace2bb78851ff6f38fa2a6abe)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Automerge-Triggered-By: GH:warsaw
|
|
|
|
|
|
|
|
|
| |
Add documentation to help diagnose CDLL dependent DLL loading errors
on windows for OSError with message:
"[WinError 126] The specified module could not be found"
This error is otherwise difficult to diagnose.
(cherry picked from commit b6f2fc90409e291822166d74ce7402e0ef4dba91)
Co-authored-by: Philippe Ombredanne <pombredanne@gmail.com>
|
|
|
| |
(cherry picked from commit 283f9a253b4ff4df728558205629b3bb3af6e47f)
|
|
|
|
|
|
|
| |
object.__ne__ (GH-22874) (#22877)
See Objects/typeobject.c:object_richcompare() for the implementation of this in CPython.
Co-authored-by: Brett Cannon <brett@python.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
@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>
|
|
|
|
|
|
|
|
|
| |
(GH-22580) (GH-22866)
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
representations of numeric classes (GH-18111) (GH-22861)
[[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
|
|
|
|
|
| |
(cherry picked from commit cb115e36e1aba04b90b0ecac6f043e60064ac65b)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit fb2e94692e3a8eb66915575f4a122d56fe8999a0)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit eba109a28f48b20b05f08abbe6604eebb07788f9)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
|
|
|
|
|
|
| |
(GH-22208)
(cherry picked from commit 8f2b991eef062c22c429a96983c78be007180b66)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
| |
(cherry picked from commit 3f7e990fd49dbabc1dde41ce58c1bdda9f56ead7)
|
|
|
|
|
|
|
|
|
|
| |
(GH-22820)
Co-authored-by: Éric Araujo <merwok@netwok.org>
(cherry picked from commit 0c37269be7065b9b15b7b3a4406084f9535a793a)
Co-authored-by: Andrew Kuchling <amk@amk.ca>
Co-authored-by: Andrew Kuchling <amk@amk.ca>
|
|
|
|
|
| |
(cherry picked from commit 5b57fa69408c4856bf0ae02f2eaa3db1ef980ea6)
Co-authored-by: Tomer Cohen <tomer@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit ff1ae3dd334faa2006394c2318db385cdc42030a)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit f85658a09878c658ae0e0590bfa30e4ce51c9a04)
Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
|
|
|
|
|
|
|
|
| |
(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>
|
|
|
|
|
| |
(cherry picked from commit 33242a9328cb3912f02819d2d092bf89681000b2)
Co-authored-by: Michel Samia <m.samia@seznam.cz>
|
|
|
|
|
| |
(cherry picked from commit 5d9e6575177f3e5f9aa20d6a08ae1204f122e672)
Co-authored-by: abdo <abd.nh25@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit ebc8c3828779374b9be4fae5c8ffc0059d36ac8c)
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
|
|
|
|
|
|
|
| |
* bpo-41855: Backport fixes from importlib_metadata 1.5.2.
* Add blurb.
* Add anchor for finders and loaders
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-22592)
`site.getusersitepackages()` returns the location of the user-specific site-packages directory
even when the user-specific site-packages is disabled.
```
$ python -s -m site
sys.path = [
'/home/user/conda/lib/python37.zip',
'/home/user/conda/lib/python3.7',
'/home/user/conda/lib/python3.7/lib-dynload',
'/home/user/conda/lib/python3.7/site-packages',
]
USER_BASE: '/home/user/.local' (exists)
USER_SITE: '/home/user/.local/lib/python3.7/site-packages' (doesn't exist)
ENABLE_USER_SITE: False
```
It was not practical to prevent the function from returning None if user-specific site-packages are disabled, since there are other uses of the function which are relying on this behaviour (e.g. `python -m site`).
(cherry picked from commit 35f041dd0171f575fc3adce1709b31fdf45a5ff6)
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
|
|
|
|
|
|
| |
Automerge-Triggered-By: @gvanrossum.
(cherry picked from commit d4b9edd5052a2d9ae3d2be69975cc933afb37737)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
|
|
|
|
|
| |
Automerge-Triggered-By: @Mariatta
(cherry picked from commit a42759351bff7b07fa8bf2cece0088f8539721d1)
Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
|
|
|
|
|
|
|
| |
is called (GH-22505)
(cherry picked from commit d02d824e05e2cb86f4df381be18832e76e2c475f)
Co-authored-by: Brett Cannon <brett@python.org>
|
|
|
|
|
|
| |
Remove mention of space in "remove multiple items from list".
(cherry picked from commit 060937da988347a887a5f165b023d972fcb97802)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
|
| |
modifying an XML tree while iterating over it. (GH-22464)
(cherry picked from commit 40db798692ca783fc2163656f196ac77e8b9e792)
Co-authored-by: scoder <stefan_ml@behnel.de>
|
|
|
|
|
| |
(GH-22526) (GH-22537)
(cherry picked from commit 1ed54435268b285964141fb74d47ceaa33ea79ab)
|
|
|
|
|
|
|
|
| |
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit 3fe614893742faee3c64e6d974e11329a496424f)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf)
Co-authored-by: Ram Rachum <ram@rachum.com>
|
|
|
|
|
| |
(cherry picked from commit 20ce62f00957d11f24f6449cd5c0ef5dd67174d4)
Co-authored-by: Campbell Barton <ideasman42@gmail.com>
|
|
|
|
|
|
| |
From `In particularly,` to `In particular,`
(cherry picked from commit 63298930fb531ba2bb4f23bc3b915dbf1e17e9e1)
Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
|
|
|
|
|
|
|
| |
In the "Sequences (Tuples/Lists)" section, add
"How do you remove multiple items from a list".
(cherry picked from commit 5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
| |
The existing line is easily read as being incomplete.
(cherry picked from commit 00eb063b6600fdb4ba5cfb99da83cc1660ec69bf)
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
|
|
|
|
|
| |
(cherry picked from commit 9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|