[ create a new paste ] login | about

Link: http://codepad.org/wgLU4JZh    [ raw code | output | fork ]

Python, pasted on Jul 14:
1
2
3
4
5
6
7
class A():
    def __init__(self):
        self.n = [1, 2, 3, 4, 5]
        
a = A()
print a.n
print a.n.extend([6, 7, 8, 9])


Output:
1
2
[1, 2, 3, 4, 5]
None


Create a new paste based on this one


Comments: