[Python-3000] ABC PEP isinstance issue Was: PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities) (original) (raw)
Phillip J. Eby pje at telecommunity.com
Thu Apr 26 02:35:01 CEST 2007
- Previous message: [Python-3000] ABC PEP isinstance issue Was: PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Next message: [Python-3000] ABC PEP isinstance issue Was: PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 04:43 PM 4/25/2007 -0700, Guido van Rossum wrote:
This is a very good point. Perhaps we can come up with a way to make isinstance and issubclass into something like GFs (without requiring the whole GF machinery).
I'll think about it some more.
special methods are how Python currently defines built-in GFs, so perhaps isinstance and issubclass slots (and their r* counterparts) should suffice.
OTOH, the old PEP 246 (implemented by both PyProtocols and zope.interface) just uses conform and adapt and basically works the same way as an isinstance/risinstance pair...
- Previous message: [Python-3000] ABC PEP isinstance issue Was: PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Next message: [Python-3000] ABC PEP isinstance issue Was: PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]