'Python debugger pdb: get native functionality of list()

The python debugger pdb reassigns the list() command (that's where the average Joe Python tutorial usually says "nah nah").

I need the native list()-function during debugging to analyze some of my dictionaries. list(mydict.keys()) cannot be replaced with [mydict.keys()] as only the former can be indexed.

How to get the native functionality of list() back?

(given the ambiguity and frequent occurrence of list it seems hard to google a solution).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source