Re: Define Constants

2005-04-21 Thread beliavsky
A "recipe" for "Constants in Python" by Alex Martelli is at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65207 . -- http://mail.python.org/mailman/listinfo/python-list

Re: Define Constants

2005-04-21 Thread codecraig
Thanks for the input. i am renaming my module to be customthing. I noticed that is how many python modules are, so I will stick to the "convention". Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Define Constants

2005-04-20 Thread Eric Nieuwland
codecraig wrote: My directory structure looks like... C:\ --> abc.py --> utils --> __init__.py --> CustomThing.py Ok, CustomThing looks like... TOP = 0 LEFT = 1 class CustomThing: def __init__(self): self.foo = "foo" so, from abc.py I have from utils.Custom

Re: Define Constants

2005-04-20 Thread Steven Bethard
codecraig wrote: Hi, I have a question about how to define constants. My directory structure looks like... C:\ --> abc.py --> utils --> __init__.py --> CustomThing.py Ok, CustomThing looks like... TOP = 0 LEFT = 1 class CustomThing: def __init__(self): self