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,926
  • 1
  • 27
  • 61

0 Answers0