Hippo convinced me to sit down and read through the Python docs. I have to say, the Python Tutorial is fucking awesome. I loved it.
but... omfg. Python is scary. Its the embodiment of the phrase "NOTHING IS SACRED". Honestly. Like, if you want to make a class -
>>> class MyClass :
print "lol hi"
self.rah = 3;
self.foo = 2;
That creates an object. A mutable object. Which you can treat like a ragdoll and do shit with. Like...
>>> rah = MyClass() #create an instance of our class
>>> del MyClass #...then delete the class definition
Now this one threw me for a loop. I assumed that our class would now be bork bork, but guess what -
>>> rah.__class__ #returns a valid reference to the class definition
>>> rawr = rah.__class__() #creates another instance of it
It took me a while to figure out that, dur dur, objects are reference counted, and that there was still an outstanding reference to the definition so it was still in memory. Hur hur.
Anyway, there were some other things I screwed up, like declaring class members is wonky (you have to do it in the __init__ function, rather than in the class definition) but it makes sense why that is. Had to ask for help on that one, because it was really really confusing. lolz.
But yeah, I think I've got some grip over the basics. Extending/Embedding Python sounds fun as shit, can't wait until I've got my engine bound and running. Hur hur!
NOTHING IS SACRED