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
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
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
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