The Python Oracle

Is it Pythonic to check function argument types?

This video explains
Is it Pythonic to check function argument types?

--

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

--

Track title: CC L Beethoven - Piano Sonata No 8 in C

--

Chapters
00:00 Question
01:54 Accepted answer (Score 33)
02:43 Answer 2 (Score 13)
04:54 Answer 3 (Score 5)
07:59 Answer 4 (Score 2)
08:54 Thank you

--

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

Accepted answer links:
[duck typing]: http://en.wikipedia.org/wiki/Duck_typing

Answer 3 links:
[PEP-484]: https://www.python.org/dev/peps/pep-0484/
[typesentry]: https://github.com/h2oai/typesentry
[typeguard]: https://github.com/agronholm/typeguard
[enforce]: https://github.com/RussBaz/enforce

Answer 4 links:
[function annotations]: http://www.python.org/dev/peps/pep-3107/
[type checking]: http://oakwinter.com/code/typecheck/

--

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

--

Tags
#python #typechecking

#avk47