
- We were using "<type ...>" like Python2 does for built-ins? But even Python 2 called user classes "<class ...>" - Python 3 calls both built-ins and user classes "class". - Check if there's a __module__ name and use that as well, now we look even more like Python!
9 lines
129 B
Plaintext
9 lines
129 B
Plaintext
No args!
|
|
42
|
|
48
|
|
Called as a setter: [102]
|
|
102
|
|
<class '__main__.Foo'> test
|
|
<class '__main__.Foo'> test
|
|
<class '__main__.Bar'> test
|