On Fri, 12 Apr 2013 11:26:02 -0700 (PDT)
"Edward K. Ream" <[email protected]> wrote:

> 
> 
> On Friday, April 12, 2013 10:48:48 AM UTC-5, Terry wrote:
> >
> > On Fri, 12 Apr 2013 08:28:52 -0700 (PDT) 
> > "Edward K. Ream" <[email protected] <javascript:>> wrote: 
> >
> > > The exec function exists in both 2.7 and 3.3, so I don't understand why 
> > > that shouldn't suffice. 
> >
> > At least in 3.1 / 3.2 there was some incompatibility with 2.7... 
> >
> > Yep, it's a statement in 2.7 and a function in 3.x, hence the need for 
> > the triple back flip to get something that's valid syntax in both. 
> >
> 
> I think there is a problem with the Python docs.  In fact, exec is also a 
> function in 2.6, 2.7 and 3.x, as this test shows::
> 
>     exec('print("hi")',{},{})
> 
> But the Python docs don't mention the exec *function* in the builtins doc 
> pages...

Oh sure, like the Python docs. are broken and nobody's noticed

(google google)

Wow - the Python docs. are broken and nobody's noticed! :-)

Well, somebody noticed:

http://comments.gmane.org/gmane.comp.python.devel/135708
(scroll down for BDFL pronouncement)

so it's actually still a statement in 2.7, it just has two forms,
and, see link at bottom of link above, apparently there's still some
slight obscure differences, not sure we care though.

Cheers -Terry

> Edward 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to