Message 321872 - Python tracker

Message321872

Author xtreak
Recipients lktoken, ned.deily, ronaldoussoren, xtreak
Date 2018-07-18.09:53:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531907610.46.0.56676864532.issue34143@psf.upfronthosting.co.za>
In-reply-to
Content
Please ignore about how it's generated. I tried `errno.errorcode` and can get the dictionary as in the picture with https://docs.python.org/3.8/library/errno.html#errno.errorcode. I think this has to be used as below and also would like to know how other error names have the correct numeric value except for the EDEADLK and EAGAIN which is generated at Modules/errnomodule.c . Using them with `os.strerror` also gets me the correct information 

➜  cpython git:(master) ✗ rlwrap ./python
Python 3.8.0a0 (heads/master:35c0809, Jul 16 2018, 10:29:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.strerror(35)
'Resource deadlock avoided'
>>> os.strerror(11)
'Resource temporarily unavailable'

Thanks
History
Date User Action Args
2018-07-18 09:53:30xtreaksetrecipients: + xtreak, ronaldoussoren, ned.deily, lktoken
2018-07-18 09:53:30xtreaksetmessageid: <1531907610.46.0.56676864532.issue34143@psf.upfronthosting.co.za>
2018-07-18 09:53:30xtreaklinkissue34143 messages
2018-07-18 09:53:30xtreakcreate