Message340805
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. |
|
Date |
User |
Action |
Args |
2019-04-24 19:49:57 | Aditya Sane | set | recipients:
+ Aditya Sane |
2019-04-24 19:49:57 | Aditya Sane | set | messageid: <1556135397.5.0.612221590326.issue36715@roundup.psfhosted.org> |
2019-04-24 19:49:57 | Aditya Sane | link | issue36715 messages |
2019-04-24 19:49:57 | Aditya Sane | create | |
|