summaryrefslogtreecommitdiff
path: root/shared-module/struct/__init__.c
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2018-11-12 16:16:47 +0100
committerNoralf Trønnes <noralf@tronnes.org>2018-11-13 22:04:44 +0100
commitc5aa2e93001436f6d63e3e9b7dff3c535397db1c (patch)
tree99c25b5cefc5d6ff2c3e41ef820295d595c86fc2 /shared-module/struct/__init__.c
parent50f5d27c436cf71d14bf893709375e5bcf62717b (diff)
Support OSError attributes
This adds support for the OSError attributes : errno, strerror, filename and filename2. CPython only sets errno if 2 arguments has been passed in. This has not been implemented here. CPython OSError.args is capped at 2 items for backward compatibility reasons. This has not been implemented here. MICROPY_CPYTHON_COMPAT has to be enabled to get these attributes. mp_common_errno_to_str() has been extended to check mp_errno_to_str() as well. This is done to ease reuse for the strerror argument.
Diffstat (limited to 'shared-module/struct/__init__.c')
0 files changed, 0 insertions, 0 deletions