| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
(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 2b44e302ec3079363c4d5c875677945953705c58)
Co-authored-by: Aaron Hall, MBA <aaronchall@yahoo.com>
|
|
|
|
|
|
|
|
|
|
| |
property (GH-5542)
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>
|
|
|
|
|
|
|
|
|
| |
(GH-5465)
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".
(cherry picked from commit b299393cc372f3ecbef4304f8eaa4c7838e975ca)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
|
|
|
|
|
|
|
| |
The module `__class__` attribute documentation added to 3.7 for PEP 562
(dynamic module attributes) also applies to earlier versions. This backports
that subset of the new docs to the 3.6 branch so that it will appear in the
main online documentation and in the final 3.6 binary release.
Patch by Cheryl Sabella.
|
|
|
|
|
|
|
|
| |
link (GH-5157) (GH-5160)
In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
(cherry picked from commit 3764bb075a73074f55568fc7c37adde6054eb59a)
|
|
|
|
|
| |
Mention that the format-specifier mini language in f-strings
is the same one used by str.format.
(cherry picked from commit f4e21a2a72f76d75a6cc6f74faf910a5f3108482)
|
|
|
|
|
|
|
|
| |
(#4929)
* Fix GH-32377: improve __del__ docs and fix mention about resurrection
* Mention that CPython only calls __del__ once.
(cherry picked from commit 4b965930e8625f77cb0e821daf5cc40e85b45f84)
|
|
|
|
| |
Link to the Format Specification Mini Language section from f-strings' documentation.
(cherry picked from commit d924fa523df766dbf2f8b6a28ae502eb3433bfe5)
|
|
|
|
| |
It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee
(cherry picked from commit 7c9da3e5ba060463b661da58ec3fe6beedce5566)
|
|
|
|
| |
bpo-31799: Make module.__spec__ more discoverable
(cherry picked from commit 191e3138200906e43cba9347177914325b54843f)
|
|
|
|
| |
Replace "restriction" with "restrictions".
(cherry picked from commit 8d59aca4a953b097a9b02b0ecafef840e4ac5855)
|
|
|
|
|
|
|
| |
(GH-3691) (GH-3754)
- Remove the second mention about the `u` prefix
- Remove the second mention about numeric literals do not include a sign
(cherry picked from commit 4a2d00cb4525fcb3209f04531472ba6a359ed418)
|
|
|
|
|
| |
(GH-3633) (GH-3638)
(cherry picked from commit 9b47af65375fab9318e88ccb061394a36c8c6c33)
|
|
|
|
| |
Shorten the comment to: "using integer format specifier"
(cherry picked from commit 63c591c0b0b57870a606e8edc59afe6264e7504d)
|
|
|
|
|
| |
Provide additional examples of using format specifiers in f-strings
Added examples for using integer and date format specifiers.
(cherry picked from commit f3618970690b08ed88e430ba8017859b4fafc3f9)
|
|
|
| |
(cherry picked from commit b8d1b9d7c697dd0401491b6d43047acbaf425f02)
|
|
|
| |
(cherry picked from commit 60dbed18509f99af8eaa685d9736f954b8d621fb)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-1915)
Builtin container types have two potential link targets in the docs:
- their entry in the list of builtin callables
- their type documentation
This change brings `bytes` and `bytearray` into line with other
container types by having cross-references default to linking to
their type documentation, rather than their builtin callable entry..
(cherry picked from commit c6db4811f9ea3aeff0e1fafe1c60a22835ef359e)
|
|
|
| |
(cherry picked from commit f34c6850203a2406c4950af7a9c8a134145df4ea)
|
|
|
| |
(cherry picked from commit 9efad1e5aef32a6d8ca288793e8ee6df8782f615)
|
|
|
|
|
|
|
|
|
|
|
| |
The data model section of the language reference was written well
before the zero-argument form of super() was added.
To avoid giving the impression that they're doing something
unusual, this updates the description of `__new__` and `__init__`
to use the zero-argument form.
Patch by Cheryl Sabella.
(cherry picked from commit 12b1c180986fc744331b8f30d3d2f49a0fdb43dd)
|
|
|
|
| |
Original patch by Dennis Mårtensson.
(cherry picked from commit 763557eac06ba60d7c5133e4f80df8870d8f917e)
|
|
|
|
|
| |
Replace `an ModuleNotFoundError` with `a ModuleNotFoundError`.
Replace `an path` with `a path`.
(cherry picked from commit 9c972b578002cc3bbbf2ebf2856c69de892bc9e2)
|
|
|
|
|
| |
detail (GH-1725) (GH-1727)
(cherry picked from commit 43c8a9e39bb2d4f25ed7ae17a55f34e375d1868b)
|
|
|
| |
(cherry picked from commit 3378b2062c7fbb77a9b5e6d315d6b94160fac69a)
|
|
|
| |
(cherry picked from commit c138d84b8d27d338872587aae69a73d8f9d16641)
|
|
|
|
|
|
|
| |
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>
(cherry picked from commit 8856940cf2e82cb17db2b684cd5732fe658605ca)
|
|
|
|
|
| |
value. (GH-1256) (#1259)
(cherry picked from commit 85157cd)
|
|
|
|
| |
s/keys and elements/keys and values/
(cherry picked from commit cdcac039fb447f2ab04efcacbe663751bb2cb4ec)
|
|
|
| |
(cherry picked from commit 0ae7c8bd614d3aa1fcaf2d71a10ff1148c80d9b5)
|
|
|
| |
(cherry picked from commit fad7f1560669af1766c583c7ef242c55d8c8de41)
|
|
|
| |
(cherry picked from commit d4e89287b397c7382c12d3f3d9fd901fd8243b3c)
|
|
|
| |
(cherry picked from commit 1f5639c77f736c18fb5a85b4a1850121e25c788e)
|
|
|
| |
(cherry picked from commit 6b4a5f45e2df524174a97832571c82c76a3d424a)
|
|
|
| |
(cherry picked from commit 46ce7599af82a929506baeaaee5c149970440c4c)
|
|
|
| |
(cherry picked from commit 132ac381fe7eb593e3d7c63926f90285bba13cdc)
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Patch by Jim Fasarakis-Hilliard.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Patch by Jim Fasarakis-Hilliard.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
Issue #28383: __hash__ documentation recommends naive XOR to combine but this
is suboptimal. Update the doc to suggest to reuse the hash() method using a
tuple, with an example.
|
| |
| |
| |
| | |
Patch by Eric Appelt.
|