[Tutor] namespaces and global

Alan Gauld alan.gauld at btinternet.com
Wed Oct 14 19:18:28 CEST 2009

"Jose Amoreira" <ljmamoreira at gmail.com> wrote

> Of course I could redefine my module function, including the parameter a 
> in
> the list of arguments, but I'd rather not.

Why not? That would be good computer science practice and the
most reliable way to do it. Why do you not want to go down that
route? Is there a specific reason to use a global variable when
use of globals is normally considered bad practice?

I'm curious?

Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list