[New-bugs-announce] [issue39315] Lists of objects containing lists

hmathers report at bugs.python.org
Sun Jan 12 12:42:08 EST 2020


New submission from hmathers <hmathers at gmail.com>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue39315>
_______________________________________


More information about the New-bugs-announce mailing list