[issue39315] Lists of objects containing lists

2020-01-12 Thread hmathers


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



[issue39315] Lists of objects containing lists

2020-01-12 Thread hmathers


hmathers  added the comment:

I should have known I was just doing something wrong. Thank you for your help!

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
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