| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
(cherry picked from commit 55f41e45b4318cbe19209f5144641344d0049fb8)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 1ce853f37783575e2b3aaa159ddcebc8660830ef)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit a48e0eb9673ec96d1decb8a230331533cfb6138b)
Co-authored-by: wim glenn <wim.glenn@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit c2ccac7b9f9a1132ca36255b0ddfeecef4371aa3)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
|
|
| |
The documentation was not covering multiple targets enclosed by
parenthesis nor multiple targets enclosed by brackets, adding them all
would be heavy, an else cover them all and is lighter to read.
(cherry picked from commit 082875dcd6d482558e5f1da97a1c801d60b3ed5b)
Co-authored-by: Julien Palard <julien@palard.fr>
|
| |
|
|
|
|
| |
https://bugs.python.org/issue33699
(cherry picked from commit b086c8afdb8c862011e3e27d4c8f6833749f2c56)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit cdb96f45b61a40a7e7c4c83b4b1f14ef6f5cf4fa)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit ea6a28c9f7e4baa5fe775cebce697a14a7d7da8b)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
|
|
| |
access. (GH-10323)
https://bugs.python.org/issue35119
(cherry picked from commit 0bee3c36d406e47fa9f99cfc1e07b701512c4f3f)
Co-authored-by: Denis Osipov <osipov_d@list.ru>
|
| |
|
|
|
| |
(cherry picked from commit 913876d824d969f8c7431e8a9d4610a9a11a786e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
Fix a bug I introduced in GH-9864 by which coroutines are treated as synonymous of function coroutines.
Also, fix the same mistake (coroutines == function coroutines) already present in other parts of the reference.
I'm very sorry for the hassle.
(cherry picked from commit 95f68b10d5c9852ef4dcf5b9f2ae15fdf74e8f1c)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit ddb961d2abe5d5fde76d85b21a77e4e91e0043ad)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 0f14fc1a7cb2ea0012d0a943e4460acdee2108d7)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit c8bb467f4006fbf5d24d2491248bcbabee5d827e)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
|
|
| |
documentation (GH-5982)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit ad8a0004206ba7aec5a8a60fce413da718080db2)
Co-authored-by: Tony Flury <anthony.flury@btinternet.com>
|
| |
|
|
|
| |
(cherry picked from commit 3c1b590472d567e22a607ba31271865cd90c8e9b)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-8401)
(cherry picked from commit 6921ef7bef4eab3819b3d0fda5fa3e3b2a8c0613)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-7259)
(cherry picked from commit caccca78e46bf3c3b24e09b3afb1c1b08c39990c)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
| |
The statement is true for Windows (and macOS) also.
(cherry picked from commit c9d43c702a53804c23ecb22a0dbf6a47c804d2b1)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 695118600fecaa7b95634e168ad7cbbc561fd1ec)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
| |
'expresson list' refers to the grammar term 'expression_list' in the subscription production.
(cherry picked from commit 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 0aa17ee6a76df0946d42e7657a501f1862065a22)
Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
|
| |
|
|
|
|
| |
Also, standardize indentation of generated tables.
(cherry picked from commit 7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
| |
|
|
|
|
| |
This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".
(cherry picked from commit 00818c8ffd657f9ec727e366bfffd9c2135fa5ab)
Co-authored-by: Zach Mitchell <zmitchell@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 268cc7c3f8f58075b42ff0cd6b6c6c5d76044895)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 8ae8e6af37f29163ee263e293570cb892dc5b5d5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 63536bd286097e770909052052a21804a5e09b66)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
|
| |
|
|
|
| |
(cherry picked from commit bd5f96581bf23f6d05fc106996428a8043b6b084)
Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 441d945eb33f8dc130b268ebfa11315b98a2433c)
Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit d08972fdb92cad6b813d22205752c97ea18df060)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 496431ffb6c29719332bf2af773349e8dd85e45a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
`int` fails back to `__trunc__` is `__int__` isn't defined, so cover
that in the docs.
(cherry picked from commit 308eab979d153f1ab934383dc08bc4546ced8b6c)
Co-authored-by: Eric Appelt <eric.appelt@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit aec7532ed3ccbd29d3429a3f375e25f956c44003)
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
property (GH-5543)
When `__getattr__` is implemented, attribute lookup will always fall back to that,
even if the initial failure comes from `__getattribute__` or a descriptor's `__get__`
method (including property methods).
(cherry picked from commit d1f318105b8781b01f3507d5cb0fd841b977d5f2)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
| |
|
|
| |
The f-string example for using datetime format specifier does not match the given output.
Changed the format from %b to %B so it matches the output of "January".
|
| |
|
|
|
|
| |
Make it clear that setting __class__ on a module has worked since 3.5,
but support for __getattr__ and __dir__ on module instances requires 3.7+
Patch by Cheryl Sabella.
|
| |
|
|
|
|
|
|
| |
* Document `from __future__ import annotations`
* Provide plumbing and tests for `from __future__ import annotations`
* Implement unparsing the AST back to string form
This is required for PEP 563 and as such only implements a part of the
unparsing process that covers expressions.
|
| |
|
|
|
|
|
| |
link (GH-5157)
In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
|
| |
|
|
| |
Mention that the format-specifier mini language in f-strings
is the same one used by str.format.
|
| |
|
|
|
|
| |
* Fix #32377: improve __del__ docs and fix mention about resurrection
* Mention that CPython only calls __del__ once.
|
| |
|
| |
Link to the Format Specification Mini Language section from f-strings' documentation.
|
| |
|
|
|
| |
Implement PEP 562: module __getattr__ and __dir__.
The implementation simply updates module_getattro and
module_dir.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Python now supports checking bytecode cache up-to-dateness with a hash of the
source contents rather than volatile source metadata. See the PEP for details.
While a fairly straightforward idea, quite a lot of code had to be modified due
to the pervasiveness of pyc implementation details in the codebase. Changes in
this commit include:
- The core changes to importlib to understand how to read, validate, and
regenerate hash-based pycs.
- Support for generating hash-based pycs in py_compile and compileall.
- Modifications to our siphash implementation to support passing a custom
key. We then expose it to importlib through _imp.
- Updates to all places in the interpreter, standard library, and tests that
manually generate or parse pyc files to grok the new format.
- Support in the interpreter command line code for long options like
--check-hash-based-pycs.
- Tests and documentation for all of the above.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-4579)
The current behaviour of yield expressions inside comprehensions and
generator expressions is essentially an accident of implementation - it
arises implicitly from the way the compiler handles yield expressions inside
nested functions and generators.
Since the current behaviour wasn't deliberately designed, and is inherently
confusing, we're deprecating it, with no current plans to reintroduce it.
Instead, our advice will be to use a named nested generator definition
for cases where this behaviour is desired.
|
| |
|
| |
It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee
|
| |
|
|
|
| |
async and await keywords has been merged into upstream, but they are
all missing in the lexical analysis docs. This change adds them to the
appropriate keywords section in documentation.
|
| |
|
| |
bpo-31936
|
| |
|
|
| |
bpo-31799: Make module.__spec__ more discoverable
|
| | |
|