Getting rid of bitwise operators in Python 3?

richyjsm at gmail.com richyjsm at gmail.com
Sat Sep 22 19:40:36 EDT 2007


On Sep 22, 7:04 pm, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> On Sat, 22 Sep 2007 21:17:38 +0000, Bryan Olson wrote:
> > The operator module offers pow(). Is there any good reason for
> > pow() as a built-in?
>
> The `operator.pow()` is  just the function for ``**``, it lacks the
> optional third argument of the built in `pow()`.
>
> Ciao,
>         Marc 'BlackJack' Rintsch

But does the three-argument version of pow() really belong in the
core?  Who uses it?  It seems very much like a specialist's function
to me:  certainly it wouldn't be out of place in the standard library
somewhere (perhaps a cryptography or number theory module), but in its
three argument form it has to be one of the least used core functions.

Richard




More information about the Python-list mailing list