Python 1.5.x vs Python 2.x.x

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Dec 21 12:08:01 EST 2001


ssthapa at classes.cs.uchicago.edu (Suchandra Thapa) writes:

>     I think Paul was referring more to changes in modules or syntax that
> broke previous scripts.  For example, the rand module had a name change
> to random.  Scripts that used the rand module will break with an 
> ImportError if they are run under 2.x.   

Those scripts where already broken with Python 1.5.1, which was the
first version that deprecated the rand module. It was *not* renamed to
random, the random module was available since 1.0.2. So people had
four years to move from rand to random, and you still can import rand
if you want to in Python 2.2 - if you add lib-old to sys.path.

HTH,
Martin




More information about the Python-list mailing list