BadPython.com

Using custom getters and setters

        
# This isn't java!
class MyClass():
    def __init__(self, x):
        self.x = x
    
    def setX(self, x):
        self.x = x

    def getX(self, x):
        return self.x