/testing/test_resources/test_inherit_str.py
http://github.com/jdf/processing.py · Python · 12 lines · 10 code · 2 blank · 0 comment · 0 complexity · 04d284d387d6e9f74d4674124fae1399 MD5 · raw file
- class Foo(str):
- def __init__(self, arg):
- self.arg = arg
- def __repr__(self):
- return self.arg
-
- foo = Foo('cosmic')
- print foo
- print str(12)
- print str([12,13])
- exit()