Preferences Files

Yermat loic at yermat.net1.nerim.net
Sat May 8 08:50:29 EDT 2004


Mark Fairchild a écrit :

> Is there a good preferences modules for Python?  I know that the Mac
> version has one, but I need something cross-platform.
> 
> I just started my first Python project, and I'm used to Java.  The
> java.util.logging package of the JDK is an amazing resource, and I was
> pretty surprised when the Python documentation didn't mention any similar
> module for Python.  Given that Python API has almost EVERYTHING that the
> Java API does and more, I'm sure there must be something like the Java
> logging module.
> 

Yes, it has one : logging !
http://www.python.org/doc/2.3.3/lib/module-logging.html

And for your preferences module, a simple python file called prefs.py 
for example can be enough...

-- 
Yermat




More information about the Python-list mailing list