Christian Heimes added the comment:
list is a pdb command.
(Pdb) help list
l(ist) [first [,last] | .]
List source code for the current file. Without arguments,
list 11 lines around the current line or continue the previous
listing. With . as argument, list 11 lines a
New submission from Aidas Petryla :
Reproducing:
Running pdb shell (for example "python -m pdb "
Input:
x = {'a': 1}
list(x.values())
Output:
*** Error in argument: '(x.values())'
--
messages: 408714
nosy: apetryla
priority: normal
severity: normal
status: open
title: pdb can't conve