will python 3000 break my code?
Fredrik Lundh
effbot at telia.com
Wed Mar 1 17:09:05 EST 2000
Daniel wrote:
> | 3. be impossible to identify by automatic tools.
> | Tim's excellent checkappend.py can spot many
> | cases, but not all.
>
> Actually, this isn't true (that it's impossible).
> If you really like, i'll take a few days of my spring break and write one
> guaranteed to catch every single case.
how about this one:
foo = list.append
for bar in range(100):
foo(bar, bar, bar)
or this one:
class Foo:
def __init__(self):
self.setup()
self.add = self.list.append
def setup(self):
self.list = []
foo = Foo()
foo.add(bar, bar, bar)
</F>
More information about the Python-list
mailing list