Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <class '__main__.Foo'> 1 0
- 1
- <class '__main__.Foo'> 2 3
- Traceback (most recent call last):
- File "C:/Users/DMAshura/AppData/Local/Programs/Python/Python36-32/new.py", line 16, in <module>
- g = Foo(2,3)
- File "C:/Users/DMAshura/AppData/Local/Programs/Python/Python36-32/new.py", line 7, in __new__
- return object.__new__(cls, symbol, exponent)
- TypeError: object() takes no parameters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement