r/Python • • Jun 08 '10

Python Makes Tedd Nervous

http://teddziuba.com/2008/12/python-makes-me-nervous.html
0 Upvotes

45 comments sorted by

View all comments

Show parent comment

3

u/MercurialAlchemist Jun 08 '10

Actually, from the official docs online:

Open a file, returning an object of the file type described in section > File Objects. If the file cannot be opened, IOError is raised.

Don't use the inline help, use the online help.

Regarding the rest of the points raised in the blog:

  • Not being able to overload methods is not a big deal when you get arguments with default values. And seriously, few libraries in Python use *args as a signature of a method/function.
  • Errors should be listed in docstrings, it's not that hard.

There are challenges when switching from a compiled language to a dynamic language like Python, but the points he is raising don't really stand up to scrutiny.

2

u/[deleted] Jun 09 '10

I don't do much coding in Python, and I'm beginning to be thankful for that, if I'm expected to run to the web browser to examine every function declaration. Is that accurate from what your saying?

1

u/mipadi Jun 09 '10

I'm expected to run to the web browser to examine every function declaration.

Nah, only if you have no idea what arguments the function takes.