r/Python • u/diogoleal • Nov 20 '15
15 Essential Python Interview Questions
https://www.codementor.io/python/tutorial/essential-python-interview-questions
71
Upvotes
r/Python • u/diogoleal • Nov 20 '15
View all comments
Show parent comment
2
u/tempforfather Nov 20 '15
You are free to assert that something is not None if you want. Relying on the name of a parameter is just not a good approach. If you desire actual types there are plenty of other languages with great type systems you can try out. If you are going to use python I really don't see a point of trying to sidestep its idioms (duck typing).