code blocks
Chris Angelico
rosuav at gmail.com
Mon May 11 11:40:23 EDT 2015
On Tue, May 12, 2015 at 1:22 AM, zipher <dreamingforward at gmail.com> wrote:
> Ah, yeah, I guess that does it. But (shame) it looks like you've gone past the BDFL. Try:
>
>>>> help(exec)
> ^
> SyntaxError: invalid syntax
>
That's because, in the version of Python you're using, exec is a
keyword. You could switch to Python 3, where it's a function, or
request it by name. Though interestingly, my Py2 doesn't have any help
on exec:
>>> help('exec')
no documentation found for 'exec'
Not sure why that is.
ChrisA
More information about the Python-list
mailing list