summaryrefslogtreecommitdiff
path: root/Doc/reference/datamodel.rst
Commit message (Collapse)AuthorAgeFilesLines
* Fix HTML formatting in datamodel.rst (GH-8693)Berker Peksag2018-08-061-3/+3
|
* Fix typo in datamodel.rst (GH-6964)Zach Mitchell2018-06-021-1/+1
| | | This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".
* bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)Serhiy Storchaka2018-05-201-2/+1
| | | A DeprecationWarning was emitted in Python 3.6-3.7.
* bpo-23722: Fix docs for future __classcell__ changes. (GH-6999)Serhiy Storchaka2018-05-201-1/+1
|
* bpo-32717: Document PEP 560 (GH-6726)Ivan Levkivskyi2018-05-081-0/+37
|
* bpo-26701: Improve documentation for the rounding special methods. (#6054)Serhiy Storchaka2018-03-101-12/+18
|
* bpo-26701: Add documentation for __trunc__ (GH-6022)Eric Appelt2018-03-101-0/+9
| | | | `int` fails back to `__trunc__` is `__int__` isn't defined, so cover that in the docs.
* bpo-30579: Docs for dynamic traceback creation (GH-5653)Nick Coghlan2018-02-131-12/+34
|
* bpo-8722: Document __getattr__ behavior with AttributeError in property ↵Cheryl Sabella2018-02-051-4/+6
| | | | | | | (GH-4754) 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).
* bpo-27505: Add change notes in module attribute docs (GH-5320)Cheryl Sabella2018-01-271-0/+11
| | | | | | 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.
* bpo-32377: improve __del__ docs and fix mention about resurrection (#4927)Antoine Pitrou2017-12-191-39/+47
| | | | | | * Fix #32377: improve __del__ docs and fix mention about resurrection * Mention that CPython only calls __del__ once.
* bpo-32225: Implementation of PEP 562 (#4731)Ivan Levkivskyi2017-12-141-0/+45
| | | | | Implement PEP 562: module __getattr__ and __dir__. The implementation simply updates module_getattro and module_dir.
* bpo-31709: Drop support for asynchronous __aiter__. (#3903)Yury Selivanov2017-10-061-44/+9
|
* Mention enum as an ex (#2982)Louie Lu2017-09-121-2/+2
|
* bpo-31344: Per-frame control of trace events (GH-3417)Nick Coghlan2017-09-081-1/+11
| | | | | | | | | f_trace_lines: enable/disable line trace events f_trace_opcodes: enable/disable opcode trace events These are intended primarily for testing of the interpreter itself, as they make it much easier to emulate signals arriving at unfortunate times.
* bpo-30486: Allow setting cell value (#1840)Lisa Roach2017-06-081-0/+6
| | | The cell_contents attribute of the cell object is now writable.
* bpo-30449 Terse slots (#1819)Aaron Hall, MBA2017-05-251-14/+15
| | | | | | | | * correct __slots__ documentation with minimal changes * add multiple inheritance info * remove mapping from description
* bpo-30354: Update data model documentation for super() (GH-1561)csabella2017-05-151-6/+6
| | | | | | | | | | 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.
* bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506)Serhiy Storchaka2017-05-131-0/+4
| | | | rather than `format(str(self), '')`.
* bpo-29679: Implement @contextlib.asynccontextmanager (#360)Jelle Zijlstra2017-04-301-0/+2
|
* bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271)csabella2017-04-261-8/+8
| | | | | | | | | | 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.
* bpo-30144: Import collections ABC from collections.abc rather than ↵Serhiy Storchaka2017-04-241-3/+3
| | | | collections. (#1263)
* bpo-15718: Document the upper bound constrain on the __len__ return value. ↵Serhiy Storchaka2017-04-231-0/+9
| | | | (#1256)
* 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.
* | 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-151-0/+19
| | | | | | | | 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
| |
* | 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
| |
* | Doc updates for PEPs 520 and 468.Eric Snow2016-09-091-3/+3
| |
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-081-14/+21
| | | | | | | | Patch by Ivan Levkivskyi.
* | Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-081-7/+0
| |
* | Issue #24254: Preserve class attribute definition order.Eric Snow2016-09-051-1/+8
| |
* | 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.
* | 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 #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 #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
| |
* | Merge 3.5 (issue #27243)Yury Selivanov2016-06-091-2/+46
|\ \ | |/
| * Issue #27243: Fix __aiter__ protocolYury Selivanov2016-06-091-2/+46
| |