[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 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 example of how to 
reproduce this.

Depending on circumstances this can make debugging difficult.

exact python version that this happened with:
Python 3.6.11

--
files: bug_example.py
messages: 379838
nosy: xgenadam
priority: normal
severity: normal
status: open
title: pdb exits unexpectedly when calling args
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file49546/bug_example.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com