Odd Errors

Nathan Seese uninverted at lavabit.com
Mon Sep 29 02:09:51 CEST 2008


When I run:
#!/usr/bin/python
lines = list()

while 1:
    try:
        inLine = raw_input()
        lines = lines.append(inLine)
    except EOFError:
        break

I get:
Traceback (most recent call last):
  File "./foobar.py", line 7, in <module>
    lines = lines.append(inLine)
AttributeError: 'NoneType' object has no attribute 'append'



More information about the Python-list mailing list