Python Forum
shouldn't this raise an exception?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shouldn't this raise an exception?
#4
i did not know about the traps. i guess there really are cases where you need to just continue after an underflow. having a way to suppress exceptions in a try/except would have been an alternate way. not all exceptions would be safe for that.

what raised my concern was the funny value that had a 0 mantissa. i remember ages ago having an HP-35 calculator where i found a way to get an invalid value like that and dividing a number by that would hard freeze the calculator (a divide by zero it failed to catch).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
shouldn't this raise an exception? - by Skaperen - Dec-07-2021, 07:52 PM
RE: shouldn't this raise an exception? - by casevh - Dec-08-2021, 05:01 AM
RE: shouldn't this raise an exception? - by Skaperen - Dec-11-2021, 06:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  arg and keyword arg conflict: what to raise Skaperen 5 2,798 Jun-22-2020, 12:43 AM
Last Post: Skaperen
  Python 3.701b released yesterday--who should install it and who shouldn't? league55 7 4,506 Feb-02-2018, 08:11 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020