Global name "userid" not defined??

Ben Finney bignose-hates-spam at and-benfinney-does-too.id.au
Wed Mar 31 00:33:35 CEST 2004


On Tue, 30 Mar 2004 09:53:47 -0600, Sean Berry wrote:
> How do I make a variable global?

Mu.  (You're asking the wrong question.)

Why do you need to make a variable global?  Global variables are bad
style in almost every instance; an object to manage the variable gives
you readability and protection from unexpected side-effects.

If you explain what it is you want to achieve with a global variable,
it's likely a better solution can be proposed.

-- 
 \         "Giving every man a vote has no more made men wise and free |
  `\       than Christianity has made them good."  -- Henry L. Mencken |
_o__)                                                                  |
Ben Finney <http://bignose.squidly.org/>



More information about the Python-list mailing list