0

I want to make method overloading with Python as below, how can I do it. I want to overload the method that transforms class A.

class A:
   value: int
   def __init__(self, value):
      self.value=value
variable=A('value:61')
quamrana
  • 37,849
  • 12
  • 53
  • 71
  • Python does not support function overloading. A name is bound to exactly one thing in Python, and that's the end of the story. – Silvio Mayolo Jul 31 '22 at 16:23
  • Do the answers to this [question](https://stackoverflow.com/questions/6434482/python-function-overloading) help at all? – quamrana Jul 31 '22 at 16:29

0 Answers0