[Python-ideas] pdb.set_trace may not seem long
Yuval Greenfield
ubershmekel at gmail.com
Mon Apr 9 16:20:22 CEST 2012
Proposal:
pdb.st = pdb.set_trace
-----------
I find myself typing this a lot:
import pdb;pdb.set_trace()
It's the int3 of python. When I want to debug an exact point in the code I
use the above line.
I hope I don't come off as spoiled, it's just that import pdb;pdb.pm() is
so short that I can't help but wonder how better my life would be if I
could do:
import pdb;pdb.st()
What do you guys think? I know aliasing isn't cool since TSBOAPOOOWTDI but
practicality beats purity....
Yuval
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120409/af0bf772/attachment.html>
More information about the Python-ideas
mailing list