Skip to content

'module' object has no attribute 'EPIPE' #732

@LUCKandII

Description

@LUCKandII

Hi, I have questions about using this library errno,

  • I can import this library errno,but how do I know how the error flags correspond to the numbers? I refer to the source code here: python-stdlib/errno/errno.py but found a problem:
>>> import errno
>>> errno.ETIMEDOUT
116
>>> errno.EINPROGRESS
119
>>> errno.EPIPE
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'EPIPE'
  • But in errno.py, errno.ETIMEDOUT should be 110, errno.EINPROGRESS should be 115, errno.EPIPE should be 32. Did I refer to the wrong source code?

This problem will affect the porting and development of some libraries especially using errno.EPIPE and I am confuse. I 'd love to know where the exact source code is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions