Style for modules with lots of constants

Paul McGuire ptmcg at austin.rr._bogus_.com
Wed Nov 1 12:03:10 EST 2006


"Paul McGuire" <ptmcg at austin.rr._bogus_.com> wrote in message 
news:XU32h.436$lx6.417 at tornado.texas.rr.com...
Errata:

> opAssoc = Constants(object)
Urk!  Should be "opAssoc = Constants()"

> and so on.  In the client modules they would simply enter "from glk import 
> fileusage, filemode".  Or if they just "import glk", the references to the 
> constants look like "glk.filemode.Append", "flk.fileusage.TextMode", etc.,
Should be "glk.fileusage.TextMode".

-- Paul 





More information about the Python-list mailing list