Duplicating Modules

Misto . mistobaan at gmail.com
Fri Sep 30 13:52:56 EDT 2005


Hi folks!

Short:

There is a way to dumplicate a module ?

I tried
copy.deepcopy(module) but hangs with an error (also with standard modules ).

The only solution that I have by now is creating two files and importing them.
I.E:
> cp module.py module1.py

>>  import module
>>  import module1


Any Ideas?

P.S: I know that there is some design Issue here, but my boss says no :)

Misto



More information about the Python-list mailing list