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

> Jabba Laci <jabba.l...@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/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to