Emanuel Barry added the comment:

Your list `l` actually holds only one list, except three times. When you change 
it, it's reflected in all the lists. It's the equivalent of the following:

>>> x=['', '']
>>> l=[x, x, x]

Makes a bit more sense this way? Either way, yes, this is intentional behaviour.

----------
nosy: +ebarry

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25681>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to