Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81410

Re: "**" in python

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'syntax': 0.04; 'squares': 0.07; 'here?': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"**"': 0.16; '>on': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'right:': 0.16; 'simpson': 0.16; 'stuff.': 0.16; 'to:addr:python.list': 0.16; 'to:addr:tim.thechases.com': 0.16; 'to:name:tim chase': 0.16; 'unfair': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'header:User-Agent:1': 0.23; 'stephen': 0.24; 'cheers,': 0.24; 'speakers': 0.26; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'along': 0.30; 'code': 0.31; 'chase': 0.31; 'url:python': 0.33; 'there,': 0.34; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'received:211': 0.38; 'little': 0.38; 'does': 0.39; 'url:2012': 0.39; 'most': 0.60; 'url:3': 0.61; 'content- disposition:inline': 0.62; 'respect': 0.70; 'link:': 0.72; 'therefore': 0.72; 'power': 0.76; '"index"': 0.84; 'fry': 0.84; 'implications': 0.84; 'url:03': 0.84; 'url:reference': 0.84; 'yourself,': 0.95
Date Mon, 24 Nov 2014 12:00:03 +1100
From Cameron Simpson <cs@zip.com.au>
To Tim Chase <python.list@tim.thechases.com>
Subject Re: "**" in python
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Disposition inline
In-Reply-To <20141123184316.77485a91@bigbox.christie.dr>
User-Agent Mutt/1.5.23 (2014-03-12)
References <20141123184316.77485a91@bigbox.christie.dr>
X-Optus-CM-Score 0
X-Optus-CM-Analysis v=2.1 cv=dMCfxopb c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=J0QyKEt1u0cA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=5y4faFyK3SkA:10 a=8uR6FKqcAAAA:8 a=8AHkEIZyAAAA:8 a=oCLLucZCAAAA:8 a=ltjPYtmVy4_-NyADc-UA:9 a=CjuIK1q_8ugA:10 a=42pmrMegSdkA:10 a=1CpA-2ffltgA:10 a=VFnc8EXAkwMA:10
Cc "python-list@python.org" <python-list@python.org>
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.16213.1416792102.18130.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416792102 news.xs4all.nl 2868 [2001:888:2000:d::a6]:43464
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81410

Show key headers only | View raw


On 23Nov2014 18:43, Tim Chase <python.list@tim.thechases.com> wrote:
>On 2014-11-24 01:33, Abdul Abdul wrote:
>> Wxy**2
>>
>> What do ** mean here?
>
>"to the power of", so your code squares the value of "Wxy", or "Wxy *
>Wxy"
>
>https://docs.python.org/2/reference/expressions.html#the-power-operator

With respect to finding this out for yourself, if you go the Python docs:

  https://docs.python.org/3/

and follow the "index" link at the top right:

  https://docs.python.org/3/genindex.html

and in that page, follow the "Symbols" link:

  https://docs.python.org/3/genindex-Symbols.html

you will find "**" there, along with a lot of other operator and syntax stuff.

Cheers,
Cameron Simpson <cs@zip.com.au>

Swiftkey, [...] teaches one the lamentable lesson that most
English speakers start most sentences, phrases and sub-clauses
with 'I'. One does not use the word often oneself and it therefore
strikes one as a little unfair that one's texts and emails so often
end up littered with implications of egocentricity. - Stephen Fry
http://www.stephenfry.com/2012/04/03/four-and-half-years-on/9/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: "**" in python Cameron Simpson <cs@zip.com.au> - 2014-11-24 12:00 +1100

csiph-web