Backwards Compatibility of Python versions

Philip Swartzleonard starx at pacbell.net
Mon Feb 4 04:02:53 EST 2002


Jonathan Hogg || Mon 04 Feb 2002 12:53:15a:
 
> Which *old* code of someone's has actually been broken so that it will
> not run correctly on the newer interpreters?

If you want a specific example: the introspect code in pyCrust. It recursevly 
dives through __class__ attributes, and now for everything except old classes  
this eventually leads to 'type'. type.__class__ is type, therefore runaway 
recursion. I think using dir() would have also made it Do Bad Things due to 
the 2.2 changes, but i fixed this quite a while before finding the real 
problem, so i don't know if it actually hurt.

If this is what you mean by '*old*' at least...


-- 
Philip Sw "Starweaver" [rasx] :: www.rubydragon.com



More information about the Python-list mailing list