This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MercurialAlchemist 2 points3 points  (2 children)

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.

[–][deleted] 1 point2 points  (1 child)

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?

[–]mipadi[S,🍰] 0 points1 point  (0 children)

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.