need design suggestions: local namespace problem

Jason R. Mastaler jason-dated-1002753884.cf7c66 at
Wed Oct 3 00:44:43 CEST 2001

"Brian Quinlan" <BrianQ at> writes:

> Why are you getting so fancy? Why can't you simply use:
> if running_under_qmail:
> 	ERR_HARD = 100
> else:
> 	ERR_HARD = 75

This would suffice if I were only referencing these variables a few
times, but I need to do this many, many times throughout the program.

Doing an if/else every time I needed to refer to a variable would be
too cumbersome.

More information about the Python-list mailing list