Re: Import a file to namespace

2008-03-20 Thread Pedro Machado Santa
On Mar 20, 5:24 pm, Jeffrey Froman <[EMAIL PROTECTED]> wrote: > This method should work fine. Modules are effectively singletons, so running > this code one time anywhere in your application will cause the changes to > appear in all references to the original module. Yhea. I got it now. :) It alre

Re: Import a file to namespace

2008-03-20 Thread Jeffrey Froman
Pedro Machado Santa wrote: > import testpackage > > class testClass(): > #... > > testpackage.testClass =  testClass This method should work fine. Modules are effectively singletons, so running this code one time anywhere in your application will cause the changes to appear in all references t

Import a file to namespace

2008-03-20 Thread Pedro Machado Santa
Hi all, I'm really a newbie in Python, and I wanted to do a tricky thing. I don't know if it is possible but my intention was: I have a package (namely breve) and I want to alter (override?) some of it's functions preserving the original library/package - in order if I update it, I do not lose my