This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
d8351ca8a0
circuitpython
/
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-28 20:28:31 -04: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-01 18:51:25 -04:00
print
(
repr
(
e
)
)
tests: Add test for accessing attribute of inherited native type.
2014-04-28 20:28:31 -04:00
print
(
e
.
args
)
Reference in New Issue
Copy Permalink