Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. class Par:
  2.     def __init__(self, x:int, y:int):
  3.         self.x = x
  4.         self.y = y
  5.  
  6.     def __repr__(self):
  7.         return 'Par({0.x!r}, {0.y!r})'.format(self)
  8.  
  9.     def __str__(self):
  10.         return '({0.x!s}, {0.y!s})'.format(self)
  11.  
  12. par = Par(2, 3)
  13.  
  14. par
  15.  
  16. print(par)