pythonlistpdb

A weird issue (to me) with converting the dict values to a list in python (debugger)


I am not sure I can explain the issue better than a screenshot. Either I am severely underslept or I have lost it (or, both)

enter image description here

chunks is a list of dict. I am able to run len(list(chunks[0].values())) but I am not able to run what is going inside the len

Any help is much appreciated


Solution

  • list is a special command in the debugger. If you need to print a list, do

    print(list(chunks[0].values()))