[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not a bug and the issue can be closed. I’ll do so when I get back to my computer in a couple of days. -- On the road, hence brief. Op 19 jul. 2018 om 08:52 heeft Karthikeyan Singaravelan het volgende geschreven: > > Karthikeyan Singaravelan a

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the details @lktoken. I assumed that you were on Linux and had the opposite values. Verified it on my Mac and they report the same values as yours. I think the values are also different for Windows machines as @ronaldoussoren noted in hi

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread lktoken
lktoken added the comment: yes, I agree that this is not a bug. I used to think that this value is the same in macOS and Linux. Now it seems that I am wrong. And sorry for disturbing you. -- ___ Python tracker

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I’m not sure if I understand correctly. Is your report about the difference in the values of EAGAIN between Linux and macOS? If so, that is not a bug: the relevant standards only document the name and type of these constants and not their values. The value c

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread lktoken
lktoken added the comment: The picture is a screenshot from the IDEA editor on my OSX system. This may be just a problem with the python I am using. So sad. Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "help", "copyright"

[issue34143] There is a constant definition error in errno.py

2018-07-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan 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

[issue34143] There is a constant definition error in errno.py

2018-07-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: 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

[issue34143] There is a constant definition error in errno.py

2018-07-18 Thread lktoken
New submission from lktoken : In errno.py, the constant EDEADLK has a defined value of 11, and the constant EAGAIN has a defined value of 35, which is exactly the opposite of the linux constant definition. See: https://www.thegeekstuff.com/2010/10/linux -error-codes/. -- components: