Learn Before
Concept

NumPy Universal Function (ufunc) Attributes

A NumPy Universal Function (ufunc) object contains several read-only informational attributes. These include:

  • __doc__: A docstring for the ufunc.
  • __name__: The name of the ufunc.
  • nin: The number of inputs.
  • nout: The number of output arguments.
  • nargs: The total number of arguments.
  • ntypes: The number of defined inner loops.
  • types: A list of length ntypes containing strings showing the types for which the ufunc is defined.
  • identity: The identity of the ufunc.

0

1

Updated 2026-06-29

Tags

Python Programming Language

Data Science