PageRenderTime 48ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-3.0
 1class Foo(str):
 2    def __init__(self, arg):
 3        self.arg = arg
 4
 5    def __repr__(self):
 6        return self.arg
 7    
 8foo = Foo('cosmic')
 9print foo
10print str(12)
11print str([12,13])
12exit()