The Python Oracle

How do Python functions handle the types of parameters that you pass in?

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: Book End

--

Chapters
00:00 Question
00:55 Accepted answer (Score 213)
02:08 Answer 2 (Score 1048)
07:43 Answer 3 (Score 22)
08:25 Answer 4 (Score 15)
10:15 Thank you

--

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

Answer 1 links:
[the simple answer by tzot]: https://stackoverflow.com/questions/2489...
[PEP 3107]: http://www.python.org/dev/peps/pep-3107/
[PEP 3107]: http://www.python.org/dev/peps/pep-3107/
[here]: http://www.python.org/dev/peps/pep-3107/...
[PEP 484]: https://www.python.org/dev/peps/pep-0484/
[mypy]: http://mypy-lang.org/
[GitHub]: https://github.com/JukkaL/mypy
[PEP 484]: https://www.python.org/dev/peps/pep-0484/
[documentation for the typing module]: https://docs.python.org/3/library/typing...
[Sphinx]: http://sphinx-doc.org/
[PEP 3107]: http://www.python.org/dev/peps/pep-3107/
[PEP 484]: https://www.python.org/dev/peps/pep-0484/
[here]: https://github.com/ActivityWatch/aw-core...

--

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

--

Tags
#python #function #types #parameters

#avk47