default arguments newbie question

Andrew Dalke dalke at acm.org
Thu Jan 11 23:59:09 EST 2001


Erik Max Francis asked:
>Sure, you can come up with pathological cases.

Let me point out some other cases.  The __cmp__ might not
be implemented, or it might do some type checking to ensure
it is only compared with other objects of the same type.
(While the latter is sometimes considered in poor taste,
I have found it useful.)

                    Andrew
                    dalke at acm.org






More information about the Python-list mailing list