Odd Errors

Nathan Seese uninverted at lavabit.com
Sun Sep 28 20:09:51 EDT 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