Is it this one?
def main():
a()
def a():
b()
def b():
print("foo")
if __name__ == "__main__":
main()
Or this one?
def b():
print("foo")
def a():
b()
def main():
a()
if __name__ == "__main__":
main()
They both work, but what is the more Pythonic or recommended way of ordering function definitions?
I feel like this is a silly and useless question (since they both achieve the same thing), but at the same time it bothers me that both choices seem equally sane and it's hard to pick one, and I'm wondering if there's a convention between one or the other in the Python community, or something in the PEPs that touches on this.