will python 3000 break my code?

Fredrik Lundh effbot at telia.com
Wed Mar 1 02:01:35 EST 2000


Alex <alex at somewhere.round.here> wrote:
>
> > I wouldn't worry about that.  You won't have to throw or rewrite old
> > code, unless you want to take advantage of features in Python 3000.
>
> It wouldn't suprise me if some rewriting were needed.  For instance,
> Guido said that he will be changing the list.append method so that
> l.append(1,2) gives a syntax error.

note it will give a TypeError at run time,
not a SyntaxError.

make sure you run checkappend.py over
and over again...

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->





More information about the Python-list mailing list