summaryrefslogtreecommitdiffstats
path: root/Doc/howto/descriptor.rst
Commit message (Collapse)AuthorAgeFilesLines
* GH-95822: Need _PyType_Lookup() in descriptor howto code equivalent. ↵Miss Islington (bot)2022-08-191-1/+21
| | | | (GH-95967) (#96099)
* GH-89519: Deprecate classmethod descriptor chaining (#92379)Raymond Hettinger2022-05-061-1/+3
|
* Improve discussion about how __getattr__ is invoked. (GH-31435)Raymond Hettinger2022-02-201-9/+7
|
* bpo-46730: Add more info to @property AttributeError messages (GH-31311)Alex-Blade2022-02-161-4/+4
| | | On `obj.read_only_property = x`, raise `AttributeError: property 'read_only_property' of 'A' object has no setter`.
* no-issue: Fix documentation typos. (GH-30576)Piotr Fusik2022-01-201-1/+1
|
* bpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634)Raymond Hettinger2021-11-191-1/+8
| | | | | | staticmethod() also became callable in Python 3.10. See: b83861f02.
* Add more tests. Fix code excerpt. (GH-25549)Raymond Hettinger2021-04-231-3/+18
|
* bpo-43917: Fix pure python equivalent for classmethod (GH-25544)Raymond Hettinger2021-04-231-1/+12
| | | Reported by Yahor Harunovich.
* Replace broken example code with correct simpler code. (GH-25162)Raymond Hettinger2021-04-031-2/+2
| | | | | | The open() was missing 'w' to indicate it was in a write-mode. Even then, the open().close() operation was distracting because it is an unusual way to "touch" as file. Using os.remove() instead is simpler and less distracting.
* Add more tests for the descriptor tutorial (GH-25164)Raymond Hettinger2021-04-031-7/+57
|
* bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123)Zackery Spytz2021-04-011-1/+1
| | | It should be PyMethod_Type, not Py_MethodType.
* bpo-43427: Separte the method overview from the static method specifics. ↵Raymond Hettinger2021-03-131-2/+6
| | | | (GH-24787)
* Minor readability improvements. Also note performance impact of __slots__. ↵Raymond Hettinger2021-02-051-8/+11
| | | | (GH-24456)
* bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394)diegoe2021-02-031-1/+1
|
* bpo-27794: Add `name` attribute to `property` class (GH-23967)Yurii Karabas2020-12-301-6/+16
|
* Typo: fix inverted sense of statement (GH-23288)basak2020-11-251-1/+1
| | | | | | | Looks like a "not" was inadvertently omitted in commit e6a7ea4. Classmethods are useful when data stored in specific instances are *not* needed. Automerge-Triggered-By: GH:JulienPalard
* Add more tests to the descriptor howto guide (GH-23506)Raymond Hettinger2020-11-251-4/+25
|
* Add doctests to the descriptor HowTo (GH-23500)Raymond Hettinger2020-11-251-57/+397
|
* Descriptor HowTo: Improve the fidelity of the member object simulation ↵Raymond Hettinger2020-11-231-11/+46
| | | | (GH-23475)
* More updates to the descriptor howto guide (GH-23238)Raymond Hettinger2020-11-161-45/+62
|
* Minor grammar edits for the descriptor howto guide (GH-#23175)Raymond Hettinger2020-11-061-10/+10
|
* Minor formatting edits to the descriptor howto guide (GH-23092)Raymond Hettinger2020-11-021-19/+20
|
* Add member objects to the descriptor howto guide (GH-23084)Raymond Hettinger2020-11-021-0/+156
|
* Expand and clarify the "Invoking Descriptors" section of the Descriptor ↵Raymond Hettinger2020-11-011-37/+78
| | | | HowTo (GH-23078)
* Split-out a fourth section in the descriptor HowTo guide (GH-22965)Raymond Hettinger2020-10-251-46/+50
|
* Second round of updates to the descriptor howto guide (GH-22946)Raymond Hettinger2020-10-251-96/+156
|
* bpo-19072: Update descriptor howto for decorator chaining (GH-22934)Raymond Hettinger2020-10-241-3/+13
|
* Create a primer section for the descriptor howto guide (GH-22906)Raymond Hettinger2020-10-231-58/+494
|
* Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)Yonatan Goldschmidt2020-07-281-4/+2
|
* bpo-25777: Wording describes a lookup, not a call (GH-15573)Raymond Hettinger2019-08-291-1/+1
|
* Do not use explicit inheritance from object in the documentation. (GH-13936)Serhiy Storchaka2019-06-101-12/+12
|
* bpo-23984: Improve descriptor documentation (GH-1034)Shubham Aggarwal2019-03-201-2/+2
| | | https://bugs.python.org/issue23984
* Fix "Python" casing in a few places (GH-9001)Andrés Delfino2018-09-141-2/+2
|
* switch descriptor howto to return value annotation (GH-7796)NotAFile2018-09-101-3/+3
|
* bpo-26103: Fix inspect.isdatadescriptor() and a data descriptor definition. ↵Aaron Hall, MBA2018-05-201-1/+1
| | | | | | (GH-1959) Look for '__set__' or '__delete__'.
* bpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods ↵Raymond Hettinger2017-09-251-23/+33
| | | | (#3739)
* bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339)_ = NaN2017-06-231-3/+3
|
* bpo-30530: Update Descriptor How To Documentation (GH-1845)Mariano Anaya2017-06-051-1/+1
| | | | Update the code example in Functions and Methods section Remove objtype argument in MethodType
* Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
|
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-32/+32
| | | | Original patch by James Edwards.
* Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-021-1/+1
|
* Fixing broken links in doc, part 2: howto/Georg Brandl2014-10-291-1/+1
|
* Use https:// URLs when referring to python.org hosts.Georg Brandl2014-10-291-1/+1
|
* use source role instead of linking to svnBenjamin Peterson2014-10-071-9/+8
|
* fix description of super() behavior on descriptorsBenjamin Peterson2013-10-181-1/+1
|
* Inherit from object() for consistencyRaymond Hettinger2013-03-101-1/+1
|
* Issue #17351: Modernize the pure Python property() example.Raymond Hettinger2013-03-101-3/+14
|
* Issue #13575: there is only one class type.Florent Xicluna2011-12-121-10/+2
|
* Fix typo reported by Sandro Tosi.Ezio Melotti2011-07-311-1/+1
|
* Migrate to Sphinx 1.0 C language constructs.Georg Brandl2010-10-061-3/+3
|