Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Are you 1337 enough

Name: Anonymous 2008-09-23 22:37

This code does not compile.
Only the 1337est h4x0rz know the fix.

Name: Anonymous 2008-09-26 21:19

>>9
WTF?

class Superclass (object):
    def __init__(self):
        self.x = self.y = 0.

class Childclass (Superclass):
    pass

kid = Childclass()
kid.x, kid.y = 1., 2.


Noobs...

(Just in case you're wondering, this is what's wrong with >>9:
1. Old-style class
2. Could have used multiple assignment
3. What's that stupid setter for!? This is Python!
4. What's Childclass.update for?
5. Why the call to super?)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List