回答編集履歴
2
参考追記
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
ご提示のコードは、次とおおよそ等価です。
|
13
|
+
ご提示のコードは、次とおおよそ等価です。[参考](https://docs.python.jp/3/reference/compound_stmts.html#the-with-statement)
|
14
14
|
|
15
15
|
(細かいところは自信がないです、間違いに気付いた方はお知らせください。)
|
16
16
|
|
1
追記
test
CHANGED
@@ -45,3 +45,7 @@
|
|
45
45
|
del _sess_cm, _sess_exit
|
46
46
|
|
47
47
|
```
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
要するに、`Session.__enter__`と`Session.__exit__`が呼ばれていないことが問題なのです。
|