Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errno : add enumeration / descriptions #797

Open
Josverl opened this issue Feb 24, 2025 · 0 comments
Open

errno : add enumeration / descriptions #797

Josverl opened this issue Feb 24, 2025 · 0 comments

Comments

@Josverl
Copy link
Owner

Josverl commented Feb 24, 2025

Add descriptions as in : https://support.microbit.org/support/solutions/articles/19000126750-python-oserror-codes

However, the problem is that the different parts have different error numbers for the same symbol

#stm32 

ENOBUFS: int = 105
ENODEV: int = 19
ENOENT: int = 2
EISDIR: int = 21
EIO: int = 5
EINVAL: int = 22
EPERM: int = 1
ETIMEDOUT: int = 110
ENOMEM: int = 12
EOPNOTSUPP: int = 95
ENOTCONN: int = 107
errorcode: dict = {}
EAGAIN: int = 11
EALREADY: int = 114
EBADF: int = 9
EADDRINUSE: int = 98
EACCES: int = 13
EINPROGRESS: int = 115
EEXIST: int = 17
EHOSTUNREACH: int = 113
ECONNABORTED: int = 103
ECONNRESET: int = 104
ECONNREFUSED: int = 111
# Windows

ENOBUFS: Final[int] = 119
ENODEV: Final[int] = 19
ENOENT: Final[int] = 2
EISDIR: Final[int] = 21
EIO: Final[int] = 5
EINVAL: Final[int] = 22
EPERM: Final[int] = 1
ETIMEDOUT: Final[int] = 138
ENOMEM: Final[int] = 12
EOPNOTSUPP: Final[int] = 130
ENOTCONN: Final[int] = 126
errorcode: dict = {}
EAGAIN: Final[int] = 11
EALREADY: Final[int] = 103
EBADF: Final[int] = 9
EADDRINUSE: Final[int] = 100
EACCES: Final[int] = 13
EINPROGRESS: Final[int] = 112
EEXIST: Final[int] = 17
EHOSTUNREACH: Final[int] = 110
ECONNABORTED: Final[int] = 106
ECONNRESET: Final[int] = 108
ECONNREFUSED: Final[int] = 107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant