We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948f17f commit dc02115Copy full SHA for dc02115
python/2.3.py
@@ -45,23 +45,6 @@ def __init__(self):
45
assert 'b' in comprehension
46
47
48
-# https://docs.python.org/3.10/whatsnew/2.1.html
49
-
50
51
-def function():
52
- def closure():
53
- pass
54
- closure()
55
56
57
-# https://docs.python.org/3.10/whatsnew/2.2.html
58
59
60
-class C(object):
61
- def __init__(self):
62
63
64
65
assert C.__name__ == 'C'
66
67
@@ -97,4 +80,10 @@ def sipmple_generator(N):
97
80
assert bool([]) is False
98
81
assert range(5)[::2] == [0, 2, 4]
99
82
83
+# older
84
+
85
+assert([0, 1].pop() == 1)
86
+l = list().append(2)
87
+assert(l.pop() == 1)
88
100
89
passed()
0 commit comments