Advertisement
Guest User

Untitled

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