Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; ';-)': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'debugging': 0.07; 'prototyping': 0.07; 'dan': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.12; 'language.': 0.14; 'ah,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'work,': 0.20; 'print': 0.22; 'header:User-Agent:1': 0.23; 'subject:problem': 0.24; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; "doesn't": 0.30; 'statement': 0.30; 'ball': 0.31; 'card,': 0.31; 'yes.': 0.31; 'run': 0.32; 'problem': 0.35; 'subject:with': 0.35; 'add': 0.35; 'next': 0.36; 'problems': 0.38; 'jason': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'days': 0.60; 'remove': 0.60; 'subject:"': 0.60; 'black': 0.61; 'back': 0.62; "you've": 0.63; 'card': 0.63; 'subject:The': 0.64; 'believe': 0.68; 'watching': 0.68; 'repeat': 0.74; 'circuit': 0.84; 'disappears': 0.84; 'extender': 0.84; 'white,': 0.84; 'received:89': 0.85; 'mount': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: PyWart: The problem with "print" Date: Mon, 03 Jun 2013 09:49:40 +0100 References: <687dea63-84da-4c45-9366-cb5a10665d1f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-174-199.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: X-Antivirus: avast! (VPS 130602-1, 02/06/2013), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370249389 news.xs4all.nl 15895 [2001:888:2000:d::a6]:48155 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46778 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 :) -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence