Open
Description
There are two ways to order functions:
- all local functions from the module you use are above the function you are looking:
def foo():
...
def bar():
...
foo()
...
- all functions from the modules you use are below the function you are looking:
def bar():
...
foo()
...
def foo():
...
Which of the above two options do you prefer?
Of course, sometimes you will reuse functions all around the file, but the point of this issue
is to define a standard way of function ordering, so when you open a new module you will know where to look
for local functions, you are calling.
PS: I didn't see any opinion on that matter from the Google python style guideliness.
Metadata
Metadata
Assignees
Labels
No labels