types

模块介绍

This module defines names for some object types that are used by the standard Python interpreter

用法介绍

  • types.BuiltinFunctionType

  • types.BuiltinMethodType

  • types.CodeType

  • types.DynamicClassAttribute

  • types.FrameType

  • types.FunctionType

  • types.GeneratorType
    The type of generator-iterator objects, created by generator functions.

  • types.GetSetDescriptorType

  • types.LambdaType
    The type of user-defined functions and functions created by lambda expressions.

  • types.MappingProxyType

  • types.MemberDescriptorType

  • types.MethodType
    The type of methods of user-defined class instances.

  • types.ModuleType

  • types.SimpleNamespace

  • types.TracebackType

  • types.new_class

  • types.prepare_class