次ipython
のコマンドを発行すると、助けが得られます。
In [1]: help(["foo", "bar", "baz"])
class list(object)
| list() -> new empty list
| list(iterable) -> new list initialized from iterable's items
|
| Methods defined here:
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __contains__(...)
| x.__contains__(y) <==> y in x
...
しかし、内部で同じipdb
ことをすると、エラーが発生します。
ipdb> help(["foo", "bar", "baz"])
*** No help on (["foo", "bar", "baz"])
なんで?