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. myModule.py) then import them as from myModule inport fun1, fun2, fun3 regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden --------------- Asciimercial ------------------ Get on the web: Blog, lens and tag the Internet Many services currently offer free registration ----------- Thank You for Reading ------------- -- http://mail.python.org/mailman/listinfo/python-list