[Python-Dev] Changing semantics of issubclass when accepting atuple

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Dec 15 17:12:39 EST 2003


> while an instance of my_favourite_types would indeed be an instance of
> float, 3.14 is not an instance of my_favourite_types!

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	   +--------------------------------------+

More information about the Python-Dev mailing list