Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81415
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <skip.montanaro@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.084 |
| X-Spam-Evidence | '*H*': 0.84; '*S*': 0.01; 'interpreter': 0.05; 'interpreter.': 0.07; 'interpreted': 0.09; 'python': 0.11; 'language,': 0.12; 'responses.': 0.16; 'unlikely': 0.16; 'subject:python': 0.16; 'code.': 0.18; 'skip': 0.24; 'header:In- Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'crash': 0.31; 'figure': 0.32; 'something': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'var': 0.36; 'done': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'most': 0.60; 'new': 0.61; 'simply': 0.61; 'more': 0.64; 'obvious': 0.74; 'saw': 0.77; 'happened.': 0.84; 'nuclear': 0.84; 'unaware': 0.84 |
| 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:to :content-type; bh=7nKPIti2MrIT2uEtYFZLb8ZrVHm6bXjt3P2XX22Z8TM=; b=yyweMy2pKVbb655VnEKf6RoeKnKc2Mw+nEpNdQusJlBjEOf0aHJyBjF65+Lo2qEk/Z immp9gAqJHWq076K5EMmF/piyzxX0F+w4t1j76swjEDA4Lzf1hWMeBjmHDkmHICUa68M de7G3RZR3DTv0oIAaMU12180h2Q9Gv81VqOuNQQZkfnijuisCRrN70vT4lJTl5p4hcrV O++p6alGPiBuT2jnFSfqi49fWVyXCt3U5lRzMuQ07wbXJJyMKGIe/UO8NHuQdT1HFx64 iLfYiRl6/iAMq2f4aVS353QfdMjfYxLrNZxgN5e7Wa8CgyT8l+OfZ8NQ7qEvwpkU0Whm 3GlQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.221.22.136 with SMTP id qw8mr11074830vcb.77.1416793730489; Sun, 23 Nov 2014 17:48:50 -0800 (PST) |
| In-Reply-To | <CAGGBd_pVNSCqhO-WAPW5bq8B80s+Cn2A7+A_Qgh8CzOY=o4hjA@mail.gmail.com> |
| References | <20141123184316.77485a91@bigbox.christie.dr> <20141124010003.GA44963@cskk.homeip.net> <CAGGBd_pVNSCqhO-WAPW5bq8B80s+Cn2A7+A_Qgh8CzOY=o4hjA@mail.gmail.com> |
| Date | Sun, 23 Nov 2014 19:48:50 -0600 |
| Subject | Re: "**" in python |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| To | Python <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=001a1133768806a540050890ff22 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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.16217.1416793733.18130.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416793733 news.xs4all.nl 2909 [2001:888:2000:d::a6]:35233 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81415 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
I want to add one more thing to the other responses. People new to Python often seem unaware that being an interpreted language, often the best way to figure something out is to simply try it at the interpreter prompt. The OP saw "var ** 2" in done code. The most obvious thing to me would have been to type var = 42 var ** 2 and see what happened. It's unlikely to trigger a nuclear meltdown, or even crash the interpreter. Skip
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: "**" in python Skip Montanaro <skip.montanaro@gmail.com> - 2014-11-23 19:48 -0600
Re: "**" in python llanitedave <llanitedave@birdandflower.com> - 2014-11-23 18:30 -0800
Re: "**" in python Steven D'Aprano <steve@pearwood.info> - 2014-11-24 04:47 +0000
Re: "**" in python Chris Angelico <rosuav@gmail.com> - 2014-11-24 16:18 +1100
Re: "**" in python albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-15 10:33 +0000
Re: "**" in python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-15 22:31 +1100
csiph-web