[issue37164] dict creation with converted zip objects produces inconsistent behavior

2019-06-05 Thread Dane Howard
Dane Howard added the comment: Yes, that seems to be it - in every case I was checking the value of c with `list(c)` and assuming that wouldn't change anything. thanks! -- stage: -> resolved status: open -> closed ___ Python tracker

[issue37164] dict creation with converted zip objects produces inconsistent behavior

2019-06-05 Thread Paul Moore
Paul Moore added the comment: Works fine for me: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> a = ['1','2','3'] >>> b = [1,2,3] >>> c = zip(a,b) >>> print(dict(list(c)))

[issue37164] dict creation with converted zip objects produces inconsistent behavior

2019-06-05 Thread Dane Howard
New submission from Dane Howard : 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 ver