debugging in eclipse

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Nov 15 12:05:35 EST 2012


On Thu, 15 Nov 2012 07:56:17 -0800, Aahz wrote:

> In article <roy-F45720.08540815112012 at news.panix.com>, Roy Smith 
> <roy at panix.com> wrote:
>>In article <mailman.3714.1352986928.27098.python-list at python.org>,
>> Dave Angel <d at davea.name> wrote:
>>>
>>> I'd also add a print statement, just to assure yourself that it's
>>> running.
>>
>>My trick to make sure something is running is to add "assert 0".
> 
> ``1/0`` is shorter.  ;-)

It is also guaranteed to run, unlike assert.



-- 
Steven



More information about the Python-list mailing list