Mariatta
d4e89287b3
bpo-28739: Document that f-strings cannot be used as docstring (GH-592)
9 years ago
Mariatta
1f5639c77f
bpo-26184: import.rst: Improve versionchanged note (GH-325)
9 years ago
Mariatta
6b4a5f45e2
bpo-26184: import.rst: Improve versionchanged note (GH-277)
Mention that an ImportError is raised when exec_module() is defined, but
create_module() is not.
9 years ago
Marco Buttu
46ce7599af
bpo-29648: import.rst: Add reference to create_module() (GH-290)
Add a reference to create_module(), in the first versionadded of section Loaders.
9 years ago
Jim Fasarakis-Hilliard
132ac381fe
Fix small typos in expressions.rst (GH-276)
9 years ago
Martin Panter
8dbb0ca573
Issue #12067 : Recommend that hash and equality be consistent
9 years ago
Berker Peksag
7b4e551091
Issue #29012 : Remove another outdated information
Patch by Jim Fasarakis-Hilliard.
9 years ago
Berker Peksag
14adafd6ee
Issue #29012 : Remove outdated information about __bases__
Patch by Jim Fasarakis-Hilliard.
9 years ago
Martin Panter
7106a51c71
Issue #28954 : Add missing comma to keyword argument syntax
9 years ago
Victor Stinner
509476b370
doc: Suggest to hash(tuple of attr) rather than XOR
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.
9 years ago
Yury Selivanov
03660041d2
Issue #28091 : Document PEP 525 & PEP 530.
Patch by Eric Appelt.
9 years ago
Yury Selivanov
4f9e4285d2
Issue #28091 : Document PEP 525 & PEP 530.
Patch by Eric Appelt.
(grafted from 78c8f450b8 )
9 years ago
Nick Coghlan
19d246745d
Issue #23722 : improve __classcell__ compatibility
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
9 years ago
Martin Panter
28540183c9
Another en → em dash fix for 3.6
9 years ago
Jason R. Coombs
f66f03bd35
Update docs to reflect new behavior around backslashes in expressions (not allowed), matching recent changes to PEP 498.
9 years ago
Serhiy Storchaka
ecf41da83e
Issue #19795 : Mark up None as literal text.
9 years ago
Raymond Hettinger
06e18a7c24
Issue #26511 : Reference the id() function in the 'is' and 'is not' docs
9 years ago
Guido van Rossum
015d874626
Issue #28076 : Variable annotations should be mangled for private names.
By Ivan Levkivskyi.
9 years ago
Brett Cannon
a721abac29
Issue #26331 : Implement the parsing part of PEP 515.
Thanks to Georg Brandl for the patch.
9 years ago
Eric Snow
68f4dd8b01
Doc updates for PEPs 520 and 468.
9 years ago
Guido van Rossum
6cff8744a0
Issue #27999 : Make "global after use" a SyntaxError, and ditto for nonlocal.
Patch by Ivan Levkivskyi.
9 years ago
Yury Selivanov
f8cb8a16a3
Issue #27985 : Implement PEP 526 -- Syntax for Variable Annotations.
Patch by Ivan Levkivskyi.
9 years ago
Eric Snow
4f29e75289
Issue #24254 : Drop cls.__definition_order__.
9 years ago
Eric Snow
b957b0c2bc
Issue #28030 : Update the language reference for PEP 468.
9 years ago
R David Murray
110b6fecbb
#27364 : Deprecate invalid escape strings in str/byutes.
Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
9 years ago
Eric Snow
46f97b85a8
Issue #15767 : Use ModuleNotFoundError.
9 years ago
Eric Snow
92a6c170e6
Issue #24254 : Preserve class attribute definition order.
9 years ago
Raymond Hettinger
7ea386e56e
Issue 19504: Change "customise" to "customize" American spelling.
9 years ago
Guido van Rossum
97c1adf393
Anti-registration of various ABC methods.
- Issue #25958 : Support "anti-registration" of special methods from
various ABCs, like __hash__, __iter__ or __len__. All these (and
several more) can be set to None in an implementation class and the
behavior will be as if the method is not defined at all.
(Previously, this mechanism existed only for __hash__, to make
mutable classes unhashable.) Code contributed by Andrew Barnert and
Ivan Levkivskyi.
10 years ago
Brett Cannon
6336fb2734
Issue #27712 : Fix some typos in the import docs.
Thanks to Xiang Zhang for the patch.
10 years ago
Berker Peksag
6cafececbf
Issue #26576 : Clarify that the @deco syntax is not always an equivalent of f = deco(f)
Patch by Chris Angelico.
10 years ago
Nick Coghlan
607e1c4c44
Issue 27366: PEP 487 docs updates
- Porting note for type keyword arg handling
- __init_subclass__ note regarding metaclass hint
10 years ago
Berker Peksag
01d1719062
Issue #27366 : Tweak PEP 487 documentation
* Added versionadded directives
* Deleted duplicate sentence from __init_subclass__ docstring
* Modernized tests
10 years ago
Nick Coghlan
d78448e912
Issue #27366 : Implement PEP 487
- __init_subclass__ called when new subclasses defined
- __set_name__ called when descriptors are part of a
class definition
10 years ago
Martin Panter
1050d2d0c7
Issue #26462 : Doc: reduce literal_block warnings, fix syntax highlighting.
Patch by Julien Palard.
10 years ago
Martin Panter
bae5d81f5d
Issue #24314 : Fix doc links for general attributes like __name__, __dict__
10 years ago
Martin Panter
ed74e243c6
Issue #24136 : Adjust f-strings doc for interable unpacking
10 years ago
Martin Panter
0c0da48aed
Issue #24136 : Document generalized unpacking, PEP 448
Based on patches by Konstantin Molchanov and Neil Girdhar.
10 years ago
Yury Selivanov
a6f6edbda8
Issue #27243 : Fix __aiter__ protocol
10 years ago
Martin Panter
7d7a11b5d7
Issue #23275 : Backport target list assignment documentation fixes
10 years ago
R David Murray
dd4fcf52f4
#26829 : Clarify that namespace is copied to a new __dict__ in instance creation.
Patch by Emily Morehouse.
10 years ago
Tommy Beadle
e9b8403a1f
[Issue 15476] Make "code object" its own entry in the index
10 years ago
Berker Peksag
094c9c921c
Issue #23275 : Allow () = iterable assignment syntax
Documentation updates by Martin Panter.
10 years ago
Ned Deily
cec95813b2
Issue #27049 : fix doc typo
10 years ago
Benjamin Peterson
54044d605f
class definitions only get argument lists ( closes #27042 )
10 years ago
Benjamin Peterson
bc7ee43a6d
Backed out changeset 71ff2235bb4c ( closes #27042 )
10 years ago
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
Original patch by James Edwards.
10 years ago
Serhiy Storchaka
c7cc9850d4
Issue #26156 : Make expressions grammar description more semantically correct.
10 years ago
Martin Panter
f0564164ba
Fix typos in comments, documentation and test method names
10 years ago
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
10 years ago