get a self data in a method call

Sean Ross sross at connectmail.carleton.ca
Sun Dec 22 20:14:01 EST 2002


# here's a shorter, if less obvious, version
def func(self, data = None):
           data = data or self.data





More information about the Python-list mailing list