[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-19 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: One last triviality: Could the mention of __subclasscheck__() in http://docs.python.org/dev/library/abc.html#abc.ABCMeta.__subclasshook__ get linked to the newly-added docs? -- ___ Python tracker

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed a similar patch in r80081. Thanks very much! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5250

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-14 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: This might need to be reopened. There's a verb missing from he following sentence of the patch: This is consistent with the lookup of special methods that called on instances, only that in this case the instance is itself a class. Secondly,

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed the missing verb in r80084. I don't think the new special methods need to be mention in isinstance() or issubclass() docs; they are very rarely needed, and other builtins don't mention their special methods either (e.g. abs(), complex(),

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-12 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Here's a draft of an updated version of the Data model docs reflecting the changes in the PEP. -- keywords: +patch type: - feature request Added file: http://bugs.python.org/file16891/datamodel.rst.diff

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-12 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Added file: http://bugs.python.org/file16893/datamodel.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5250 ___

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-11 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5250 ___

[issue5250] Document __instancecheck__ and __subclasscheck__

2009-02-13 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: http://www.python.org/dev/peps/pep-3119/#overloading-isinstance-and-issubclass (GvR and Talin) The primary mechanism proposed here is to allow overloading the built-in functions isinstance() and issubclass(). The overloading works as follows: