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: 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: References: <20141123184316.77485a91@bigbox.christie.dr> <20141124010003.GA44963@cskk.homeip.net> Date: Sun, 23 Nov 2014 19:48:50 -0600 Subject: Re: "**" in python From: Skip Montanaro To: Python 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --001a1133768806a540050890ff22 Content-Type: text/plain; charset=UTF-8 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 --001a1133768806a540050890ff22 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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 thi= ng to me would have been to type

var =3D 42
var ** 2

and see what happened. It's unlikely to trigger a nuclea= r meltdown, or even crash the interpreter.

Skip

--001a1133768806a540050890ff22--