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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to