function "overloading"

Gerrit Holl gerrit.holl at pobox.com
Fri Jan 21 11:31:50 EST 2000


Janos Blazi wrote on 948468281:
> I have 3 classes called Tline, Tsegment and Tpoint, repectively. I'd like to
> write a function "subset" that cheks if one of the instances of the above
> classes  is a subset of another instance (as long as this is sensible).
> 
> I am afraid I cannot overload the name "subset" and additionally when subset
> has control it cannot decide the type of its arguments: Does this mean I
> have to write several *different* subset functions having different names?

>>> print issubclass.__doc__
issubclass(C, B) -> Boolean

Return whether class C is a subclass (i.e., a derived class) of class B.

regards,
Gerrit.

-- 
Please correct any bad English you encounter in my email message!
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE?
Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK-----




More information about the Python-list mailing list