what's the point of pow()?

Paul Rubin http
Wed Aug 8 23:06:00 EDT 2007


richyjsm at gmail.com writes:
> it's a serious question:  why does the builtin pow function exist?
> for two argument pow we've got **.  there's no add() for + or mul()
> for *....

They are in the operator module and maybe pow could go there too.

Actually there's a math.pow function that works differently from
the builtin function.  Some cleanup might be in order.



More information about the Python-list mailing list