Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90402
| References | <mailman.49.1430633046.12865.python-list@python.org> <66312d54-de5a-4015-99b5-41d332559e00@googlegroups.com> <mailman.340.1431315116.12865.python-list@python.org> <ca2e1795-0eec-4584-ae38-6f6bd7f37585@googlegroups.com> |
|---|---|
| Date | 2015-05-12 01:40 +1000 |
| Subject | Re: code blocks |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.371.1431358827.12865.python-list@python.org> (permalink) |
On Tue, May 12, 2015 at 1:22 AM, zipher <dreamingforward@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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
code blocks "Dr. John Q. Hacker" <zondervanz@gmail.com> - 2015-05-02 13:30 -0500
Re: code blocks Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-05-03 11:56 +0100
Re: code blocks zipher <dreamingforward@gmail.com> - 2015-05-10 18:39 -0700
Re: code blocks Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-10 21:31 -0600
Re: code blocks Rustom Mody <rustompmody@gmail.com> - 2015-05-10 20:40 -0700
Re: code blocks zipher <dreamingforward@gmail.com> - 2015-05-11 08:22 -0700
Re: code blocks zipher <dreamingforward@gmail.com> - 2015-05-11 08:23 -0700
Re: code blocks Chris Angelico <rosuav@gmail.com> - 2015-05-12 01:40 +1000
Re: code blocks Peter Otten <__peter__@web.de> - 2015-05-11 18:01 +0200
Re: code blocks Chris Angelico <rosuav@gmail.com> - 2015-05-12 02:07 +1000
Re: code blocks zipher <dreamingforward@gmail.com> - 2015-05-11 09:51 -0700
Re: code blocks Peter Otten <__peter__@web.de> - 2015-05-11 18:59 +0200
Re: code blocks Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-10 21:36 -0600
csiph-web