1

I am trying to inspect the standard library via the interpreter.

import inspect

inspect.getsource(list.extend)

I get the following error

TypeError: module, class, method, function, traceback, frame, or code object was expected, got method_descriptor

What am I doing wrong here?

David
  • 2,032
  • 14
  • 39

0 Answers0