Miss Islington (bot)
321491a536
bpo-15243: Document __prepare__ as classmethod (GH-17124)
...
(cherry picked from commit 7de617455e
)
Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
2020-01-25 22:04:16 +03:00
Miss Islington (bot)
cfeacf2289
Fix the parameter list of object. _rpow_ (GH-GH-16477)
...
(cherry picked from commit abc0c4fa99
)
Co-authored-by: HongWeipeng <961365124@qq.com>
2020-01-05 14:37:44 -08:00
Miss Islington (bot)
cbfafa3e36
bpo-39037: Fix lookup order of magic methods in with statement documentation (GH-17608)
...
* __enter__ is now looked up before __exit__ to give a more intuitive error message
* add pseudo-code equivalent for the with statement
* fix pseudo-code for the async with statement to use a finally clause
* use SUITE rather than BLOCK for consistency with the language grammar
Patch by Géry Ogam.
(cherry picked from commit 226e6e7d43
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2019-12-29 21:31:18 -08:00
Batuhan Taşkaya
eba61f33d6
[3.8] bpo-38316: Fix co_stacksize documentation (GH-16983) (GH-17661)
...
(cherry picked from commit d587272fe3
)
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
https://bugs.python.org/issue38316
Automerge-Triggered-By: @vstinner
2019-12-19 06:44:27 -08:00
Miss Islington (bot)
c0db88f6ab
bpo-38524: clarify example a bit and improve formatting (GH-17406)
...
(cherry picked from commit 02519f75d1
)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2019-11-27 21:29:02 -08:00
Miss Islington (bot)
0f9c9d5328
bpo-38524: document implicit and explicit calling of descriptors' __set_name__ (GH-17364)
...
(cherry picked from commit 1bddf890e5
)
Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
2019-11-27 00:53:52 -08:00
Miss Islington (bot)
20a4f6cde6
bpo-25866: Minor cleanups to "sequence" in docs (GH-17177) (GH-17208)
...
(cherry picked from commit 4544e78ec4
)
Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
2019-11-17 14:13:33 -08:00
Miss Islington (bot)
5a3b8d877d
Fix minor typos. (GH-17095)
...
(cherry picked from commit 2d56af7a94
)
Co-authored-by: Shu <23287722+susan-shu-c@users.noreply.github.com>
2019-11-12 19:18:47 -08:00
Miss Skeleton (bot)
11f0f11c48
bpo-38434: Fixes some audit event documentation (GH-16932)
...
(cherry picked from commit 894e30ce0b
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2019-10-26 13:09:35 -07:00
Miss Islington (bot)
be2aa58fdc
bpo-35224: Additional documentation for Assignment Expressions (GH-15935) (GH-15967)
...
Add or update assignment expression documentation for:
- FAQ - Design
- Reference - Expressions
- Reference - Lexical Analysis
https://bugs.python.org/issue35224
Automerge-Triggered-By: @matrixise
(cherry picked from commit 6357c95716
)
Co-authored-by: Emily Morehouse <emily@cuttlesoft.com>
2019-09-11 17:12:09 +02:00
Miss Islington (bot)
4d2babd990
bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) (GH-15940)
...
https://bugs.python.org/issue33459
Automerge-Triggered-By: @matrixise
(cherry picked from commit dc26997109
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-09-11 15:38:17 +02:00
Steve Dower
ed99bb9ca6
bpo-37913: document that __length_hint__ can return NotImplemented (GH-15383)
2019-09-10 15:31:26 +01:00
Miss Islington (bot)
c71ae1a45b
bpo-36743: __get__ is sometimes called without the owner argument (GH-12992) (GH-15589)
...
(cherry picked from commit 0dac68f1e5
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-29 02:02:51 -07:00
Miss Islington (bot)
c841fb9e06
bpo-15542: Documentation incorrectly suggests __init__ called after direct __new__ call (GH-15478) (GH-15506)
...
(cherry picked from commit 6b16d938d6
)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
2019-08-26 00:19:17 -07:00
Miss Islington (bot)
0ad85681de
bpo-32118: Simplify docs for sequence comparison (GH-15450) ( #15466 )
...
(cherry picked from commit edd21129dd
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-24 10:53:09 -07:00
Miss Islington (bot)
076d0b9f5d
bpo-29535: Remove promize about hash randomization of datetime objects. (GH-15269)
...
(cherry picked from commit e9c90aa431
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-08-24 03:19:51 -07:00
Serhiy Storchaka
4c5b6bac24
[3.8] bpo-32912: Revert SyntaxWarning on invalid escape sequences (GH-15142)
...
* bpo-32912: Revert warnings for invalid escape sequences.
DeprecationWarning will continue to be emitted for invalid escape sequences in string and bytes literals in 3.8 just as it did in 3.7.
SyntaxWarning may be emitted in the future. But per mailing list discussion, we don't yet know when because we haven't settled on how to do so in a non-disruptive manner.
2019-08-09 15:34:22 -07:00
Miss Islington (bot)
874ff65e0a
bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139)
...
… as proposed in PEP 572; key is now evaluated before value.
https://bugs.python.org/issue35224
(cherry picked from commit c8a35417db
)
Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
2019-06-22 15:34:03 -07:00
Ivan Levkivskyi
8bcf2629a2
More updates to the annotated assignments docs (GH-13794)
2019-06-04 11:37:46 +01:00
Ivan Levkivskyi
82eac26a73
Update the annotated assignment docs (GH-13757)
2019-06-03 00:41:00 +01:00
Serhiy Storchaka
bdbad71b9d
bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)
2019-06-02 00:05:48 +03:00
Pablo Galindo
cd74e66a8c
bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726)
2019-06-01 18:08:04 +01:00
Serhiy Storchaka
70c5f2ae6e
Use more PEP 570 syntax in the documentation. (GH-13720)
2019-06-01 11:38:24 +03:00
Pablo Galindo
ed222a74a0
Update data model docs to include missing attributes for code objects (GH-13696)
...
Include and document co_posonlyargcount and co_kwonlyargcount
2019-05-31 12:13:04 +01:00
Antti Haapala
2f5b9dcc0a
bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)
2019-05-30 16:19:28 -04:00
Pablo Galindo
29cb21ddb9
Regenerate topics file (GH-13642)
2019-05-29 22:59:00 +01:00
Pablo Galindo
b76302ddd0
bpo-36540: Documentation for PEP570 - Python positional only arguments ( #13202 )
...
* bpo-36540: Documentation for PEP570 - Python positional only arguments
* fixup! bpo-36540: Documentation for PEP570 - Python positional only arguments
* Update reference for compound statements
* Apply suggestions from Carol
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* Update Doc/tutorial/controlflow.rst
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* Add extra bullet point and minor edits
2019-05-28 16:45:32 -07:00
divyag9
778a910758
bpo-34682: Wording and grammatical changes to the doc( https://docs.python.org/3 ) (GH-13120)
...
https://bugs.python.org/issue34682
2019-05-13 06:05:20 -07:00
Johnny Gérard
4ef9b8e505
Correct misspelling (GH-11470)
2019-05-12 23:39:32 -04:00
Benjamin Peterson
3aca40d3cb
closes bpo-36861: Update Unicode database to 12.1.0. (GH-13214)
...
Adds ㋿.
2019-05-08 20:59:35 -07:00
Logan Jones
ae2c32f32b
bpo-36798: Updating f-string docs for := use case (GH-13107)
2019-05-06 11:32:44 -05:00
Catherine Alvarado
5e98f05e55
bpo-36166: Change to rst datamodel file. (GH-13089)
2019-05-04 17:54:35 -04:00
Andre Delfino
a8a79cacca
Improve grammar on async context managers and shorten text (GH-12379)
2019-05-03 08:08:10 -07:00
Andre Delfino
5861cddf76
Don't use the LHS/RHS acronym in Simple statements (GH-12996)
...
Prefer the full wording instead, as it is more meaningful for someone not familiar with the terms.
Also, LFS/RHS is not used anywhere else in the documentation, while left/right-hand side mentions are common.
2019-05-03 07:59:05 -07:00
Géry Ogam
ee88af3f4f
Namespace packages _bootstrap.ModuleSpec.loader attributes are no longer None ( #10376 )
...
Namespace packages _bootstrap.ModuleSpec.loader attributes are no longer `None` _after_ calling the importlib._bootstrap._init_module_attrs function.
See:
* https://stackoverflow.com/questions/52869541/namespace-package-spec-loader-and-loader-attributes-not-set-to-none
* https://bugs.python.org/issue35181
2019-05-01 13:08:17 -07:00
Joannah Nanjekye
70bf713617
bpo-30840: Document relative imports ( #12831 )
...
* document relative imports
* 📜 🤖 Added by blurb_it.
* fix indentation error
* remove indentation
* Document relative imports
* Document relative imports
* remove from ...package
* Document relative imports
* remove trailing space
* Document relative imports
* Document relative imports
2019-04-25 01:14:44 +10:00
Jules Lasne (jlasne)
1fc5bf2ff2
Doc: Fixed missing punctuation in datamodel.rst (GH-12581)
2019-03-27 11:10:33 +01:00
Benjamin Peterson
738c19f4c5
closes bpo-33376: Update to Unicode 12.0.0. (GH-12256)
2019-03-09 16:25:55 -08:00
Martijn Pieters
b727239575
closes bpo-36188: Clean up 'unbound' method left-overs. (GH-12169)
...
Methods are always bound, and `__self__` can no longer be `NULL`
(`method_new()` and `PyMethod_New()` both explicitly check for this).
Moreover, once a bound method is bound, it *stays* bound and won't be re-bound
to something else, so the section in the datamodel that talks about accessing
an methods in a different descriptor-binding context doesn't apply any more in
Python 3.
2019-03-04 21:19:34 -08:00
Raymond Hettinger
7463884f69
Document other performance implication for __slots__ (GH-11974)
2019-02-21 03:34:04 -08:00
Pierre Glaser
df8d2cde63
bpo-35911: add cell constructor (GH-11771)
...
Add a cell constructor, expose the cell type in the types module.
2019-02-07 19:36:48 +00:00
Cheryl Sabella
b7105c9c96
bpo-35566: Add links to annotation glossary term (GH-11291)
2018-12-23 21:09:09 -08:00
Serhiy Storchaka
2b57c43f21
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
2018-12-19 08:09:46 +02:00
Andre Delfino
55f41e45b4
Correct a couple of unbalanced parenthesis. (GH-10779)
2018-12-05 21:45:30 +02:00
Andre Delfino
1ce853f377
Move __missing__ after __delitem__ in Data model. (GH-10923)
2018-12-05 21:42:44 +02:00
wim glenn
a48e0eb967
Fix outdated info in datamodel about dicts (GH-9807)
2018-11-16 20:58:19 +09:00
Andrés Delfino
c2ccac7b9f
bpo-33816: Remove outdated metaclass example (GH-7566)
2018-11-16 20:41:55 +09:00
Julien Palard
082875dcd6
bpo-33878: Doc: Fix missing case by simplifying. (GH-7762)
...
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.
2018-11-12 00:59:39 +01:00
Andrés Delfino
b086c8afdb
bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252)
...
https://bugs.python.org/issue33699
2018-11-11 11:33:51 -08:00
Andrés Delfino
bfe1839aa9
Add link to PEP 525 in Expressions. (GH-10333)
2018-11-07 20:12:12 +02:00