summaryrefslogtreecommitdiff
path: root/Doc/reference
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-26184: import.rst: Improve versionchanged note (GH-277)Mariatta2017-02-261-2/+5
| | | | Mention that an ImportError is raised when exec_module() is defined, but create_module() is not.
* bpo-29648: import.rst: Add reference to create_module() (GH-290)Marco Buttu2017-02-261-1/+1
| | | Add a reference to create_module(), in the first versionadded of section Loaders.
* Fix small typos in expressions.rst (GH-276)Jim Fasarakis-Hilliard2017-02-241-2/+2
|
* Issues #12067: Merge hash recommendation from 3.5Martin Panter2017-01-291-0/+4
|\
| * Issue #12067: Recommend that hash and equality be consistentMartin Panter2017-01-291-0/+4
| |
* | Issue #29012: Merge from 3.5Berker Peksag2017-01-031-5/+4
|\ \ | |/
| * Issue #29012: Remove another outdated informationBerker Peksag2017-01-031-3/+3
| | | | | | | | Patch by Jim Fasarakis-Hilliard.
* | Issue #29012: Merge from 3.5Berker Peksag2017-01-021-1/+1
|\ \ | |/
| * Issue #29012: Remove outdated information about __bases__Berker Peksag2017-01-021-1/+1
| | | | | | | | Patch by Jim Fasarakis-Hilliard.
* | Issue #28954: Merge keyword argument syntax from 3.5Martin Panter2016-12-241-1/+1
|\ \ | |/
| * Issue #28954: Add missing comma to keyword argument syntaxMartin Panter2016-12-241-1/+1
| |
* | Merge 3.5Victor Stinner2016-12-191-5/+8
|\ \ | |/
| * doc: Suggest to hash(tuple of attr) rather than XORVictor Stinner2016-12-191-5/+8
| | | | | | | | | | | | 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.
* | Issue #28091: Document PEP 525 & PEP 530.Yury Selivanov2016-12-154-4/+187
| | | | | | | | Patch by Eric Appelt.
* | Issue #23722: improve __classcell__ compatibilityNick Coghlan2016-12-051-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Another en → em dash fix for 3.6Martin Panter2016-11-211-1/+1
| |
* | Update docs to reflect new behavior around backslashes in expressions (not ↵Jason R. Coombs2016-11-061-7/+12
| | | | | | | | allowed), matching recent changes to PEP 498.
* | Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
|\ \ | |/
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
| |
* | mergeRaymond Hettinger2016-09-111-2/+3
|\ \ | |/
| * Issue #26511: Reference the id() function in the 'is' and 'is not' docsRaymond Hettinger2016-09-111-2/+3
| |
* | Issue #28076: Variable annotations should be mangled for private names.Guido van Rossum2016-09-111-3/+4
| | | | | | | | By Ivan Levkivskyi.
* | Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-16/+29
| | | | | | | | Thanks to Georg Brandl for the patch.
* | Doc updates for PEPs 520 and 468.Eric Snow2016-09-091-3/+3
| |
* | Issue #27999: Make "global after use" a SyntaxError, and ditto for nonlocal.Guido van Rossum2016-09-091-2/+3
| | | | | | | | Patch by Ivan Levkivskyi.
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-082-14/+65
| | | | | | | | Patch by Ivan Levkivskyi.
* | Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-082-16/+3
| |
* | Issue #28030: Update the language reference for PEP 468.Eric Snow2016-09-081-5/+6
| |
* | #27364: Deprecate invalid escape strings in str/byutes.R David Murray2016-09-081-0/+4
| | | | | | | | Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
* | Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-071-10/+10
| |
* | Issue #24254: Preserve class attribute definition order.Eric Snow2016-09-052-1/+19
| |
* | MergeRaymond Hettinger2016-08-251-2/+2
|\ \ | |/
| * Issue 19504: Change "customise" to "customize" American spelling.Raymond Hettinger2016-08-251-2/+2
| |
* | Anti-registration of various ABC methods.Guido van Rossum2016-08-181-1/+18
| | | | | | | | | | | | | | | | | | | | - 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.
* | Merge for issue #27712Brett Cannon2016-08-121-2/+2
|\ \ | |/
| * Issue #27712: Fix some typos in the import docs.Brett Cannon2016-08-121-2/+2
| | | | | | | | Thanks to Xiang Zhang for the patch.
* | Issue #26576: Merge from 3.5Berker Peksag2016-08-031-4/+5
|\ \ | |/
| * Issue #26576: Clarify that the @deco syntax is not always an equivalent of f ↵Berker Peksag2016-08-031-4/+5
| | | | | | | | | | | | = deco(f) Patch by Chris Angelico.
* | Issue 27366: PEP 487 docs updatesNick Coghlan2016-07-311-0/+7
| | | | | | | | | | - Porting note for type keyword arg handling - __init_subclass__ note regarding metaclass hint
* | Issue #27366: Tweak PEP 487 documentationBerker Peksag2016-07-301-0/+5
| | | | | | | | | | | | * Added versionadded directives * Deleted duplicate sentence from __init_subclass__ docstring * Modernized tests
* | Issue #27366: Implement PEP 487Nick Coghlan2016-07-301-1/+42
| | | | | | | | | | | | - __init_subclass__ called when new subclasses defined - __set_name__ called when descriptors are part of a class definition
* | Issue #26462: Merge code block fixes from 3.5Martin Panter2016-07-292-5/+16
|\ \ | |/
| * Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.Martin Panter2016-07-262-5/+16
| | | | | | | | Patch by Julien Palard.
* | Issue #24314: Merge doc links from 3.5Martin Panter2016-06-181-25/+26
|\ \ | |/
| * Issue #24314: Fix doc links for general attributes like __name__, __dict__Martin Panter2016-06-181-25/+26
| |
* | Issue #24136: Adjust f-strings doc for interable unpackingMartin Panter2016-06-121-1/+2
| |
* | Issue #24136: Merge unpacking doc from 3.5Martin Panter2016-06-122-27/+61
|\ \ | |/
| * Issue #24136: Document generalized unpacking, PEP 448Martin Panter2016-06-122-27/+61
| | | | | | | | Based on patches by Konstantin Molchanov and Neil Girdhar.
* | Issue #15476: Merge index entries from 3.5Martin Panter2016-06-091-4/+2
|\ \ | |/
| * [Issue 15476] Make "code object" its own entry in the indexTommy Beadle2016-06-021-4/+2
| |