need design suggestions: local namespace problem

Brian Quinlan BrianQ at ActiveState.com
Wed Oct 3 00:38:47 CEST 2001


> Some of these variables need to conditionally have different values
as
> I mentioned.  For example, exit status codes.  Under qmail,
> `ERR_HARD = 100', while under Sendmail, `ERR_HARD = 75'.

Why are you getting so fancy? Why can't you simply use:

if running_under_qmail:
	ERR_HARD = 100
else:
	ERR_HARD = 75


--
Brian Quinlan
BrianQ at ActiveState.com





More information about the Python-list mailing list