Re: How do I define a global constant...

2006-09-20 Thread John Machin
SpreadTooThin wrote: > How do I define a constant that I can use in my script... > For example lets say I have a file called constants.py and in there I > have PI = 3.14 > > in my test script I do: > > from constants import * > > How do I access PI later on? Like this: inaccurate_estimate_of_are

How do I define a global constant...

2006-09-20 Thread SpreadTooThin
How do I define a constant that I can use in my script... For example lets say I have a file called constants.py and in there I have PI = 3.14 in my test script I do: from constants import * How do I access PI later on? Pardon my newbie questions... -- http://mail.python.org/mailman/listinfo