N
Nathan Seese
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'
#!/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'