質問編集履歴
1
ソースコードのコメント部分の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
```Python
|
28
28
|
>>> def test(): #調査対象の関数の宣言
|
29
29
|
... print('test')
|
30
|
-
>>> inspect.getsource(test)
|
30
|
+
>>> inspect.getsource(test) #実行(失敗する)
|
31
31
|
Traceback (most recent call last):
|
32
32
|
File "<stdin>", line 1, in <module>
|
33
33
|
File "/anaconda3/lib/python3.6/inspect.py", line 968, in getsource
|