New submission from hmathers :
class Folder():
papers = []
shelf = []
shelf.append(Folder)
shelf.append(Folder)
shelf[0].papers.append("one")
shelf[1].papers.append("two")
print(shelf[0].papers) #should just print "one" right?
--
messages: 359858
nosy: hmathers
priority: normal
severity: normal
status: open
title: Lists of objects containing lists
versions: Python 3.7
___
Python tracker
<https://bugs.python.org/issue39315>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com