Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment: 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34143> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com