This website requires JavaScript.
Explore
Help
Register
Sign In
fengqi
/
lv_micropython
Watch
1
Star
0
Fork
0
You've already forked lv_micropython
Code
Issues
Pull Requests
1
Actions
Packages
Projects
Releases
Wiki
Activity
lv_micropython
/
tests
/
basics
/
subclass-native3.py
8 lines
101 B
Python
Raw
Normal View
History
Unescape
Escape
tests: Add test for accessing attribute of inherited native type.
2014-04-29 03:28:31 +03:00
class
MyExc
(
Exception
)
:
pass
e
=
MyExc
(
100
,
"
Some error
"
)
print
(
e
)
objtype: .print() Exception instances in adhoc way. This is ugly, just as expected.
2014-05-02 01:51:25 +03:00
print
(
repr
(
e
)
)
tests: Add test for accessing attribute of inherited native type.
2014-04-29 03:28:31 +03:00
print
(
e
.
args
)
Reference in New Issue
Copy Permalink