Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4591

Re: vertical ordering of functions

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 <john@castleamber.com>
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> (permalink)
References <mailman.1127.1304460530.9059.python-list@python.org> <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

Show key headers only | View raw


Ben Finney <ben+python@benfinney.id.au> writes:

> Jabba Laci <jabba.laci@gmail.com> 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
> <URL:http://www.artima.com/weblogs/viewpost.jsp?thread=4829>.

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/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

vertical ordering of functions Jabba Laci <jabba.laci@gmail.com> - 2011-05-03 18:08 -0400
  Re: vertical ordering of functions Ben Finney <ben+python@benfinney.id.au> - 2011-05-04 09:58 +1000
    Re: vertical ordering of functions John Bokma <john@castleamber.com> - 2011-05-03 19:44 -0500
  Re: vertical ordering of functions Roy Smith <roy@panix.com> - 2011-05-03 20:27 -0400
  Re: vertical ordering of functions Grant Edwards <invalid@invalid.invalid> - 2011-05-04 01:09 +0000
  Re: vertical ordering of functions John Roth <johnroth1@gmail.com> - 2011-05-04 04:14 -0700
  Re: vertical ordering of functions Hans Georg Schaathun <hg@schaathun.net> - 2011-05-10 19:31 +0100

csiph-web