Mixing Decimal and float
Steven D'Aprano
steve-REMOVE-THIS at cybersource.com.au
Wed Jun 2 19:11:24 EDT 2010
On Wed, 02 Jun 2010 17:17:11 -0400, Nathan Rice wrote:
> My apologies if someone already mentioned this and I missed it but...
>
> class.__instancecheck__(self, instance) - Return true if instance should
> be considered a (direct or indirect) instance of class. If defined,
> called to implement isinstance(instance, class).
>
> class.__subclasscheck__(self, subclass) - Return true if subclass should
> be considered a (direct or indirect) subclass of class. If defined,
> called to implement issubclass(subclass, class).
The original poster needs to support Python 2.5 and 2.6, but
__instancecheck__ and __subclasscheck__ are only supported in 2.6 or
higher, so this doesn't help.
--
Steven
More information about the Python-list
mailing list