This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dane Howard
Recipients Dane Howard, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-06-05.14:51:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559746284.31.0.288092384603.issue37164@roundup.psfhosted.org>
In-reply-to
Content
confirmed on the following versions:
3.6.3 (Windows 10)
3.7.0 (Debian 9 & Windows 10)
3.7.1 (Debian 9)
a dictionary created with the dict() function will not always return the appropriate dictionary object. The following code produces the bug on all stated versions except 3.6.3/Win10, which exhibits slightly different behavior.

a = ['1','2','3']
b = [1,2,3]
c = zip(a,b)
print(dict(list(c))) #gives empty dict
print(dict(list(zip(a,b)))) #gives {'1':1,'2':2,'3':3}
d = zip(b,a)
print(dict(list(d))) #gives {1:'1',':'2',3:'3'}
History
Date User Action Args
2019-06-05 14:51:24Dane Howardsetrecipients: + Dane Howard, paul.moore, tim.golden, zach.ware, steve.dower
2019-06-05 14:51:24Dane Howardsetmessageid: <1559746284.31.0.288092384603.issue37164@roundup.psfhosted.org>
2019-06-05 14:51:24Dane Howardlinkissue37164 messages
2019-06-05 14:51:24Dane Howardcreate