Skip to content

Commit d444aaf

Browse files
akulakovambv
authored andcommitted
fix args and retval commands to handle objects with broken repr()
1 parent 39bc958 commit d444aaf

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎Doc/library/pdb.rst‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,9 @@ can be overridden by the local file.
806806
.. pdbcommand:: retval
807807

808808
Print the return value for the last return of the current function.
809+
This command must be used immediately after the return line is executed;
810+
the *return* command can be used to jump to the location where *retval*
811+
can be used.
809812

810813
.. pdbcommand:: exceptions [excnumber]
811814

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
In :module:`pdb`, *args* and *retval* commands were fixed to properly handle
2+
objects for which :func:`repr` raises an exception.

0 commit comments

Comments
 (0)