You might want to look at the path module:
http://pypi.python.org/pypi/path.py/2.2
It will probably make your code more readable.
On Thu, Mar 12, 2009 at 8:10 AM, Vlastimil Brom wrote:
> Hi all,
> I'd like to ask for some advice on how to acomplish file access in a
> cross platform way.
> My ap
You could wrap your paramter dict in a class instance with something like:class Parameters(object): def __init__(self, parameterDict): self.__dict__ = parameterDict.copy() # NB: copying may not be necissary for your case
parms = Parameters(dict(a=1,b=2,c=3))print parms.a, parms.b,