Message135243
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. |
|
Date |
User |
Action |
Args |
2011-05-05 20:49:40 | pitrou | set | recipients:
+ pitrou, ncoghlan, vstinner |
2011-05-05 20:49:40 | pitrou | set | messageid: <1304628580.22.0.561171702394.issue12011@psf.upfronthosting.co.za> |
2011-05-05 20:49:39 | pitrou | link | issue12011 messages |
2011-05-05 20:49:39 | pitrou | create | |
|