Great Python books for the beginner

2008-01-11 Thread Landon
Hi, I'm a freshman in college and I'm going to be taking an intro to programming course next semester which mainly uses Python, so I thought it might be a good time to pick up Python beyond the scope of the class as well. The text book for this class is Python for the Absolute Beginner or something

Re: Great Python books for the beginner

2008-01-12 Thread Landon
One thing I wonder about is the examples these books use to teach the concepts. I found myself really attached to K&R because the end of section projects were utilities that I would find be able to find useful in day to day work such as a version of wc and a program that would take collapse all con

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