Re: Defining class methods outside of classes

2006-05-03 Thread Peter Otten
Lord Landon wrote: > Hi, I'm working on a bot written in python. It will consist of a > mostly empty class that will then call a loader which in turn defines > functions and adds them to the class. At the moment, I do this by > using execfile(file,globals()) and calling a load(bot) method defined

Defining class methods outside of classes

2006-05-03 Thread Lord Landon
Hi, I'm working on a bot written in python. It will consist of a mostly empty class that will then call a loader which in turn defines functions and adds them to the class. At the moment, I do this by using execfile(file,globals()) and calling a load(bot) method defined in every "module" which take