On Wed, Mar 12, 2014 at 9:25 AM, Alex van der Spek <zd...@xs4all.nl> wrote: > with open(os.path.join('path', 'foo.txt', 'rb') as txt: > reader = csv.reader(txt) > data = [row.append(year) for row in reader]
Forget deep v. shallow copies. What is the value of the variable year? And why would you expect list.append to return anything? Skip -- https://mail.python.org/mailman/listinfo/python-list