New style classes

Lamonte Harris pyth0nc0d3r at
Wed Aug 29 00:32:45 CEST 2007

Whats the point of object?  How do I actually use it.  I'm not understanding
correctly from the python site located:

class C(object):

    def __init__(self):
        self.__x = 0

    def getx(self):
        return self.__x

    def setx(self, x):
        if x < 0: x = 0
        self.__x = x
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list