Re[2]: [Tutor] importing constants
R. Alan Monroe
R. Alan Monroe" <amonroe@columbus.rr.com
Mon Feb 10 18:51:01 2003
> At 06:42 PM 2/9/2003 -0500, R. Alan Monroe wrote:
>>I have a project consisting of a main file and two modules. If I want
>>to set up a new third module file establishing some constants, is it
>>safe to re-import it multiple times, once in each file and module?
> Yes
>>Are there any side-effects to doing that?
> No
Cool.
> Suggestion: make "constant" names upper case e;g; IDLE = 1. This helps
> later when reading code to remind you that IDLE is intended to be constant.
Good idea!
Alan