[issue33636] Unexpected behavior with * and arrays
nathan rogers
report at bugs.python.org
Thu May 24 11:05:43 EDT 2018
nathan rogers <nathan.rogers.d at gmail.com> added the comment:
[[], [], [], [], []]
How is it expected behavior in python, that
when I update position 0,
it decides to update positions 1-infinity as well?
That is nonsense, and there is not a use case for this behavior. If you have already created the value, you have the value locally, and don't need N-REFERENCES to that thing. When calling functions as well, there will never be a time when you need more than 1 reference to the thing.
How is this useful, and in what context could this ever be intuitive? If this is not a bug, it countermands the zen of python on almost every alternate line.
----------
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33636>
_______________________________________
More information about the Python-bugs-list
mailing list