<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 4/9/2012 10:20 AM, Yuval Greenfield wrote:
<blockquote
cite="mid:CANSw7KwojP6KWQ8ND29KV1MgW0anNrpWZCEYFmKzNArRUAke-w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Proposal:</div>
<div><br>
</div>
<div><a moz-do-not-send="true" href="http://pdb.st">pdb.st</a> =
pdb.set_trace</div>
<div>-----------</div>
<div><br>
</div>
I find myself typing this a lot:
<div><br>
</div>
<div> import pdb;pdb.set_trace()</div>
<div><br>
</div>
<div>It's the int3 of python. When I want to debug an exact
point in the code I use the above line.</div>
<div><br>
</div>
<div>I hope I don't come off as spoiled, it's just that import
pdb;<a moz-do-not-send="true" href="http://pdb.pm">pdb.pm</a>()
is so short that I can't help but wonder how better my life
would be if I could do:</div>
<div><br>
</div>
<div> import pdb;<a moz-do-not-send="true"
href="http://pdb.st">pdb.st</a>()</div>
<div><br>
</div>
<div><br>
</div>
<div>What do you guys think? I know aliasing isn't cool
since TSBOAPOOOWTDI but practicality beats purity....</div>
<div><br>
</div>
</div>
</blockquote>
I have exactly one abbreviation defined in my .vimrc:<br>
<br>
abbrev pdbxx import pdb;pdb.set_trace()<br>
<br>
--Ned.<br>
<br>
<blockquote
cite="mid:CANSw7KwojP6KWQ8ND29KV1MgW0anNrpWZCEYFmKzNArRUAke-w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Yuval</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Python-ideas mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-ideas@python.org">Python-ideas@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-ideas">http://mail.python.org/mailman/listinfo/python-ideas</a>
</pre>
</blockquote>
</body>
</html>