Re: ** Operator
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: ** Operator

From: Christoph Zwerschke <cito@online.de>
Date: Mon Mar 20 2006 - 12:53:09 CET

Alex Martelli wrote:
> Sathyaish wrote:
>
>> I tried it on the interpreter and it looks like it is the "to the power
>> of" operator symbol/function. Can you please point me to the formal
>> definition of this operator in the docs?
>
> http://docs.python.org/ref/power.html

I think this should be also mentioned in the Built-In Functions section
of the Library Reference. Probably most users do not read the Language
Reference (since the main menu says it's "for language lawyers" and yes,
it is not really fun to read).

In the explanation about pow() at
http://docs.python.org/lib/built-in-funcs.html, the notation 10**2 is
suddenly used, without explaining that it is equivalent to pow(10,2). I
think this could be improved in the docs.

-- Christoph
Received on Sun Apr 30 17:50:06 2006