what's the point of pow()?

richyjsm at gmail.com richyjsm at gmail.com
Thu Aug 9 02:43:02 CEST 2007


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 *....

and three argument pow-with-modulo seems like specilaist usage that
belongs in the standard lib, not in the core.  I know about crypto and
number theory uses.  are there others?

it's obviously useful for something or else it would be slated for
removal in python 3000, surely?

Richard




More information about the Python-list mailing list