diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-12 23:30:20 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-15 00:03:23 +0200 |
commit | ddf2178d834d91ff695450c7f67a6478a80232da (patch) | |
tree | 01eb7e59c8f77792e3762087718d3057bce68646 /tests/basics | |
parent | 8eec8bcad95d5e60485635a2dbfd97886698d954 (diff) | |
download | micropython-ddf2178d834d91ff695450c7f67a6478a80232da.tar.gz micropython-ddf2178d834d91ff695450c7f67a6478a80232da.zip |
Refactor exception objects to have better impl of Python-side interface.
This implements internal args tuple of arguments, while still keeping
object useful for reporting C-side errors.
Further elaboration is needed.
Diffstat (limited to 'tests/basics')
-rw-r--r-- | tests/basics/tests/exception1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/tests/exception1.py b/tests/basics/tests/exception1.py new file mode 100644 index 0000000000..95d933de76 --- /dev/null +++ b/tests/basics/tests/exception1.py @@ -0,0 +1,3 @@ +# TODO: requires repr() +#a = IndexError(1, "test", [100, 200]) +#print(repr(a)) |