3-arg float pow()

John W. Baxter jwbaxter at spamcop.net
Wed Sep 5 10:51:38 EDT 2001


In article <mailman.999671886.3466.python-list at python.org>, Tim Peters
<tim.one at home.com> wrote:

> >> TypeError: 3rd argument to floating pow() must be None
> 
> [Gareth McCaughan]
> > Can I put in a request for "or omitted", or something of
> > the kind, to go on the end of that error message?
> 
> >> TypeError: integer pow() arg 3 must not be specified when arg 2 is < 0
> 
> > And for the messages in those two cases to be made more
> > consistent?
> 
> Sure!  These were changed, to
> 
>     pow() 3rd argument cannot be 0
>     pow() 2nd argument cannot be negative when 3rd argument specified
>     pow() 3rd argument not allowed unless all other arguments are integers

"all other" seems a pretty strong way to say "the other two" or "the
first and second" ("all" makes me think of bunches of other arguments
trailing along after the third, in addition to the first and second). 
But if the usage is consistent with other error messages, I'll retire
quietly to the sidelines.

  --John (who, having not had the need, only just became aware we
*have* a 3-argument pow() ;-))



More information about the Python-list mailing list