common/static code

Steve Holden steve at
Wed Sep 12 01:55:30 CEST 2007

brien colwell wrote:
> hey all,
> I have a slew of functions that are shared across several scripts. 
> What's the best way to factor them out into a single location?
> many thanks

Define the functions in a module (e.g. then import them as

from myModule inport fun1, fun2, fun3

Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd 
Skype: holdenweb
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

More information about the Python-list mailing list