This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
You've already forked circuitpython
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
91e556af23
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
)