New submission from hmathers <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue39315>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com