[Python-Dev] [Python-checkins] cpython (3.4): docs: Document __objclass__. Closes #19281.
Yury Selivanov
yselivanov.ml at gmail.com
Tue Apr 8 20:01:33 CEST 2014
More information about the Python-Dev mailing list
Tue Apr 8 20:01:33 CEST 2014
- Previous message: [Python-Dev] [Python-checkins] cpython (3.4): docs: Document __objclass__. Closes #19281.
- Next message: [Python-Dev] A Friendly IDLE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thank you, Ethan. Fixed. On 2014-04-08, 1:57 PM, Ethan Furman wrote: > Sorry, posted to wrong list the first time. > > On 04/08/2014 09:33 AM, Ethan Furman wrote: >> On 04/08/2014 09:07 AM, yury.selivanov wrote: >>> http://hg.python.org/cpython/rev/0973d45197cc >> > >>> +The :attr:`__objclass__` is interpreted by the :mod:`inspect` >>> module as >>> +specifying the class where this object was defined (setting this >>> appropriately >>> +can assist in runtime introspection of dynamic class attributes). For >>> callables, >>> +it may indicate that an instance of the given type (or a subclass) is >>> expected >>> +or required as the first positional argument (for example, CPython >>> sets this >>> +attribute for unbound methods that are implemented in C). >> >> This would read better as >> >> The attribute :attr:`__objclass__` . . . >> >> -- >> ~Ethan~ >> >> _______________________________________________ >> Python-checkins mailing list >> Python-checkins at python.org >> https://mail.python.org/mailman/listinfo/python-checkins > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/yselivanov.ml%40gmail.com
- Previous message: [Python-Dev] [Python-checkins] cpython (3.4): docs: Document __objclass__. Closes #19281.
- Next message: [Python-Dev] A Friendly IDLE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list