proposed language change to int/int==float (was: PEP0238 lament)
Michael Abbott
michael at rcp.co.uk
Tue Jul 31 03:40:38 EDT 2001
Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> wrote in
news:slrn.pl.9m9voo.gs8.qrczak at qrnik.zagroda:
>
> The reason of the unusual behavior of ** is simple: there are about
> four operations artificially folded into one operator.
>
> - Raising an element of a ring (or even associative group) to a
> nonnegative integer exponent.
>
> - Raising an element of a field to an integer exponent.
>
> - Raising a real or complex number to a rational exponent.
>
> - Raising a positive real number to a real exponent, or raising
> a complex number to a complex exponent.
>
Nice and helpful analysis!
More information about the Python-list
mailing list