New submission from Aditya Sane <aditya.s...@gmail.com>:
When initializing a dictionary with dict.fromkeys, if an object is used as initial value, then the value is taken by reference instead of by value. This results in incorrect behavior since Python doesn't have "by reference" or pointers by default. Attached file shows an example and one work-around. ---------- files: DictionaryBug.py messages: 340805 nosy: Aditya Sane priority: normal severity: normal status: open title: Dictionary initialization type: behavior versions: Python 3.6 Added file: https://bugs.python.org/file48286/DictionaryBug.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36715> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com