Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SomeClass:
- def __init__(self, x):
- self.x = x
- def __repr__(self):
- return "({x})".format(x)
- a = SomeClass(23)
- print(repr(a))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement