Global VS Local Subroutines

BlindAnagram blindanagram at nowhere.org
Thu Feb 10 07:13:44 EST 2022


Is there any difference in performance between these two program layouts:

    def a():
      ...
    def(b):
      c = a(b)

or

    def(b):
      def a():
        ...
      c = a(b)

I would appreciate any insights on which layout to choose in which 
circumstances.



More information about the Python-list mailing list