Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: John Bokma Newsgroups: comp.lang.python Subject: Re: vertical ordering of functions Date: Tue, 03 May 2011 19:44:41 -0500 Organization: Castle Amber Lines: 20 Message-ID: <87d3jzgupy.fsf@castleamber.com> References: <87sjsvfia2.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net PrvkkNz2yBRFobCfDFRKpwAzMk5N0QM90bZEEyq0D9nj5qYd16 Cancel-Lock: sha1:bTTtXQXrLiwqViIXcA+fcCTvHhY= sha1:qOfhN4MPCPmqhLmBpJ5KvWRz/E0= X-Url: http://johnbokma.com/ User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4591 Ben Finney writes: > Jabba Laci writes: > >> Is there a convention for this? Should main() be at the top and called >> function below? > > No, it's Python convention for both of those to be at the end of the > module. > > I follow the convention described by Guido van Rossum in > . Thanks Ben, very useful link. -- John Bokma j3b Blog: http://johnbokma.com/ Facebook: http://www.facebook.com/j.j.j.bokma Freelance Perl & Python Development: http://castleamber.com/