[Zope] function pre-declaration?

Dieter Maurer dieter@handshake.de
Sun, 12 Jan 2003 20:12:44 +0100


philrobinson wrote at 2003-1-12 14:28 -0000:
 > Does python not have a way to predeclare functions,
 > so I can keep 'main()' at the top and the utils at the
 > bottom of a file?
What prevents you from defining "main" at the top?

  In fact, you can.

  Only the call to main must be after all referenced global
  (external) names have been defined.


Dieter