Newbie naive question ... int() throws ValueError

Christian Heimes lists at cheimes.de
Fri May 11 12:15:05 EDT 2012


Am 11.05.2012 17:51, schrieb Terry Reedy:
> If the domain of a function is truly all Python objects, it cannot raise
> an error. I believe id(x) is such an example.

Even id() can raise an exception, for example MemoryError when you are
running out of memory.

Christian




More information about the Python-list mailing list