Re: can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Joel Goldstick
On Jun 19, 2014 7:05 AM, Neal Becker ndbeck...@gmail.com wrote: Can I change behavior of py3 to return nan for 0./0. instead of raising an exception? There is no nan in python. -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Chris “Kwpolska” Warrick
On Thu, Jun 19, 2014 at 1:31 PM, Joel Goldstick joel.goldst...@gmail.com wrote: On Jun 19, 2014 7:05 AM, Neal Becker ndbeck...@gmail.com wrote: Can I change behavior of py3 to return nan for 0./0. instead of raising an exception? There is no nan in python. Wrong: float('nan') nan also:

Re: can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Chris Angelico
On Thu, Jun 19, 2014 at 9:31 PM, Joel Goldstick joel.goldst...@gmail.com wrote: On Jun 19, 2014 7:05 AM, Neal Becker ndbeck...@gmail.com wrote: Can I change behavior of py3 to return nan for 0./0. instead of raising an exception? There is no nan in python. Yes, there is, but it's not normal