summaryrefslogtreecommitdiff
path: root/py/moduerrno.c
AgeCommit message (Collapse)Author
2017-02-22py/moduerrno: Make list of errno codes configurable.Damien George
It's configurable by defining MICROPY_PY_UERRNO_LIST. If this is not defined then a default is provided.
2017-02-22py/moduerrno: Make uerrno.errorcode dict configurable.Damien George
It's configured by MICROPY_PY_UERRNO_ERRORCODE and enabled by default (since that's the behaviour before this patch). Without this dict the lookup of errno codes to strings must use the uerrno module itself.
2016-09-22all: Remove 'name' member from mp_obj_module_t struct.Damien George
One can instead lookup __name__ in the modules dict to get the value.
2016-05-28py/moduerrno: Add ECONNREFUSED, one of frequent networking errors.Paul Sokolovsky
2016-05-25py/moduerrno: Add EEXIST, EISDIR.Paul Sokolovsky
Useful to check file/dir operations result, in particular used by upip.
2016-05-13py/moduerrno: Add EACCES, pretty common error on Unix.Paul Sokolovsky
2016-05-12py/objexcept: Don't convert errno to str in constructor, do it in print.Damien George
OSError's are now printed like: OSError: [Errno 1] EPERM but only if the string corresponding to the errno is found.
2016-05-12py: Add mp_errno_to_str() and use it to provide nicer OSError msgs.Damien George
If an OSError is raised with an integer argument, and that integer corresponds to an errno, then the string for the errno is used as the argument to the exception, instead of the integer. Only works if the uerrno module is enabled.
2016-05-12py/moduerrno: Add more constants to the errno module.Damien George
2016-05-10py: Add uerrno module, with errno constants and dict.Damien George