[Python-Dev] Small misleadingness in docs (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 14 20:53:31 CET 2009
- Previous message: [Python-Dev] Small misleadingness in docs
- Next message: [Python-Dev] RELEASED Python 3.0.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Terry Reedy wrote:
The new (in 3.0 and maybe 2.6, but undocumented) special methods instancecheck and subclasscheck let one overload the default behavior of isinstance and issubclass.
That's fine for 3.0, but I don't think the current behaviour should be removed from any 2.x version, as it would make writing code that works over multiple 2.x versions difficult.
-- Greg
- Previous message: [Python-Dev] Small misleadingness in docs
- Next message: [Python-Dev] RELEASED Python 3.0.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]