|
|
|
|
|
by icebraining
3602 days ago
|
|
Docstrings are for modules, classes, functions and methods, not variables mixed with the code. And "optional" is a misnomer unless you only ever touch your own code. Programming is generally a social activity, so for most of us, "optional" means just means "inconsistently required". I don't have a philosophical objection to typing, but I'm yet to see a syntax that won't muddy Python's. |
|
Optionally means that it's not required or mandatory.
You don't need to use it if you don't want to. If you're working on a project and the project follows a style guide then you follow the style guide, but nothing forces your bosses to require it. The code will run anyway.