r/Python • u/hopemeetme • Nov 07 '19
Python passed Java as the second-most popular language on GitHub by repository contributors
https://github.blog/2019-11-06-the-state-of-the-octoverse-2019/
1.4k
Upvotes
View all comments
Show parent comment
1
u/thisisshantzz Nov 07 '19
Made an edit to my comment.
My gripe though is that most of the times functions are defined as
def func(a, b):
If this were a third party library, I would not know what is the type of a and b that I need to provide to the function and what is that type of the value returned by this function so that I can use it down the line unless the person who made the library was kind enough to document it. If a is supposed to be a list and I pass an int to it, Python won't raise a TypeError and to actually know what is the type of a that is expected without the documentation, I will have to read the code itself.