PyWart: The problem with "print"

Dave Angel davea at davea.name
Mon Jun 3 08:56:57 EDT 2013


On 06/03/2013 04:49 AM, Mark Lawrence wrote:
> On 03/06/2013 04:10, Dan Sommers wrote:
>> On Sun, 02 Jun 2013 20:16:21 -0400, Jason Swails wrote:
>>
>>> ... If you don't believe me, you've never hit a bug that 'magically'
>>> disappears when you add a debugging print statement ;-).
>>
>> Ah, yes.  The Heisenbug.  ;-)
>>
>> We used to run into those back in the days of C and assembly language.
>> They're much harder to see in the wild with Python.
>>
>
> Strikes me it's a bit like problems when prototyping circuit boards. The
> card doesn't work, so you mount it on an extender card, problem goes
> away, remove extender card, problem reappears.  Wash, rinse, repeat :)
>

That's when you use a little kappy-zapper spray.

-- 
DaveA



More information about the Python-list mailing list