Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'url:sourceforge': 0.03; 'subject:Python': 0.06; 'debug': 0.07; 'debugging': 0.07; 'debugger': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; '###': 0.16; '#ifdef': 0.16; 'be:': 0.16; 'breakpoint': 0.16; 'debugger.': 0.16; 'impractical': 0.16; 'pdb': 0.16; 'statement.': 0.16; 'virtualenv.': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'python?': 0.22; 'cc:addr:python.org': 0.22; 'adds': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; '[1]': 0.29; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'skip:& 70': 0.31; 'date:': 0.34; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; '+0100': 0.36; 'email addr:python.org': 0.37; 'remote': 0.38; 'that,': 0.38; 'skip:_ 30': 0.39; 'subject:': 0.39; 'bad': 0.39; 'how': 0.40; 'most': 0.60; 'email addr:gmail.com': 0.63; 're:': 0.63; 'skip:n 10': 0.64; 'more': 0.64; 'email name:python- list': 0.65; 'realized': 0.68; 'funny': 0.74; 'saw': 0.77; 'haha!': 0.84; 'subject: #': 0.96; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6Xko4PbTnrp1OykXDKHzYD4tVqOIYq3RNhjWH/em6Ao=; b=YgVKZEcal3UB5yWRlg0ix8Sc5sFPXIBKT+POhLC8xyk2GbQLXwngphNuH2ZqgaQX6X WwDIoyBQ6LamFZfnGxAH/c8zzdc1g4CTljhFUHe+qkCI5NxQmGJLHg8ay4zpfXePqXbw 9t7HrZdGSibNsew0XKmI4SnbLI14skrXXkcKCx5998R2xu2wRuWAuaH6yPcWHpyGqCNT rQscWpeq1sZ0+S9BYPVQ6/XvrmGmvqVX65OdJgwTt2Fy5Y+Bzv799OfnoJF/kSBbzFic PMjr//jZT8QpsI5Fv50laju/caemEYWI13KahdVzNJCTW6ngoJ/AvXrYIOVKoozXw4fm oqMA== MIME-Version: 1.0 X-Received: by 10.49.81.193 with SMTP id c1mr16296005qey.56.1369781468514; Tue, 28 May 2013 15:51:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 May 2013 23:51:08 +0100 Subject: RE: Python #ifdef From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Carlos Nepomuceno Content-Type: multipart/alternative; boundary=047d7b5dbe1ed9ed1b04ddcf198a Cc: python-list@python.org 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: 94 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369781472 news.xs4all.nl 15903 [2001:888:2000:d::a6]:33987 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46347 --047d7b5dbe1ed9ed1b04ddcf198a Content-Type: text/plain; charset=ISO-8859-1 On 28 May 2013 21:53, "Carlos Nepomuceno" wrote: > > ________________________________ > > Date: Tue, 28 May 2013 21:34:36 +0100 > > Subject: RE: Python #ifdef > > From: fabiosantosart@gmail.com > > To: carlosnepomuceno@outlook.com > > CC: python-list@python.org > > > > > > On 28 May 2013 21:26, "Carlos Nepomuceno" > > > > > wrote: > > > Haha! That's it!!! > > > > > > Just realized how funny this can be: ;) > > > > > > ### never to be opened ### > > > def pandoras_box(v): > > > return v/0.0 > > > > > > if customer_didnt_pay(): > > > pandoras_box() > > > > > > #lol > > > > 1/0 is, after print, my most common debug statement. > > What's the best debugger for Python? Have you tried HAP[1]? > > [1] http://hapdebugger.sourceforge.net/ Never saw that, but the remote debugging looks like it adds some flexibility. That said, I don't often use a debugger. When I do, it's pdb. Pdb is not bad at all, and it comes in the stdlib, which makes it readily available in a virtualenv. It's impractical to set more than a breakpoint, but then again I only use a breakpoint at a time. --047d7b5dbe1ed9ed1b04ddcf198a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 28 May 2013 21:53, "Carlos Nepomuceno" <carlosnepomuceno@outlook.com> wrote: >
> ________________________________
> > Date: Tue, 28 May 2013 21:34:36 +0100
> > Subject: RE: Python #ifdef
> > From: fabiosantosart@= gmail.com
> > To: carlosnepomuc= eno@outlook.com
> > CC: python-list@python.= org
> >
> >
> > On 28 May 2013 21:26, "Carlos Nepomuceno"
> > <carlosnepomuc= eno@outlook.com<mailto:carlosnepomuceno@outlook.com>>
> > wrote:
> > > Haha! That's it!!!
> > >
> > > Just realized how funny this can be: ;)
> > >
> > > ### never to be opened ###
> > > def pandoras_box(v):
> > > =A0 =A0 return v/0.0
> > >
> > > if customer_didnt_pay():
> > > =A0 =A0 pandoras_box()
> > >
> > > #lol
> >
> > 1/0 is, after print, my most common debug statement.
>
> What's the best debugger for Python? Have you tried HAP[1]?
>
> [1] http://hapdebugger= .sourceforge.net/

Never saw that, but the remote debugging looks like it adds = some flexibility. That said, I don't often use a debugger. When I do, i= t's pdb. Pdb is not bad at all, and it comes in the stdlib, which makes= it readily available in a virtualenv. It's impractical to set more tha= n a breakpoint, but then again I only use a breakpoint at a time.

--047d7b5dbe1ed9ed1b04ddcf198a--