will python 3000 break my code?

Gerrit Holl gerrit at nl.linux.org
Wed Mar 1 08:49:38 CET 2000

<quote name="Gerrit Holl" date="951895981" email="gerrit at nl.linux.org">
> <quote name="Alex" date="951861012" email="alex at somewhere.round.here">
> > 
> > > 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.  That will mean that I am going to
> > have to change a hundred or so lines of code.  
>     1) l.append changes in Python 1.6, not in P3K,
>     2) it's such a small change; it will be able to be done automatically,
>     3) it's considered Bad Style to use multi-argument append, IMHO.
      4) it won't give a SyntaxError but a TypeError instead.


-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE?
Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y

More information about the Python-list mailing list