In addition to what others have answered, if the code in question has any variables then I'll prefer to put it inside a function and call the function. This ensures that the variables are local and not going. It's a minor code hygiene point, but a good practice in my opinion. -- https://mail.python.org/mailman/listinfo/python-list
- Just a quick question about main() ROGER GRAYDON CHRISTMAN
- Re: Just a quick question about main() Chris Angelico
- Re: Just a quick question about main() Chris Angelico
- Re: Just a quick question about main() Grant Edwards
- Re: Just a quick question about main() Thomas Jollans
- Re: Just a quick question about main() Ned Batchelder
- Re: Just a quick question about main() Ian Kelly
- Re: Just a quick question about main() Ian Kelly