metaclasses for type comparison
Gonçalo Rodrigues
op73418 at mail.telepac.pt
Thu Sep 11 16:57:00 EDT 2003
On Thu, 11 Sep 2003 11:45:01 -0700, David Eppstein
<eppstein at ics.uci.edu> wrote:
>In article <pan.2003.09.11.04.48.46.966122 at webone.com.au>,
> Simon Burton <simonb at webone.com.au> wrote:
>
>> Both. Well, aha, "issubclass" makes my implementation
>> of ge/le and friends a bit silly. Actually i was annoyed
>> with "isinstance", it seems like it should be part of the syntax
>> (eg."<="). Look at this: "issubclass". It has 10 chars!!
>
><= is supposed to be a total ordering, so it is not a good idea to use
>it for partial orders such as subclass hierarchies.
Is it? I never came across such a supposition, which in itself says
nothing because I have very little experience anyway, but what about
set inclusion in the sets module which can be written as <=?
With my best regards,
G. Rodrigues
More information about the Python-list
mailing list