[issue42184] pdb exits unexpectedly when calling args

2020-10-30 Thread Irit Katriel
Irit Katriel added the comment: This is true in 3.10 as well. The same happens if __repr__ raises an exception. do_args command doesn't handle exceptions from repr. See also issue37022. -- components: +Library (Lib) nosy: +iritkatriel versions: +Python 3.10, Python 3.8, Python 3.9

[issue42184] pdb exits unexpectedly when calling args

2020-10-28 Thread Adam Merchant
New submission from Adam Merchant : When an objects __repr__ or __str__ methods return None a TypeError is raised. However if this object is passed to a function and `args` is called from within pdb, pdb will immediately exit. Attached to this is bug_example.py which contains a simple