Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!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.130 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.82; '*S*': 0.07; 'else:': 0.03; 'subject:Python': 0.06; 'python': 0.11; 'def': 0.12; '###': 0.16; '#ifdef': 0.16; 'be:': 0.16; 'trying': 0.19; 'to:name:python- list@python.org': 0.22; 'received:65.55.116': 0.24; 'header:In- Reply-To:1': 0.27; 'skip:- 40': 0.29; 'really': 0.36; 'to:addr :python-list': 0.38; 'subject:': 0.39; '\xa0\xa0\xa0': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; "you're": 0.61; 're:': 0.63; 'skip:n 10': 0.64; 'realized': 0.68; 'funny': 0.74; 'haha!': 0.84; 'yet?': 0.84; 'edwards': 0.91; 'subject: #': 0.96 X-TMN: [ECx5+PE8VTdHvPToEwpBhYlyZ9FuLWni] X-Originating-Email: [carlosnepomuceno@outlook.com] From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: Python #ifdef Date: Tue, 28 May 2013 23:22:40 +0300 Importance: Normal In-Reply-To: References: , , , , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 28 May 2013 20:22:40.0402 (UTC) FILETIME=[1A1A3F20:01CE5BE1] 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369772569 news.xs4all.nl 15925 [2001:888:2000:d::a6]:42686 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46336 ----------------------------------------=0A= > From: invalid@invalid.invalid=0A= > Subject: Re: Python #ifdef=0A= [...]=0A= > You're trying to make this a lot harder than it really is:=0A= >=0A= > if sys.version_info[0] =3D=3D 3:=0A= > def original(n):=0A= > m =3D 0=0A= > for b in n.to_bytes(6=2C 'big'):=0A= > m =3D 256*m + b=0A= > return m=0A= > else:=0A= > def original(n):=0A= > =0A= >=0A= >=0A= > --=0A= > Grant Edwards grant.b.edwards Yow! Am I having fun yet?=0A= > at=0A= > gmail.com=0A= =0A= Haha! That's it!!!=0A= =0A= Just realized how funny this can be: =3B)=0A= =0A= ### never to be opened ###=0A= def pandoras_box(v):=0A= =A0=A0=A0 return v/0.0=0A= =0A= if customer_didnt_pay():=0A= =A0=A0=A0 pandoras_box()=0A= =0A= #lol =