You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all local functions from the module you use are above the function you are looking:
deffoo():
...
defbar():
...
foo()
...
all functions from the modules you use are below the function you are looking:
defbar():
...
foo()
...
deffoo():
...
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.
The text was updated successfully, but these errors were encountered:
There are two ways to order functions:
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.
The text was updated successfully, but these errors were encountered: