A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-February/070912.html below:

[Python-Dev] Why is nb_inplace_power ternary?

[Python-Dev] Why is nb_inplace_power ternary? [Python-Dev] Why is nb_inplace_power ternary?Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 10 01:09:50 CET 2007
Martin v. Löwis wrote:
> Greg Ewing schrieb:
> 
>> Might we want to add an in-place version of the 3-arg
>> pow() function one day?
> 
> What could the syntax for that be?

It wouldn't be a syntax, just a function, e.g.

    ipow(x, n, 10)

> Also, it would break existing __ipow__ implementations
> that only receive two arguments

You could consider them broken already, since the
signature clearly implies that there could be a
third argument. The fact that it's not currently
used is no excuse. :-)

--
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4