Georg Brandl <ge...@python.org> added the comment: It seems to me that retval works quite well, provided you call it in the frame where the return occurs:
> /home/gbr/devel/python/x.py(2)f() -> return 123 (Pdb) step --Return-- > /home/gbr/devel/python/x.py(2)f()->123 -> return 123 (Pdb) retval 123 (Pdb) ---------- nosy: +georg.brandl resolution: -> works for me status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5343> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com