[Python-Dev] Re: Guido's Magic Code was: inline sort option
Jeremy Fincher
fincher.8 at osu.edu
Fri Oct 31 19:40:39 EST 2003
On Thursday 30 October 2003 08:54 am, Alex Martelli wrote:
> just like in about ALL cases
> of Python calls *except* "aclass.baz(aninst)" which is an exceptional
> case in which Python itself does (enforced) typechecking for you.
Out of curiosity, why does Python do this typechecking?
I just ran into a situation where such calls in my subclass of sets.Set fail
if the sets module gets reloaded. Is there some really important reason why
in this case (and only this case) Python does typechecking on pure-Python
classes?
Jeremy
More information about the Python-Dev
mailing list