Re:This Is What Python Beginners Have to Deal With
by snovv_crash on Thursday September 08, 2016 @05:59AM
(#12451618)
Agreed, but my point is that argument and return types are badly documented, and in Python autogen doesn't help this.
[ Parent
| on HN ]
Re:This Is What Python Beginners Have to Deal With
by nitely on Thursday September 08, 2016 @06:45AM
(#12451788)
Usually there are examples for everything. Sometimes you have to scroll down, though. What the function returns is usually stated in the description. But I know what you are saying, actually most 3-party libs do document types.
IMHO, python docs are ok. If you struggle with them as a beginner I don't see what would change as an advanced programmer.
Re:This Is What Python Beginners Have to Deal With
by snovv_crash on Thursday September 08, 2016 @08:00AM
(#12452162)
I am an advanced programmer.
I shouldn't have to read code snippets to figure out if a function returns a tuple or a 'group' which can be iterated over, but can't be indexed. This is something which would be fixed if the documentation included types, because then I could check what all the allowable operations on 'group' are directly without searching for a code snippet which does what I want or just running it and praying I got it right.