Meaning of error numbers in Python exceptions
问题 Catching Python's OverflowError after some dumb calculation, I checked the error's args and saw it's a tuple containing an integer as its first coordinate. I assume this is some kind of error number ( errno ). However, I could not find any documentation or reference for it. Example: try: 1e4**100 except OverflowError as ofe: print ofe.args ## prints '(34, 'Numerical result out of range')' Do you know what 34 means in this context? Do you know other possible error numbers for this exception?