Function Objects

A user-defined function object is created by a function definition (see def). It should be called with an argument list containing the same number of items as the function’s formal parameter list.

Special attributes:

  • func_doc The function’s documentation string, or None if unavailable. (Writable.)
  • __doc__ Another way of spelling func_doc. (Writable.)
  • func_name The function’s name. (Writable.)
  • <