The Python Oracle

How to overload __init__ method based on argument type?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Magical Minnie Puzzles

--

Chapters
00:00 Question
00:39 Accepted answer (Score 544)
01:57 Answer 2 (Score 41)
03:14 Answer 3 (Score 38)
03:46 Answer 4 (Score 15)
04:07 Thank you

--

Full question
https://stackoverflow.com/questions/1415...

Answer 2 links:
[Implementing Multiple Dispatch with Function Annotations]: https://github.com/dabeaz/python-cookboo...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #constructor #operatoroverloading

#avk47