[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Bug: log-police.py and python 3.0rc1

From: <Paul_Koning_at_Dell.com>
Date: Thu, 2 Oct 2008 10:56:46 -0500

>From: Dave Lawrence [mailto:dlawrence_at_ad-holdings.co.uk]
>
>Paul_Koning_at_Dell.com wrote:
>> Slip of the fingers -- I meant:
>>
>> exec("True=1")
>
>Yes that works - if the exec is executed conditionally. Under python 3
>the execpt clause won't be executed so this works. Patch attached.
>(sanity check - when was "exec" introduced?)

It's in 2.2 judging by the fact that my "Python in a Nutshell" book, which describes V2.2, has it without any disclaimers about futures. I don't know how much older, I'm a relative newcomer to Python.

        paul
Received on 2008-10-02 17:57:40 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.