Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >Global variables aren't *entirely* bad. I use them myself, sometimes for >constants (well, pseudo-constants -- Python doesn't enforce constants) and >short, quick 'n' dirty throw away code. > >But in general, as your code gets bigger and more complicated, using >global variables gets more dangerous, unreliable, harder to debug, and >generally a bad idea. Let me show you some examples.
This gets my vote for post-of-the-week. If there were a bulletin board that was required reading for beginning programmers, this would definitely need to be tacked up to it. Nice work. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list