[issue36715] Dictionary initialization

2019-04-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset da63b321f63b697f75e7ab2f88f55d907f56c187 by Raymond Hettinger in branch 'master': bpo-36715: Add usage note for dict.fromkeys() (GH-12974) https://github.com/python/cpython/commit/da63b321f63b697f75e7ab2f88f55d907f56c187 -- nosy:

[issue36715] Dictionary initialization

2019-04-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36715] Dictionary initialization

2019-04-26 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12901 stage: -> patch review ___ Python tracker ___ ___

[issue36715] Dictionary initialization

2019-04-24 Thread Inada Naoki
Change by Inada Naoki : -- nosy: -inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36715] Dictionary initialization

2019-04-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36715] Dictionary initialization

2019-04-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: This is the same basic problem seen with sequence multiplication, mutable default arguments to a function, etc. It's not going to change though; the documentation says it "Create a new dictionary with keys from iterable and values set to value." "set to

[issue36715] Dictionary initialization

2019-04-24 Thread Aditya Sane
New submission from Aditya Sane : 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