This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients ncoghlan, pitrou, vstinner
Date 2011-05-05.20:49:39
SpamBayes Score 3.421161e-05
Marked as misclassified No
Message-id <1304628580.22.0.561171702394.issue12011@psf.upfronthosting.co.za>
In-reply-to
Content
Treating RuntimeError as if it could take an errno is no good:

>>> try: signal.siginterrupt(32, 12345)
... except RuntimeError as e: print(e.errno)
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: (22, 'Invalid argument')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
AttributeError: 'RuntimeError' object has no attribute 'errno'


Changing it breaks compatibility a bit but I think it's worth it.
History
Date User Action Args
2011-05-05 20:49:40pitrousetrecipients: + pitrou, ncoghlan, vstinner
2011-05-05 20:49:40pitrousetmessageid: <1304628580.22.0.561171702394.issue12011@psf.upfronthosting.co.za>
2011-05-05 20:49:39pitroulinkissue12011 messages
2011-05-05 20:49:39pitroucreate