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? AFAIK, I have to go: ######################################## # Utility functions start here def util_func(): return 'a value' # Main starts here do_util() ######################################## but for readability I'd much rather go: ######################################## <some text to predeclare the function goes here> # Main starts here do_util() # Utility functions start here def util_func(): return 'a value' ######################################## Anyone know? I can live without it, but I like to have 'main' at the top so I can see what's supposed to be going on without scrolling to the bottom of a file first... Cheers -------------------------------------- Phil Robinson. philrobinson@ponytrot.net --------------------------------------