I am trying to bring functions to a class by inheritance... for instance in layout_ext I have..
--- layout_ext.py--------- class Layout() def...some function that rely on css in Layout.py def... ---EOF-- in the main application file I have... ----Layout.py--- from layout_ext import Layout from CSS import CSS css = CSS() class Layout(Layout) def __init__ more code..... ----EOF---- Problem is layout_ext and Layout code is dependant on a Class instance 'css'. Whenever the CSS instance it parses a file, this means that I would have to parse the file twice?? Why is this? Can I do something like pass an already created instance to the import? -- Andrew -- http://mail.python.org/mailman/listinfo/python-list