Defining class methods outside of classes

2006-05-03 Thread Lord Landon
ule" which takes the functions defined in that perticular module and does bot.function=function. The problem with that is when I call bot.function() self doesn't get passed as an argument to the function. Is there anything I can do to sort this besides calling bot.function(bot, ...) everyt

Re: scope of variables

2006-05-03 Thread Lord Landon
s will not work. > > the example was an in-accuretlly representation of a the problem I am > having. my apologies. > > a = [] > def prnt(): > print len(a) > > >>> prnt > > > I expect to get 0 "the length of list a" > -- > http://mail.python.org/mailman/listinfo/python-list > -- Lord Landon rules over all! -- http://mail.python.org/mailman/listinfo/python-list