Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83400

Re: Decimals and other numbers

References <CABicbJK-5izGtet8BsS1Yqx+6AHMX7gLU4zYjjt5jULJXNVipA@mail.gmail.com> <54AF405C.6020609@davea.name> <85tx00vend.fsf@benfinney.id.au>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date 2015-01-08 19:13 -0800
Subject Re: Decimals and other numbers
Newsgroups comp.lang.python
Message-ID <mailman.17503.1420773255.18130.python-list@python.org> (permalink)

Show all headers | View raw


Thanks Ben, with your encouragement I have filed
http://bugs.python.org/issue23201

-- Devin

On Thu, Jan 8, 2015 at 7:03 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
> Dave Angel <davea@davea.name> writes:
>
>> What you don't say is which behavior you actually expected.  Since
>> 0**0 is undefined mathematically, I'd expect either an exception or a
>> NAN result.
>
> Do you think that the ‘int’ and ‘float’ types, which do produce a number
> result for ‘0 ** 0’, are buggy and should be fixed?
>
> I think the inconsistency is unnecessarily confusing. Perhaps the
> consistency is in standards outside Python, but I think there is cause
> here either for a change of behaviour or, if ther eis a good rationale
> for the incompatible behaviours, to document the rationale. In either
> case, a bug report is warranted IMO.
>
> --
>  \     “We are all agreed that your theory is crazy. The question that |
>   `\      divides us is whether it is crazy enough to have a chance of |
> _o__)            being correct.” —Niels Bohr (to Wolfgang Pauli), 1958 |
> Ben Finney
>
> --
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Decimals and other numbers Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-08 19:13 -0800

csiph-web