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 xtreak
Recipients lktoken, ned.deily, ronaldoussoren, xtreak
Date 2018-07-18.09:39:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531906746.1.0.56676864532.issue34143@psf.upfronthosting.co.za>
In-reply-to
Content
Can you please add some info on how the errorcode dictionary is generated as shown in the picture along with your OS, system information? They seem to have the right values as per the Linux error codes in my Ubuntu box. I might be wrong on the OS on which this happens since you have mentioned it's the opposite of Linux.

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 errno
>>> errno.EDEADLK
35
>>> errno.EAGAIN
11

➜  cpython git:(master) ✗ rlwrap python2.7
Python 2.7.12 (default, Dec  4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import errno
>>> errno.EDEADLK
35
>>> errno.EAGAIN
11

Machine details and values in header files as below

➜  cpython git:(master) ✗ rg 'EDEADLK|EAGAIN' /usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h

/usr/include/asm-generic/errno-base.h
14:#define	EAGAIN		11	/* Try again */

/usr/include/asm-generic/errno.h
6:#define	EDEADLK		35	/* Resource deadlock would occur */

➜  cpython git:(master) ✗ uname -a
Linux ubuntu-s-1vcpu-1gb-blr1-01 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


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