no about wrapping everything in functions

Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ

On Thu, 5 Jul 2018, 15:55 Joel Goldstick, <joel.goldst...@gmail.com> wrote:

> On Thu, Jul 5, 2018 at 7:45 AM, Abdur-Rahmaan Janhangeer
> <arj.pyt...@gmail.com> wrote:
> > performance?
>
> You are asking basic file layout questions in the learning process of
> understand how to code in python.  Performance should be very low on
> your list of concerns.  The only thing that happens when the file is
> loaded is that it gets compiled, and run.  If it is imported, and you
> have the 'if __name__ ... block, it will run the code within the if
> block.  If that has a main() function it makes it simpler later to
> change what main does instead of cluttering up the if block.  But
> there is no 'performance' issue that I can see.
> >
> > Abdur-Rahmaan Janhangeer
> > https://github.com/Abdur-rahmaanJ
> >
> > * Create as many functions as you can
> > --
> > https://mail.python.org/mailman/listinfo/python-list
>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com/blog
> http://cc-baseballstats.info/stats/birthdays
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to