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


Groups > comp.lang.python > #83399 > unrolled thread

Re: Decimals and other numbers

Started byBen Finney <ben+python@benfinney.id.au>
First post2015-01-09 14:03 +1100
Last post2015-01-09 14:03 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Decimals and other numbers Ben Finney <ben+python@benfinney.id.au> - 2015-01-09 14:03 +1100

#83399 — Re: Decimals and other numbers

FromBen Finney <ben+python@benfinney.id.au>
Date2015-01-09 14:03 +1100
SubjectRe: Decimals and other numbers
Message-ID<mailman.17502.1420772948.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web