[Python-3000] ABC PEP isinstance issue Was: PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities) (original) (raw)
Guido van Rossum guido at python.org
Sat Apr 28 18:17:38 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 ]
On 4/28/07, Jean-Paul Calderone <exarkun at divmod.com> wrote:
Aside from the way in which `x' can already lie:
>>> class X(object): ... class = property(lambda self: int) ... >>> isinstance(X(), int) True >>> Is this behavior changed/going to be changed in Py3k?
I'm not particularly enamored with it, but I believe it once served a purpose for Zope. Does anyone know if it is still needed?
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- 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 ]