View Single Post
Old Jun 4th, 2006, 11:47 AM   #1
bulio
Hobbyist Programmer
 
bulio's Avatar
 
Join Date: Jul 2004
Location: Location
Posts: 140
Rep Power: 5 bulio is on a distinguished road
Two quick questions

Hey everyone,

I'm currently learning Python, and I have two quick questions.

The first one is, when defining an object inside of a class why do we use (self)?

ie:

 
class Person
    def bulio(self): 
        print "Bulio says hi." #Use self so it will do this?

Is it because self will make the object run what is inside of it? (And therefore use the print?)

Secondly, would it be wise for a Python newbie to start learning pygame right away? I know my basic loops, if statements, functions, and classes.

Thanks!
bulio is offline   Reply With Quote