In article <[EMAIL PROTECTED]>,
 Michael Torrie <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] wrote:
> > Have a look at this:
> > 
> >>>> -123**0
> > -1
> > 
> > 
> > The result is not correct, because every number (positive or negative)
> > raised to the power of 0 is ALWAYS 1 (a positive number 1 that is).
> 
> No python is correct.  you're expression parses this way, when converted
> to a lisp-ish prefix expression:
> 
> (- (123 ** 0 ))

Yeah, it's just the standard parser.  For other situations Python does 
fine.  E.g.

In [1]: x=-1

In [2]: x**0
Out[2]: 1

-- 
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to