[Python-Dev] Why is nb_inplace_power ternary? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 10 01:09:50 CET 2007
- Previous message: [Python-Dev] Why is nb_inplace_power ternary?
- Next message: [Python-Dev] Why is nb_inplace_power ternary?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Why is nb_inplace_power ternary?
- Next message: [Python-Dev] Why is nb_inplace_power ternary?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]