import time

class Loggable:
    def log(self, msg):
        print(str(time.ctime()) + ": " + str(msg))


class LoggableList(Loggable, list):
    def append(self, elem):
        x = super(LoggableList, self).append(elem)
        self.log(elem)
        return x


x = LoggableList([1, 2, 3])

print(x)
x.append(6)

x.append(6)

ecb347154cc4ce7dde0dca451cc126a43cedba1a
<mask token>


class Loggable:
    <mask token>


class LoggableList(Loggable, list):

    def append(self, elem):
        x = super(LoggableList, self).append(elem)
        self.log(elem)
        return x


<mask token>

<mask token>


class Loggable:

    def log(self, msg):
        print(str(time.ctime()) + ': ' + str(msg))


class LoggableList(Loggable, list):

    def append(self, elem):
        x = super(LoggableList, self).append(elem)
        self.log(elem)
        return x


<mask token>
print(x)
x.append(6)
x.append(6)

<mask token>


class Loggable:

    def log(self, msg):
        print(str(time.ctime()) + ': ' + str(msg))


class LoggableList(Loggable, list):

    def append(self, elem):
        x = super(LoggableList, self).append(elem)
        self.log(elem)
        return x


x = LoggableList([1, 2, 3])
print(x)
x.append(6)
x.append(6)

import time


class Loggable:

    def log(self, msg):
        print(str(time.ctime()) + ': ' + str(msg))


class LoggableList(Loggable, list):

    def append(self, elem):
        x = super(LoggableList, self).append(elem)
        self.log(elem)
        return x


x = LoggableList([1, 2, 3])
print(x)
x.append(6)
x.append(6)

import time

class Loggable:
    def log(self, msg):
        print(str(time.ctime()) + ": " + str(msg))


class LoggableList(Loggable, list):
    def append(self, elem):
        x = super(LoggableList, self).append(elem)
        self.log(elem)
        return x


x = LoggableList([1, 2, 3])

print(x)
x.append(6)

x.append(6)
