Duplicating Modules
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Duplicating Modules

From: Misto . <mistobaan@gmail.com>
Date: Fri Sep 30 2005 - 19:52:56 CEST

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
Received on Sat Oct 15 04:00:47 2005