New submission from Adam Merchant <xgena...@gmail.com>:
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 <rep...@bugs.python.org> <https://bugs.python.org/issue42184> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com