[Python-ideas] pdb.set_trace may not seem long
Guido van Rossum
guido at python.org
Mon Apr 9 20:13:10 CEST 2012
On Mon, Apr 9, 2012 at 10:45 AM, anatoly techtonik <techtonik at gmail.com> wrote:
> On Mon, Apr 9, 2012 at 5:20 PM, Yuval Greenfield <ubershmekel at gmail.com> wrote:
>> pdb.st = pdb.set_trace
>> I find myself typing this a lot:
>> import pdb;pdb.set_trace()
> How about?
> import pdb.trace
Yuck. An import intended to have a side effect. This also won't work
if pdb.trace was imported before.
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas