Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90402
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'subject:code': 0.07; 'exec': 0.09; 'function,': 0.09; 'try:': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'ah,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'keyword.': 0.16; 'syntaxerror:': 0.16; 'using,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'looks': 0.24; 'cc:2**0': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; '>>>>': 0.31; 'guess': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'does': 0.39; '12,': 0.39; 'sure': 0.39; 'is.': 0.60; 'gone': 0.61; "you're": 0.61; "you've": 0.63; 'invalid': 0.68; '2015': 0.84; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=J6ovklDpn913ak5AVrvrmeshkTkQrzzTsDgqqkFXUTc=; b=q5iL2r55cG1Mw5Q05eVQrNhcfVJTa9VysQ0mjVGSOMh9fDd5A+rECWJv8yw03tAZmP LHfAxJb9nIBVkbdIwILMNAd1jqA3WYd1WHC5nCXrz758oF6CDJWluSDRHyC6uOBLg2+9 m6U9t73pBF3DARwOyJN0EbC+GybFn9BDrHsgvj27PORTkQL6Snwq08pExiiikCMe7lzG XE7GNXxLPHTFJdjPdQHovYl2tyv97pTK4OwyvGw6a1aFVpDjzBraJ/uWH57xJd7UOLfo Qem/Ij96rO/N4+UqeOkXKyVmvnRw/otay4K2rXJYLDxOQ0UzU+29eY4+WP+Wq1xkQvVb j05A== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.176.137 with SMTP id ci9mr13851577igc.2.1431358823788; Mon, 11 May 2015 08:40:23 -0700 (PDT) |
| In-Reply-To | <ca2e1795-0eec-4584-ae38-6f6bd7f37585@googlegroups.com> |
| 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 | Tue, 12 May 2015 01:40:23 +1000 |
| Subject | Re: code blocks |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.371.1431358827.12865.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1431358827 news.xs4all.nl 2959 [2001:888:2000:d::a6]:58608 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3731 |
| X-Received-Body-CRC | 3783333136 |
| Xref | csiph.com comp.lang.python:90402 |
Show key headers only | View raw
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