[Python-Dev] Changing semantics of issubclass when accepting atuple (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Mon Dec 15 17:12:39 EST 2003
- Previous message: [Python-Dev] Changing semantics of issubclass when accepting atuple
- Next message: [Python-Dev] Pie-thon benchmarks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido:
while an instance of myfavouritetypes would indeed be an instance of float, 3.14 is not an instance of myfavouritetypes!
You're right. BrainFartError. :-(
Hmmm... If there were an isinstance protocol for types, a suitable object could be constructed...
Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] Changing semantics of issubclass when accepting atuple
- Next message: [Python-Dev] Pie-thon benchmarks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]