Skip to content

Commit dc02115

Browse files
committed
*2.3.py
1 parent 948f17f commit dc02115

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

python/2.3.py

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,6 @@ def __init__(self):
4545
assert 'b' in comprehension
4646

4747

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-
pass
63-
64-
6548
assert C.__name__ == 'C'
6649

6750

@@ -97,4 +80,10 @@ def sipmple_generator(N):
9780
assert bool([]) is False
9881
assert range(5)[::2] == [0, 2, 4]
9982

83+
# older
84+
85+
assert([0, 1].pop() == 1)
86+
l = list().append(2)
87+
assert(l.pop() == 1)
88+
10089
passed()

0 commit comments

Comments
 (0)