numba API Reference
Full documentation for numba (0.61.0)
numba.ByteCodeSupportError
Python Library Documentation: class ByteCodeSupportError in module numba.core.errors class ByteCodeSupportError(NumbaError) | ByteCodeSupportError(msg, loc=None) | | Failure to extract the bytecode of the user's function. | | Method resolution order: | ByteCodeSupportError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, msg, loc=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.CompilerError
Python Library Documentation: class CompilerError in module numba.core.errors class CompilerError(NumbaError) | CompilerError(msg, loc=None, highlighting=True) | | Some high-level error in the compiler. | | Method resolution order: | CompilerError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.ConstantInferenceError
Python Library Documentation: class ConstantInferenceError in module numba.core.errors class ConstantInferenceError(NumbaError) | ConstantInferenceError(value, loc=None) | | Failure during constant inference. | | Method resolution order: | ConstantInferenceError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, value, loc=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.DeprecationError
Python Library Documentation: class DeprecationError in module numba.core.errors class DeprecationError(NumbaError) | DeprecationError(msg, loc=None, highlighting=True) | | Functionality is deprecated. | | Method resolution order: | DeprecationError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.ForbiddenConstruct
Python Library Documentation: class ForbiddenConstruct in module numba.core.errors class ForbiddenConstruct(LoweringError) | ForbiddenConstruct(msg, loc=None) | | A forbidden Python construct was encountered (e.g. use of locals()). | | Method resolution order: | ForbiddenConstruct | LoweringError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from LoweringError: | | __init__(self, msg, loc=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.ForceLiteralArg
Python Library Documentation: class ForceLiteralArg in module numba.core.errors class ForceLiteralArg(NumbaError) | ForceLiteralArg(arg_indices, fold_arguments=None, loc=None) | | A Pseudo-exception to signal the dispatcher to type an argument literally | | Attributes | ---------- | requested_args : frozenset[int] | requested positions of the arguments. | | Method resolution order: | ForceLiteralArg | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, arg_indices, fold_arguments=None, loc=None) | Parameters | ---------- | arg_indices : Sequence[int] | requested positions of the arguments. | fold_arguments: callable | A function ``(tuple, dict) -> tuple`` that binds and flattens | the ``args`` and ``kwargs``. | loc : numba.ir.Loc or None | | __or__(self, other) | Same as self.combine(other) | | bind_fold_arguments(self, fold_arguments) | Bind the fold_arguments function | | combine(self, other) | Returns a new instance by or'ing the requested_args. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.IRError
Python Library Documentation: class IRError in module numba.core.errors class IRError(NumbaError) | IRError(msg, loc=None, highlighting=True) | | An error occurred during Numba IR generation. | | Method resolution order: | IRError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.InternalError
Python Library Documentation: class InternalError in module numba.core.errors class InternalError(NumbaError) | InternalError(exception) | | For wrapping internal error occurred within the compiler | | Method resolution order: | InternalError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, exception) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.InternalTargetMismatchError
Python Library Documentation: class InternalTargetMismatchError in module numba.core.errors class InternalTargetMismatchError(InternalError) | InternalTargetMismatchError(kind, target_hw, hw_clazz) | | For signalling a target mismatch error occurred internally within the | compiler. | | Method resolution order: | InternalTargetMismatchError | InternalError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, kind, target_hw, hw_clazz) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.LiteralTypingError
Python Library Documentation: class LiteralTypingError in module numba.core.errors class LiteralTypingError(TypingError) | LiteralTypingError(msg, loc=None, highlighting=True) | | Failure in typing a Literal type | | Method resolution order: | LiteralTypingError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.LoweringError
Python Library Documentation: class LoweringError in module numba.core.errors class LoweringError(NumbaError) | LoweringError(msg, loc=None) | | An error occurred during lowering. | | Method resolution order: | LoweringError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, msg, loc=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NonexistentTargetError
Python Library Documentation: class NonexistentTargetError in module numba.core.errors class NonexistentTargetError(InternalError) | NonexistentTargetError(exception) | | For signalling that a target that does not exist was requested. | | Method resolution order: | NonexistentTargetError | InternalError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from InternalError: | | __init__(self, exception) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NotDefinedError
Python Library Documentation: class NotDefinedError in module numba.core.errors class NotDefinedError(IRError) | NotDefinedError(name, loc=None) | | An undefined variable is encountered during interpretation of IR. | | Method resolution order: | NotDefinedError | IRError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, name, loc=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaAssertionError
Python Library Documentation: class NumbaAssertionError in module numba.core.errors class NumbaAssertionError(TypingError) | NumbaAssertionError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaAssertionError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaAttributeError
Python Library Documentation: class NumbaAttributeError in module numba.core.errors class NumbaAttributeError(TypingError) | NumbaAttributeError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaAttributeError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaDebugInfoWarning
Python Library Documentation: class NumbaDebugInfoWarning in module numba.core.errors class NumbaDebugInfoWarning(NumbaWarning) | NumbaDebugInfoWarning(msg, loc=None, highlighting=True) | | Warning category for an issue with the emission of debug information. | | Method resolution order: | NumbaDebugInfoWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaDeprecationWarning
Python Library Documentation: class NumbaDeprecationWarning in module numba.core.errors class NumbaDeprecationWarning(NumbaWarning, builtins.DeprecationWarning) | NumbaDeprecationWarning(msg, loc=None, highlighting=True) | | Warning category for use of a deprecated feature. | | Method resolution order: | NumbaDeprecationWarning | NumbaWarning | builtins.DeprecationWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.DeprecationWarning: | | __new__(*args, **kwargs) class method of builtins.DeprecationWarning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaError
Python Library Documentation: class NumbaError in module numba.core.errors class NumbaError(builtins.Exception) | NumbaError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties defined here: | | contexts | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaExperimentalFeatureWarning
Python Library Documentation: class NumbaExperimentalFeatureWarning in module numba.core.errors class NumbaExperimentalFeatureWarning(NumbaWarning) | NumbaExperimentalFeatureWarning(msg, loc=None, highlighting=True) | | Warning category for using an experimental feature. | | Method resolution order: | NumbaExperimentalFeatureWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaIRAssumptionWarning
Python Library Documentation: class NumbaIRAssumptionWarning in module numba.core.errors class NumbaIRAssumptionWarning(NumbaPedanticWarning) | NumbaIRAssumptionWarning(msg, **kwargs) | | Warning category for reporting an IR assumption violation. | | Method resolution order: | NumbaIRAssumptionWarning | NumbaPedanticWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaPedanticWarning: | | __init__(self, msg, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaIndexError
Python Library Documentation: class NumbaIndexError in module numba.core.errors class NumbaIndexError(TypingError) | NumbaIndexError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaIndexError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaInvalidConfigWarning
Python Library Documentation: class NumbaInvalidConfigWarning in module numba.core.errors class NumbaInvalidConfigWarning(NumbaWarning) | NumbaInvalidConfigWarning(msg, loc=None, highlighting=True) | | Warning category for using an invalid configuration. | | Method resolution order: | NumbaInvalidConfigWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaKeyError
Python Library Documentation: class NumbaKeyError in module numba.core.errors class NumbaKeyError(TypingError) | NumbaKeyError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaKeyError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaNotImplementedError
Python Library Documentation: class NumbaNotImplementedError in module numba.core.errors class NumbaNotImplementedError(TypingError) | NumbaNotImplementedError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaNotImplementedError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaParallelSafetyWarning
Python Library Documentation: class NumbaParallelSafetyWarning in module numba.core.errors class NumbaParallelSafetyWarning(NumbaWarning) | NumbaParallelSafetyWarning(msg, loc=None, highlighting=True) | | Warning category for when an operation in a prange | might not have parallel semantics. | | Method resolution order: | NumbaParallelSafetyWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaPedanticWarning
Python Library Documentation: class NumbaPedanticWarning in module numba.core.errors class NumbaPedanticWarning(NumbaWarning) | NumbaPedanticWarning(msg, **kwargs) | | Warning category for reporting pedantic messages. | | Method resolution order: | NumbaPedanticWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, msg, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaPendingDeprecationWarning
Python Library Documentation: class NumbaPendingDeprecationWarning in module numba.core.errors class NumbaPendingDeprecationWarning(NumbaWarning, builtins.PendingDeprecationWarning) | NumbaPendingDeprecationWarning(msg, loc=None, highlighting=True) | | Warning category for use of a feature that is pending deprecation. | | Method resolution order: | NumbaPendingDeprecationWarning | NumbaWarning | builtins.PendingDeprecationWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.PendingDeprecationWarning: | | __new__(*args, **kwargs) class method of builtins.PendingDeprecationWarning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaPerformanceWarning
Python Library Documentation: class NumbaPerformanceWarning in module numba.core.errors class NumbaPerformanceWarning(NumbaWarning) | NumbaPerformanceWarning(msg, loc=None, highlighting=True) | | Warning category for when an operation might not be | as fast as expected. | | Method resolution order: | NumbaPerformanceWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaRuntimeError
Python Library Documentation: class NumbaRuntimeError in module numba.core.errors class NumbaRuntimeError(NumbaError) | NumbaRuntimeError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaRuntimeError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaSystemWarning
Python Library Documentation: class NumbaSystemWarning in module numba.core.errors class NumbaSystemWarning(NumbaWarning) | NumbaSystemWarning(msg, loc=None, highlighting=True) | | Warning category for an issue with the system configuration. | | Method resolution order: | NumbaSystemWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaTypeError
Python Library Documentation: class NumbaTypeError in module numba.core.errors class NumbaTypeError(TypingError) | NumbaTypeError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaTypeError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaTypeSafetyWarning
Python Library Documentation: class NumbaTypeSafetyWarning in module numba.core.errors class NumbaTypeSafetyWarning(NumbaWarning) | NumbaTypeSafetyWarning(msg, loc=None, highlighting=True) | | Warning category for unsafe casting operations. | | Method resolution order: | NumbaTypeSafetyWarning | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaWarning: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaWarning: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaValueError
Python Library Documentation: class NumbaValueError in module numba.core.errors class NumbaValueError(TypingError) | NumbaValueError(msg, loc=None, highlighting=True) | | Method resolution order: | NumbaValueError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.NumbaWarning
Python Library Documentation: class NumbaWarning in module numba.core.errors class NumbaWarning(builtins.Warning) | NumbaWarning(msg, loc=None, highlighting=True) | | Base category for all Numba compiler warnings. | | Method resolution order: | NumbaWarning | builtins.Warning | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Warning: | | __new__(*args, **kwargs) class method of builtins.Warning | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.RedefinedError
Python Library Documentation: class RedefinedError in module numba.core.errors class RedefinedError(IRError) | RedefinedError(msg, loc=None, highlighting=True) | | An error occurred during interpretation of IR due to variable redefinition. | | Method resolution order: | RedefinedError | IRError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.RequireLiteralValue
Python Library Documentation: class RequireLiteralValue in module numba.core.errors class RequireLiteralValue(TypingError) | RequireLiteralValue(msg, loc=None, highlighting=True) | | For signalling that a function's typing requires a constant value for | some of its arguments. | | Method resolution order: | RequireLiteralValue | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.TypingError
Python Library Documentation: class TypingError in module numba.core.errors class TypingError(NumbaError) | TypingError(msg, loc=None, highlighting=True) | | A type inference failure. | | Method resolution order: | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.UnsupportedBytecodeError
Python Library Documentation: class UnsupportedBytecodeError in module numba.core.errors class UnsupportedBytecodeError(builtins.Exception) | UnsupportedBytecodeError(msg, loc=None) | | Unsupported bytecode is non-recoverable | | Method resolution order: | UnsupportedBytecodeError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, msg, loc=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.UnsupportedError
Python Library Documentation: class UnsupportedError in module numba.core.errors class UnsupportedError(NumbaError) | UnsupportedError(msg, loc=None, highlighting=True) | | Numba does not have an implementation for this functionality. | | Method resolution order: | UnsupportedError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.UnsupportedParforsError
Python Library Documentation: class UnsupportedParforsError in module numba.core.errors class UnsupportedParforsError(NumbaError) | UnsupportedParforsError(msg, loc=None, highlighting=True) | | An error occurred because parfors is not supported on the platform. | | Method resolution order: | UnsupportedParforsError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.UnsupportedRewriteError
Python Library Documentation: class UnsupportedRewriteError in module numba.core.errors class UnsupportedRewriteError(UnsupportedError) | UnsupportedRewriteError(msg, loc=None, highlighting=True) | | UnsupportedError from rewrite passes | | Method resolution order: | UnsupportedRewriteError | UnsupportedError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.UntypedAttributeError
Python Library Documentation: class UntypedAttributeError in module numba.core.errors class UntypedAttributeError(TypingError) | UntypedAttributeError(value, attr, loc=None) | | Method resolution order: | UntypedAttributeError | TypingError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, value, attr, loc=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from NumbaError: | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.VerificationError
Python Library Documentation: class VerificationError in module numba.core.errors class VerificationError(IRError) | VerificationError(msg, loc=None, highlighting=True) | | An error occurred during IR verification. Once Numba's internal | representation (IR) is constructed it is then verified to ensure that | terminators are both present and in the correct places within the IR. If | it is the case that this condition is not met, a VerificationError is | raised. | | Method resolution order: | VerificationError | IRError | NumbaError | builtins.Exception | builtins.BaseException | builtins.object | | Methods inherited from NumbaError: | | __init__(self, msg, loc=None, highlighting=True) | Initialize self. See help(type(self)) for accurate signature. | | add_context(self, msg) | Add contextual info. The exception message is expanded with the new | contextual information. | | patch_message(self, new_message) | Change the error message to the given new message. | | ---------------------------------------------------------------------- | Readonly properties inherited from NumbaError: | | contexts | | ---------------------------------------------------------------------- | Data descriptors inherited from NumbaError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
numba.b1
Python Library Documentation: Boolean in module numba.core.types.old_scalars object class Boolean(numba.core.types.abstract.Hashable) | Boolean(*args, **kwargs) | | Method resolution order: | Boolean | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | unify(self, typingctx, other) | Try to unify this type with the *other*. A third type must | be returned, or None if unification is not possible. | Only override this if the coercion logic cannot be expressed | as simple casting rules. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.bool
Python Library Documentation: Boolean in module numba.core.types.old_scalars object class Boolean(numba.core.types.abstract.Hashable) | Boolean(*args, **kwargs) | | Method resolution order: | Boolean | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | unify(self, typingctx, other) | Try to unify this type with the *other*. A third type must | be returned, or None if unification is not possible. | Only override this if the coercion logic cannot be expressed | as simple casting rules. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.bool_
Python Library Documentation: Boolean in module numba.core.types.old_scalars object class Boolean(numba.core.types.abstract.Hashable) | Boolean(*args, **kwargs) | | Method resolution order: | Boolean | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | unify(self, typingctx, other) | Try to unify this type with the *other*. A third type must | be returned, or None if unification is not possible. | Only override this if the coercion logic cannot be expressed | as simple casting rules. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.boolean
Python Library Documentation: Boolean in module numba.core.types.old_scalars object class Boolean(numba.core.types.abstract.Hashable) | Boolean(*args, **kwargs) | | Method resolution order: | Boolean | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | unify(self, typingctx, other) | Try to unify this type with the *other*. A third type must | be returned, or None if unification is not possible. | Only override this if the coercion logic cannot be expressed | as simple casting rules. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.byte
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.c16
Python Library Documentation: Complex in module numba.core.types.old_scalars object class Complex(numba.core.types.abstract.Number) | Complex(*args, **kwargs) | | Method resolution order: | Complex | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, underlying_float, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.c8
Python Library Documentation: Complex in module numba.core.types.old_scalars object class Complex(numba.core.types.abstract.Number) | Complex(*args, **kwargs) | | Method resolution order: | Complex | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, underlying_float, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.carray
Python Library Documentation: function carray in module numba.np.numpy_support
carray(ptr, shape, dtype=None)
Return a Numpy array view over the data pointed to by *ptr* with the
given *shape*, in C order. If *dtype* is given, it is used as the
array's dtype, otherwise the array's dtype is inferred from *ptr*'s type.
numba.cfunc
Python Library Documentation: function cfunc in module numba.core.decorators
cfunc(sig, locals={}, cache=False, pipeline_class=None, **options)
This decorator is used to compile a Python function into a C callback
usable with foreign C libraries.
Usage::
@cfunc("float64(float64, float64)", nopython=True, cache=True)
def add(a, b):
return a + b
numba.char
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.cloudpickle
Python Library Documentation: package numba.cloudpickle in numba
NAME
numba.cloudpickle
DESCRIPTION
This is a modified version of the cloudpickle module.
Patches:
- https://github.com/numba/numba/pull/7388
Avoid resetting class state of dynamic classes.
Original module docstring:
Pickler class to extend the standard pickle.Pickler functionality
The main objective is to make it natural to perform distributed computing on
clusters (such as PySpark, Dask, Ray...) with interactively defined code
(functions, classes, ...) written in notebooks or console.
In particular this pickler adds the following features:
- serialize interactively-defined or locally-defined functions, classes,
enums, typevars, lambdas and nested functions to compiled byte code;
- deal with some other non-serializable objects in an ad-hoc manner where
applicable.
This pickler is therefore meant to be used for the communication between short
lived Python processes running the same version of Python and libraries. In
particular, it is not meant to be used for long term storage of Python objects.
It does not include an unpickler, as standard Python unpickling suffices.
This module was extracted from the `cloud` package, developed by `PiCloud, Inc.
<https://web.archive.org/web/20140626004012/http://www.picloud.com/>`_.
Copyright (c) 2012-now, CloudPickle developers and contributors.
Copyright (c) 2012, Regents of the University of California.
Copyright (c) 2009 `PiCloud, Inc. <https://web.archive.org/web/20140626004012/http://www.picloud.com/>`_.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the University of California, Berkeley nor the
names of its contributors may be used to endorse or promote
products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PACKAGE CONTENTS
cloudpickle
cloudpickle_fast
CLASSES
_pickle.Pickler(builtins.object)
numba.cloudpickle.cloudpickle.Pickler
CloudPickler = class Pickler(_pickle.Pickler)
| CloudPickler(file, protocol=None, buffer_callback=None)
|
| Method resolution order:
| Pickler
| _pickle.Pickler
| builtins.object
|
| Methods defined here:
|
| __init__(self, file, protocol=None, buffer_callback=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| dump(self, obj)
| Write a pickled representation of the given object to the open file.
|
| reducer_override(self, obj)
| Type-agnostic reducing callback for function and classes.
|
| For performance reasons, subclasses of the C `pickle.Pickler` class
| cannot register custom reducers for functions and classes in the
| dispatch_table attribute. Reducers for such types must instead
| implemented via the special `reducer_override` method.
|
| Note that this method will be called for any object except a few
| builtin-types (int, lists, dicts etc.), which differs from reducers
| in the Pickler's dispatch_table, each of them being invoked for
| objects of a specific type only.
|
| This property comes in handy for classes: although most classes are
| instances of the ``type`` metaclass, some of them can be instances
| of other custom metaclasses (such as enum.EnumMeta for example). In
| particular, the metaclass will likely not be known in advance, and
| thus cannot be special-cased using an entry in the dispatch_table.
| reducer_override, among other things, allows us to register a
| reducer that will be called for any class, independently of its
| type.
|
| Notes:
|
| * reducer_override has the priority over dispatch_table-registered
| reducers.
| * reducer_override can be used to fix other limitations of
| cloudpickle for other types that suffered from type-specific
| reducers, such as Exceptions. See
| https://github.com/cloudpipe/cloudpickle/issues/248
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| dispatch = ChainMap({<class 'classmethod'>: <function _clas...n _pickl...
|
| dispatch_table = ChainMap({<class 'classmethod'>: <function _clas...n ...
|
| ----------------------------------------------------------------------
| Methods inherited from _pickle.Pickler:
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| clear_memo(self, /)
| Clears the pickler's "memo".
|
| The memo is the data structure that remembers which objects the
| pickler has already seen, so that shared or recursive objects are
| pickled by reference and not by value. This method is useful when
| re-using picklers.
|
| ----------------------------------------------------------------------
| Static methods inherited from _pickle.Pickler:
|
| __new__(*args, **kwargs) class method of _pickle.Pickler
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _pickle.Pickler:
|
| bin
|
| fast
|
| memo
|
| persistent_id
class Pickler(_pickle.Pickler)
| Pickler(file, protocol=None, buffer_callback=None)
|
| Method resolution order:
| Pickler
| _pickle.Pickler
| builtins.object
|
| Methods defined here:
|
| __init__(self, file, protocol=None, buffer_callback=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| dump(self, obj)
| Write a pickled representation of the given object to the open file.
|
| reducer_override(self, obj)
| Type-agnostic reducing callback for function and classes.
|
| For performance reasons, subclasses of the C `pickle.Pickler` class
| cannot register custom reducers for functions and classes in the
| dispatch_table attribute. Reducers for such types must instead
| implemented via the special `reducer_override` method.
|
| Note that this method will be called for any object except a few
| builtin-types (int, lists, dicts etc.), which differs from reducers
| in the Pickler's dispatch_table, each of them being invoked for
| objects of a specific type only.
|
| This property comes in handy for classes: although most classes are
| instances of the ``type`` metaclass, some of them can be instances
| of other custom metaclasses (such as enum.EnumMeta for example). In
| particular, the metaclass will likely not be known in advance, and
| thus cannot be special-cased using an entry in the dispatch_table.
| reducer_override, among other things, allows us to register a
| reducer that will be called for any class, independently of its
| type.
|
| Notes:
|
| * reducer_override has the priority over dispatch_table-registered
| reducers.
| * reducer_override can be used to fix other limitations of
| cloudpickle for other types that suffered from type-specific
| reducers, such as Exceptions. See
| https://github.com/cloudpipe/cloudpickle/issues/248
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| dispatch = ChainMap({<class 'classmethod'>: <function _clas...n _pickl...
|
| dispatch_table = ChainMap({<class 'classmethod'>: <function _clas...n ...
|
| ----------------------------------------------------------------------
| Methods inherited from _pickle.Pickler:
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| clear_memo(self, /)
| Clears the pickler's "memo".
|
| The memo is the data structure that remembers which objects the
| pickler has already seen, so that shared or recursive objects are
| pickled by reference and not by value. This method is useful when
| re-using picklers.
|
| ----------------------------------------------------------------------
| Static methods inherited from _pickle.Pickler:
|
| __new__(*args, **kwargs) class method of _pickle.Pickler
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _pickle.Pickler:
|
| bin
|
| fast
|
| memo
|
| persistent_id
FUNCTIONS
dump(obj, file, protocol=None, buffer_callback=None)
Serialize obj as bytes streamed into file
protocol defaults to cloudpickle.DEFAULT_PROTOCOL which is an alias to
pickle.HIGHEST_PROTOCOL. This setting favors maximum communication
speed between processes running the same Python version.
Set protocol=pickle.DEFAULT_PROTOCOL instead if you need to ensure
compatibility with older versions of Python (although this is not always
guaranteed to work because cloudpickle relies on some internal
implementation details that can change from one Python version to the
next).
dumps(obj, protocol=None, buffer_callback=None)
Serialize obj as a string of bytes allocated in memory
protocol defaults to cloudpickle.DEFAULT_PROTOCOL which is an alias to
pickle.HIGHEST_PROTOCOL. This setting favors maximum communication
speed between processes running the same Python version.
Set protocol=pickle.DEFAULT_PROTOCOL instead if you need to ensure
compatibility with older versions of Python (although this is not always
guaranteed to work because cloudpickle relies on some internal
implementation details that can change from one Python version to the
next).
load(file, *, fix_imports=True, encoding='ASCII', errors='strict', buffers=())
Read and return an object from the pickle data stored in a file.
This is equivalent to ``Unpickler(file).load()``, but may be more
efficient.
The protocol version of the pickle is detected automatically, so no
protocol argument is needed. Bytes past the pickled object's
representation are ignored.
The argument *file* must have two methods, a read() method that takes
an integer argument, and a readline() method that requires no
arguments. Both methods should return bytes. Thus *file* can be a
binary file object opened for reading, an io.BytesIO object, or any
other custom object that meets this interface.
Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
which are used to control compatibility support for pickle stream
generated by Python 2. If *fix_imports* is True, pickle will try to
map the old Python 2 names to the new names used in Python 3. The
*encoding* and *errors* tell pickle how to decode 8-bit string
instances pickled by Python 2; these default to 'ASCII' and 'strict',
respectively. The *encoding* can be 'bytes' to read these 8-bit
string instances as bytes objects.
loads(data, /, *, fix_imports=True, encoding='ASCII', errors='strict', buffers=())
Read and return an object from the given pickle data.
The protocol version of the pickle is detected automatically, so no
protocol argument is needed. Bytes past the pickled object's
representation are ignored.
Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
which are used to control compatibility support for pickle stream
generated by Python 2. If *fix_imports* is True, pickle will try to
map the old Python 2 names to the new names used in Python 3. The
*encoding* and *errors* tell pickle how to decode 8-bit string
instances pickled by Python 2; these default to 'ASCII' and 'strict',
respectively. The *encoding* can be 'bytes' to read these 8-bit
string instances as bytes objects.
register_pickle_by_value(module)
Register a module to make it functions and classes picklable by value.
By default, functions and classes that are attributes of an importable
module are to be pickled by reference, that is relying on re-importing
the attribute from the module at load time.
If `register_pickle_by_value(module)` is called, all its functions and
classes are subsequently to be pickled by value, meaning that they can
be loaded in Python processes where the module is not importable.
This is especially useful when developing a module in a distributed
execution environment: restarting the client Python process with the new
source code is enough: there is no need to re-install the new version
of the module on all the worker nodes nor to restart the workers.
Note: this feature is considered experimental. See the cloudpickle
README.md file for more details and limitations.
unregister_pickle_by_value(module)
Unregister that the input module should be pickled by value.
DATA
__all__ = ['__version__', 'Pickler', 'CloudPickler', 'dumps', 'loads',...
VERSION
3.0.0
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\cloudpickle\__init__.py
numba.complex128
Python Library Documentation: Complex in module numba.core.types.old_scalars object class Complex(numba.core.types.abstract.Number) | Complex(*args, **kwargs) | | Method resolution order: | Complex | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, underlying_float, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.complex64
Python Library Documentation: Complex in module numba.core.types.old_scalars object class Complex(numba.core.types.abstract.Number) | Complex(*args, **kwargs) | | Method resolution order: | Complex | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, underlying_float, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.config
Python Library Documentation: module numba.core.config in numba.core
NAME
numba.core.config
FUNCTIONS
reload_config()
Reload the configuration from environment variables, if necessary.
DATA
ALWAYS_WARN_UNINIT_VAR = 0
ANNOTATE = 0
BOUNDSCHECK = None
CACHE_DIR = ''
CHROME_TRACE = ''
COLOR_SCHEME = 'no_color'
CPU_FEATURES = None
CPU_NAME = None
CUDA_ARRAY_INTERFACE_SYNC = 1
CUDA_DEALLOCS_COUNT = 10
CUDA_DEALLOCS_RATIO = 0.2
CUDA_DEBUGINFO_DEFAULT = 0
CUDA_DEFAULT_PTX_CC = (5, 0)
CUDA_DRIVER = ''
CUDA_ENABLE_MINOR_VERSION_COMPATIBILITY = 0
CUDA_INCLUDE_PATH = 'cuda_include_not_found'
CUDA_LOG_API_ARGS = 0
CUDA_LOG_LEVEL = ''
CUDA_LOG_SIZE = 1024
CUDA_LOW_OCCUPANCY_WARNINGS = 1
CUDA_MEMORY_MANAGER = 'default'
CUDA_PER_THREAD_DEFAULT_STREAM = 0
CUDA_USE_NVIDIA_BINDING = 0
CUDA_VERBOSE_JIT_LOG = 1
CUDA_WARN_ON_IMPLICIT_COPY = 1
DEBUG = 0
DEBUGINFO_DEFAULT = 0
DEBUG_ARRAY_OPT = 0
DEBUG_ARRAY_OPT_RUNTIME = 0
DEBUG_ARRAY_OPT_STATS = 0
DEBUG_CACHE = 0
DEBUG_FRONTEND = 0
DEBUG_INLINE_CLOSURE = 0
DEBUG_JIT = 0
DEBUG_NRT = 0
DEBUG_PRINT_AFTER = 'none'
DEBUG_PRINT_BEFORE = 'none'
DEBUG_PRINT_WRAP = 'none'
DEBUG_TYPEINFER = 0
DEVELOPER_MODE = 0
DIFF_IR = 0
DISABLE_CUDA = 0
DISABLE_INTEL_SVML = False
DISABLE_JIT = 0
DISABLE_PERFORMANCE_WARNINGS = 0
DUMP_ASSEMBLY = 0
DUMP_BYTECODE = 0
DUMP_CFG = 0
DUMP_FUNC_OPT = 0
DUMP_IR = 0
DUMP_LLVM = 0
DUMP_OPTIMIZED = 0
DUMP_SSA = 0
ENABLE_AVX = True
ENABLE_CUDASIM = 0
ENABLE_PROFILING = 0
ENABLE_SYS_MONITORING = 0
EXTEND_VARIABLE_LIFETIMES = 0
FORCE_CUDA_CC = None
FULL_TRACEBACKS = 0
FUNCTION_CACHE_SIZE = 128
GDB_BINARY = 'gdb'
HIGHLIGHT_DUMPS = 0
HTML = None
IS_32BITS = False
IS_OSX = False
IS_WIN32 = True
JIT_COVERAGE = 0
LLVM_PASS_TIMINGS = 0
LLVM_REFPRUNE_FLAGS = 'all'
LLVM_REFPRUNE_PASS = 1
LOOP_VECTORIZE = 1
MACHINE_BITS = 64
NRT_STATS = 0
NUMBA_DEFAULT_NUM_THREADS = 4
NUMBA_NUM_THREADS = 4
OPT = _OptLevel(3)
PARALLEL_DIAGNOSTICS = 0
PARFOR_MAX_TUPLE_SIZE = 100
PYVERSION = (3, 12)
RUNNING_UNDER_PROFILER = False
SHOW_HELP = 0
SLP_VECTORIZE = 0
THREADING_LAYER = 'default'
THREADING_LAYER_PRIORITY = ['tbb', 'omp', 'workqueue']
TRACE = 0
USE_LEGACY_TYPE_SYSTEM = 1
USE_LLVMLITE_MEMORY_MANAGER = None
USING_SVML = False
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\core\config.py
numba.core
Python Library Documentation: package numba.core in numba
NAME
numba.core
PACKAGE CONTENTS
analysis
annotations (package)
base
boxing
bytecode
byteflow
caching
callconv
callwrapper
ccallback
cgutils
codegen
compiler
compiler_lock
compiler_machinery
config
consts
controlflow
cpu
cpu_options
datamodel (package)
debuginfo
decorators
descriptors
dispatcher
entrypoints
environment
errors
event
extending
externals
fastmathpass
funcdesc
generators
imputils
inline_closurecall
interpreter
intrinsics
ir
ir_utils
itanium_mangler
llvm_bindings
lowering
new_boxing
object_mode_passes
old_boxing
optional
options
postproc
pylowering
pythonapi
registry
removerefctpass
rewrites (package)
runtime (package)
serialize
sigutils
ssa
target_extension
targetconfig
tracing
transforms
typeconv (package)
typed_passes
typeinfer
types (package)
typing (package)
unsafe (package)
untyped_passes
utils
withcontexts
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\core\__init__.py
numba.cpython
Python Library Documentation: package numba.cpython in numba
NAME
numba.cpython
PACKAGE CONTENTS
builtins
charseq
cmathimpl
enumimpl
hashing
heapq
iterators
listobj
mathimpl
new_builtins
new_hashing
new_mathimpl
new_numbers
new_tupleobj
numbers
old_builtins
old_hashing
old_mathimpl
old_numbers
old_tupleobj
printimpl
randomimpl
rangeobj
setobj
slicing
tupleobj
unicode
unicode_support
unsafe (package)
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\cpython\__init__.py
numba.deferred_type
Python Library Documentation: class DeferredType in module numba.core.types.misc class DeferredType(numba.core.types.abstract.Type) | DeferredType(*args, **kwargs) | | Represents a type that will be defined later. It must be defined | before it is materialized (used in the compiler). Once defined, it | behaves exactly as the type it is defining. | | Method resolution order: | DeferredType | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __init__(self) | Initialize self. See help(type(self)) for accurate signature. | | define(self, typ) | | get(self) | | unify(self, typingctx, other) | Try to unify this type with the *other*. A third type must | be returned, or None if unification is not possible. | Only override this if the coercion logic cannot be expressed | as simple casting rules. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | cast_python_value(self, args) | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.double
Python Library Documentation: Float in module numba.core.types.old_scalars object class Float(numba.core.types.abstract.Number) | Float(*args, **kwargs) | | Method resolution order: | Float | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, *args, **kws) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.errors
Python Library Documentation: module numba.core.errors in numba.core
NAME
numba.core.errors - Numba-specific errors and warnings.
CLASSES
builtins.Exception(builtins.BaseException)
NumbaError
ByteCodeSupportError
CompilerError
ConstantInferenceError
DeprecationError
ForceLiteralArg
IRError
NotDefinedError
RedefinedError
VerificationError
InternalError
InternalTargetMismatchError
NonexistentTargetError
LoweringError
ForbiddenConstruct
NumbaRuntimeError
TypingError
LiteralTypingError
NumbaAssertionError
NumbaAttributeError
NumbaIndexError
NumbaKeyError
NumbaNotImplementedError
NumbaTypeError
NumbaValueError
RequireLiteralValue
UntypedAttributeError
UnsupportedError
UnsupportedRewriteError
UnsupportedParforsError
UnsupportedBytecodeError
builtins.Warning(builtins.Exception)
NumbaWarning
NumbaDebugInfoWarning
NumbaDeprecationWarning(NumbaWarning, builtins.DeprecationWarning)
NumbaExperimentalFeatureWarning
NumbaInvalidConfigWarning
NumbaParallelSafetyWarning
NumbaPedanticWarning
NumbaIRAssumptionWarning
NumbaPendingDeprecationWarning(NumbaWarning, builtins.PendingDeprecationWarning)
NumbaPerformanceWarning
NumbaSystemWarning
NumbaTypeSafetyWarning
class ByteCodeSupportError(NumbaError)
| ByteCodeSupportError(msg, loc=None)
|
| Failure to extract the bytecode of the user's function.
|
| Method resolution order:
| ByteCodeSupportError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class CompilerError(NumbaError)
| CompilerError(msg, loc=None, highlighting=True)
|
| Some high-level error in the compiler.
|
| Method resolution order:
| CompilerError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ConstantInferenceError(NumbaError)
| ConstantInferenceError(value, loc=None)
|
| Failure during constant inference.
|
| Method resolution order:
| ConstantInferenceError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DeprecationError(NumbaError)
| DeprecationError(msg, loc=None, highlighting=True)
|
| Functionality is deprecated.
|
| Method resolution order:
| DeprecationError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ForbiddenConstruct(LoweringError)
| ForbiddenConstruct(msg, loc=None)
|
| A forbidden Python construct was encountered (e.g. use of locals()).
|
| Method resolution order:
| ForbiddenConstruct
| LoweringError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from LoweringError:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ForceLiteralArg(NumbaError)
| ForceLiteralArg(arg_indices, fold_arguments=None, loc=None)
|
| A Pseudo-exception to signal the dispatcher to type an argument literally
|
| Attributes
| ----------
| requested_args : frozenset[int]
| requested positions of the arguments.
|
| Method resolution order:
| ForceLiteralArg
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, arg_indices, fold_arguments=None, loc=None)
| Parameters
| ----------
| arg_indices : Sequence[int]
| requested positions of the arguments.
| fold_arguments: callable
| A function ``(tuple, dict) -> tuple`` that binds and flattens
| the ``args`` and ``kwargs``.
| loc : numba.ir.Loc or None
|
| __or__(self, other)
| Same as self.combine(other)
|
| bind_fold_arguments(self, fold_arguments)
| Bind the fold_arguments function
|
| combine(self, other)
| Returns a new instance by or'ing the requested_args.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class IRError(NumbaError)
| IRError(msg, loc=None, highlighting=True)
|
| An error occurred during Numba IR generation.
|
| Method resolution order:
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InternalError(NumbaError)
| InternalError(exception)
|
| For wrapping internal error occurred within the compiler
|
| Method resolution order:
| InternalError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, exception)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InternalTargetMismatchError(InternalError)
| InternalTargetMismatchError(kind, target_hw, hw_clazz)
|
| For signalling a target mismatch error occurred internally within the
| compiler.
|
| Method resolution order:
| InternalTargetMismatchError
| InternalError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, kind, target_hw, hw_clazz)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class LiteralTypingError(TypingError)
| LiteralTypingError(msg, loc=None, highlighting=True)
|
| Failure in typing a Literal type
|
| Method resolution order:
| LiteralTypingError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class LoweringError(NumbaError)
| LoweringError(msg, loc=None)
|
| An error occurred during lowering.
|
| Method resolution order:
| LoweringError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NonexistentTargetError(InternalError)
| NonexistentTargetError(exception)
|
| For signalling that a target that does not exist was requested.
|
| Method resolution order:
| NonexistentTargetError
| InternalError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from InternalError:
|
| __init__(self, exception)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NotDefinedError(IRError)
| NotDefinedError(name, loc=None)
|
| An undefined variable is encountered during interpretation of IR.
|
| Method resolution order:
| NotDefinedError
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, name, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaAssertionError(TypingError)
| NumbaAssertionError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaAssertionError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaAttributeError(TypingError)
| NumbaAttributeError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaAttributeError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaDebugInfoWarning(NumbaWarning)
| NumbaDebugInfoWarning(msg, loc=None, highlighting=True)
|
| Warning category for an issue with the emission of debug information.
|
| Method resolution order:
| NumbaDebugInfoWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaDeprecationWarning(NumbaWarning, builtins.DeprecationWarning)
| NumbaDeprecationWarning(msg, loc=None, highlighting=True)
|
| Warning category for use of a deprecated feature.
|
| Method resolution order:
| NumbaDeprecationWarning
| NumbaWarning
| builtins.DeprecationWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.DeprecationWarning:
|
| __new__(*args, **kwargs) class method of builtins.DeprecationWarning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaError(builtins.Exception)
| NumbaError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaExperimentalFeatureWarning(NumbaWarning)
| NumbaExperimentalFeatureWarning(msg, loc=None, highlighting=True)
|
| Warning category for using an experimental feature.
|
| Method resolution order:
| NumbaExperimentalFeatureWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaIRAssumptionWarning(NumbaPedanticWarning)
| NumbaIRAssumptionWarning(msg, **kwargs)
|
| Warning category for reporting an IR assumption violation.
|
| Method resolution order:
| NumbaIRAssumptionWarning
| NumbaPedanticWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaPedanticWarning:
|
| __init__(self, msg, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaIndexError(TypingError)
| NumbaIndexError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaIndexError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaInvalidConfigWarning(NumbaWarning)
| NumbaInvalidConfigWarning(msg, loc=None, highlighting=True)
|
| Warning category for using an invalid configuration.
|
| Method resolution order:
| NumbaInvalidConfigWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaKeyError(TypingError)
| NumbaKeyError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaKeyError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaNotImplementedError(TypingError)
| NumbaNotImplementedError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaNotImplementedError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaParallelSafetyWarning(NumbaWarning)
| NumbaParallelSafetyWarning(msg, loc=None, highlighting=True)
|
| Warning category for when an operation in a prange
| might not have parallel semantics.
|
| Method resolution order:
| NumbaParallelSafetyWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaPedanticWarning(NumbaWarning)
| NumbaPedanticWarning(msg, **kwargs)
|
| Warning category for reporting pedantic messages.
|
| Method resolution order:
| NumbaPedanticWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaPendingDeprecationWarning(NumbaWarning, builtins.PendingDeprecationWarning)
| NumbaPendingDeprecationWarning(msg, loc=None, highlighting=True)
|
| Warning category for use of a feature that is pending deprecation.
|
| Method resolution order:
| NumbaPendingDeprecationWarning
| NumbaWarning
| builtins.PendingDeprecationWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.PendingDeprecationWarning:
|
| __new__(*args, **kwargs) class method of builtins.PendingDeprecationWarning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaPerformanceWarning(NumbaWarning)
| NumbaPerformanceWarning(msg, loc=None, highlighting=True)
|
| Warning category for when an operation might not be
| as fast as expected.
|
| Method resolution order:
| NumbaPerformanceWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaRuntimeError(NumbaError)
| NumbaRuntimeError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaRuntimeError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaSystemWarning(NumbaWarning)
| NumbaSystemWarning(msg, loc=None, highlighting=True)
|
| Warning category for an issue with the system configuration.
|
| Method resolution order:
| NumbaSystemWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaTypeError(TypingError)
| NumbaTypeError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaTypeError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaTypeSafetyWarning(NumbaWarning)
| NumbaTypeSafetyWarning(msg, loc=None, highlighting=True)
|
| Warning category for unsafe casting operations.
|
| Method resolution order:
| NumbaTypeSafetyWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaValueError(TypingError)
| NumbaValueError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaValueError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaWarning(builtins.Warning)
| NumbaWarning(msg, loc=None, highlighting=True)
|
| Base category for all Numba compiler warnings.
|
| Method resolution order:
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class RedefinedError(IRError)
| RedefinedError(msg, loc=None, highlighting=True)
|
| An error occurred during interpretation of IR due to variable redefinition.
|
| Method resolution order:
| RedefinedError
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class RequireLiteralValue(TypingError)
| RequireLiteralValue(msg, loc=None, highlighting=True)
|
| For signalling that a function's typing requires a constant value for
| some of its arguments.
|
| Method resolution order:
| RequireLiteralValue
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class TypingError(NumbaError)
| TypingError(msg, loc=None, highlighting=True)
|
| A type inference failure.
|
| Method resolution order:
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedBytecodeError(builtins.Exception)
| UnsupportedBytecodeError(msg, loc=None)
|
| Unsupported bytecode is non-recoverable
|
| Method resolution order:
| UnsupportedBytecodeError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedError(NumbaError)
| UnsupportedError(msg, loc=None, highlighting=True)
|
| Numba does not have an implementation for this functionality.
|
| Method resolution order:
| UnsupportedError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedParforsError(NumbaError)
| UnsupportedParforsError(msg, loc=None, highlighting=True)
|
| An error occurred because parfors is not supported on the platform.
|
| Method resolution order:
| UnsupportedParforsError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedRewriteError(UnsupportedError)
| UnsupportedRewriteError(msg, loc=None, highlighting=True)
|
| UnsupportedError from rewrite passes
|
| Method resolution order:
| UnsupportedRewriteError
| UnsupportedError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UntypedAttributeError(TypingError)
| UntypedAttributeError(value, attr, loc=None)
|
| Method resolution order:
| UntypedAttributeError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, attr, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class VerificationError(IRError)
| VerificationError(msg, loc=None, highlighting=True)
|
| An error occurred during IR verification. Once Numba's internal
| representation (IR) is constructed it is then verified to ensure that
| terminators are both present and in the correct places within the IR. If
| it is the case that this condition is not met, a VerificationError is
| raised.
|
| Method resolution order:
| VerificationError
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['NumbaWarning', 'NumbaPerformanceWarning', 'NumbaDeprecatio...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\core\errors.py
numba.experimental
Python Library Documentation: package numba.experimental in numba
NAME
numba.experimental
PACKAGE CONTENTS
function_type
jitclass (package)
structref
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\experimental\__init__.py
numba.extending
Python Library Documentation: module numba.extending in numba
NAME
numba.extending - # Re-export symbols
DATA
as_numba_type = <numba.core.typing.asnumbatype.AsNumbaTypeRegistry obj...
register_model = functools.partial(<function register at 0x000001...r....
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\extending.py
numba.f4
Python Library Documentation: Float in module numba.core.types.old_scalars object class Float(numba.core.types.abstract.Number) | Float(*args, **kwargs) | | Method resolution order: | Float | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, *args, **kws) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.f8
Python Library Documentation: Float in module numba.core.types.old_scalars object class Float(numba.core.types.abstract.Number) | Float(*args, **kwargs) | | Method resolution order: | Float | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, *args, **kws) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.farray
Python Library Documentation: function farray in module numba.np.numpy_support
farray(ptr, shape, dtype=None)
Return a Numpy array view over the data pointed to by *ptr* with the
given *shape*, in Fortran order. If *dtype* is given, it is used as the
array's dtype, otherwise the array's dtype is inferred from *ptr*'s type.
numba.ffi
Python Library Documentation: Opaque in module numba.core.types.common object class Opaque(numba.core.types.abstract.Dummy) | Opaque(*args, **kwargs) | | A type that is a opaque pointer. | | Method resolution order: | Opaque | numba.core.types.abstract.Dummy | numba.core.types.abstract.Type | builtins.object | | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | cast_python_value(self, args) | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | unify(self, typingctx, other) | Try to unify this type with the *other*. A third type must | be returned, or None if unification is not possible. | Only override this if the coercion logic cannot be expressed | as simple casting rules. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.ffi_forced_object
Python Library Documentation: Opaque in module numba.core.types.common object class Opaque(numba.core.types.abstract.Dummy) | Opaque(*args, **kwargs) | | A type that is a opaque pointer. | | Method resolution order: | Opaque | numba.core.types.abstract.Dummy | numba.core.types.abstract.Type | builtins.object | | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | cast_python_value(self, args) | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | unify(self, typingctx, other) | Try to unify this type with the *other*. A third type must | be returned, or None if unification is not possible. | Only override this if the coercion logic cannot be expressed | as simple casting rules. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.float32
Python Library Documentation: Float in module numba.core.types.old_scalars object class Float(numba.core.types.abstract.Number) | Float(*args, **kwargs) | | Method resolution order: | Float | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, *args, **kws) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.float64
Python Library Documentation: Float in module numba.core.types.old_scalars object class Float(numba.core.types.abstract.Number) | Float(*args, **kwargs) | | Method resolution order: | Float | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, *args, **kws) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.from_dtype
Python Library Documentation: function from_dtype in module numba.np.numpy_support
from_dtype(dtype)
Return a Numba Type instance corresponding to the given Numpy *dtype*.
NumbaNotImplementedError is raised on unsupported Numpy dtypes.
numba.gdb
Python Library Documentation: function gdb in module numba.misc.special
gdb(*args)
Calling this function will invoke gdb and attach it to the current process
at the call site. Arguments are strings in the gdb command language syntax
which will be executed by gdb once initialisation has occurred.
numba.gdb_breakpoint
Python Library Documentation: function gdb_breakpoint in module numba.misc.special
gdb_breakpoint()
Calling this function will inject a breakpoint at the call site that is
recognised by both `gdb` and `gdb_init`, this is to allow breaking at
multiple points. gdb will stop in the user defined code just after the frame
employed by the breakpoint returns.
numba.gdb_init
Python Library Documentation: function gdb_init in module numba.misc.special
gdb_init(*args)
Calling this function will invoke gdb and attach it to the current process
at the call site, then continue executing the process under gdb's control.
Arguments are strings in the gdb command language syntax which will be
executed by gdb once initialisation has occurred.
numba.get_num_threads
Python Library Documentation: function get_num_threads in module numba.np.ufunc.parallel
get_num_threads()
Get the number of threads used for parallel execution.
By default (if :func:`~.set_num_threads` is never called), all
:obj:`numba.config.NUMBA_NUM_THREADS` threads are used.
This number is less than or equal to the total number of threads that are
launched, :obj:`numba.config.NUMBA_NUM_THREADS`.
This function can be used inside of a jitted function.
Returns
-------
The number of threads.
See Also
--------
set_num_threads, numba.config.NUMBA_NUM_THREADS,
numba.config.NUMBA_DEFAULT_NUM_THREADS, :envvar:`NUMBA_NUM_THREADS`
numba.get_parallel_chunksize
Python Library Documentation: function get_parallel_chunksize in module numba.np.ufunc.parallel get_parallel_chunksize()
numba.get_thread_id
Python Library Documentation: function get_thread_id in module numba.np.ufunc.parallel
get_thread_id()
Returns a unique ID for each thread in the range 0 (inclusive)
to :func:`~.get_num_threads` (exclusive).
numba.guvectorize
Python Library Documentation: function guvectorize in module numba.np.ufunc.decorators
guvectorize(*args, **kwargs)
guvectorize(ftylist, signature, target='cpu', identity=None, **kws)
A decorator to create NumPy generalized-ufunc object from Numba compiled
code.
Args
-----
ftylist: iterable
An iterable of type signatures, which are either
function type object or a string describing the
function type.
signature: str
A NumPy generalized-ufunc signature.
e.g. "(m, n), (n, p)->(m, p)"
identity: int, str, or None
The identity (or unit) value for the element-wise function
being implemented. Allowed values are None (the default), 0, 1,
and "reorderable".
cache: bool
Turns on caching.
writable_args: tuple
a tuple of indices of input variables that are writable.
target: str
A string for code generation target. Defaults to "cpu".
Returns
--------
A NumPy generalized universal-function
Example
-------
@guvectorize(['void(int32[:,:], int32[:,:], int32[:,:])',
'void(float32[:,:], float32[:,:], float32[:,:])'],
'(x, y),(x, y)->(x, y)')
def add_2d_array(a, b, c):
for i in range(c.shape[0]):
for j in range(c.shape[1]):
c[i, j] = a[i, j] + b[i, j]
numba.i1
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.i2
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.i4
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.i8
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.int16
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.int32
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.int64
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.int8
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.int_
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.intc
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.intp
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.jit
Python Library Documentation: function jit in module numba.core.decorators
jit(signature_or_function=None, locals={}, cache=False, pipeline_class=None, boundscheck=None, **options)
This decorator is used to compile a Python function into native code.
Args
-----
signature_or_function:
The (optional) signature or list of signatures to be compiled.
If not passed, required signatures will be compiled when the
decorated function is called, depending on the argument values.
As a convenience, you can directly pass the function to be compiled
instead.
locals: dict
Mapping of local variable names to Numba types. Used to override the
types deduced by Numba's type inference engine.
pipeline_class: type numba.compiler.CompilerBase
The compiler pipeline type for customizing the compilation stages.
options:
For a cpu target, valid options are:
nopython: bool
Set to True to disable the use of PyObjects and Python API
calls. The default behavior is to allow the use of PyObjects
and Python API. Default value is True.
forceobj: bool
Set to True to force the use of PyObjects for every value.
Default value is False.
looplift: bool
Set to True to enable jitting loops in nopython mode while
leaving surrounding code in object mode. This allows functions
to allocate NumPy arrays and use Python objects, while the
tight loops in the function can still be compiled in nopython
mode. Any arrays that the tight loop uses should be created
before the loop is entered. Default value is True.
error_model: str
The error-model affects divide-by-zero behavior.
Valid values are 'python' and 'numpy'. The 'python' model
raises exception. The 'numpy' model sets the result to
*+/-inf* or *nan*. Default value is 'python'.
inline: str or callable
The inline option will determine whether a function is inlined
at into its caller if called. String options are 'never'
(default) which will never inline, and 'always', which will
always inline. If a callable is provided it will be called with
the call expression node that is requesting inlining, the
caller's IR and callee's IR as arguments, it is expected to
return Truthy as to whether to inline.
NOTE: This inlining is performed at the Numba IR level and is in
no way related to LLVM inlining.
boundscheck: bool or None
Set to True to enable bounds checking for array indices. Out
of bounds accesses will raise IndexError. The default is to
not do bounds checking. If False, bounds checking is disabled,
out of bounds accesses can produce garbage results or segfaults.
However, enabling bounds checking will slow down typical
functions, so it is recommended to only use this flag for
debugging. You can also set the NUMBA_BOUNDSCHECK environment
variable to 0 or 1 to globally override this flag. The default
value is None, which under normal execution equates to False,
but if debug is set to True then bounds checking will be
enabled.
Returns
--------
A callable usable as a compiled function. Actual compiling will be
done lazily if no explicit signatures are passed.
Examples
--------
The function can be used in the following ways:
1) jit(signatures, **targetoptions) -> jit(function)
Equivalent to:
d = dispatcher(function, targetoptions)
for signature in signatures:
d.compile(signature)
Create a dispatcher object for a python function. Then, compile
the function with the given signature(s).
Example:
@jit("int32(int32, int32)")
def foo(x, y):
return x + y
@jit(["int32(int32, int32)", "float32(float32, float32)"])
def bar(x, y):
return x + y
2) jit(function, **targetoptions) -> dispatcher
Create a dispatcher function object that specializes at call site.
Examples:
@jit
def foo(x, y):
return x + y
@jit(nopython=True)
def bar(x, y):
return x + y
numba.jit_module
Python Library Documentation: function jit_module in module numba.core.decorators
jit_module(**kwargs)
Automatically ``jit``-wraps functions defined in a Python module
Note that ``jit_module`` should only be called at the end of the module to
be jitted. In addition, only functions which are defined in the module
``jit_module`` is called from are considered for automatic jit-wrapping.
See the Numba documentation for more information about what can/cannot be
jitted.
:param kwargs: Keyword arguments to pass to ``jit`` such as ``nopython``
or ``error_model``.
numba.literal_unroll
Python Library Documentation: function literal_unroll in module numba.misc.special literal_unroll(container)
numba.literally
Python Library Documentation: function literally in module numba.misc.special
literally(obj)
Forces Numba to interpret *obj* as an Literal value.
*obj* must be either a literal or an argument of the caller function, where
the argument must be bound to a literal. The literal requirement
propagates up the call stack.
This function is intercepted by the compiler to alter the compilation
behavior to wrap the corresponding function parameters as ``Literal``.
It has **no effect** outside of nopython-mode (interpreter, and objectmode).
The current implementation detects literal arguments in two ways:
1. Scans for uses of ``literally`` via a compiler pass.
2. ``literally`` is overloaded to raise ``numba.errors.ForceLiteralArg``
to signal the dispatcher to treat the corresponding parameter
differently. This mode is to support indirect use (via a function call).
The execution semantic of this function is equivalent to an identity
function.
See :ghfile:`numba/tests/test_literal_dispatch.py` for examples.
numba.llvmlite
Python Library Documentation: package llvmlite
NAME
llvmlite
PACKAGE CONTENTS
_version
binding (package)
ir (package)
tests (package)
utils
DATA
opaque_pointers_enabled = False
VERSION
0.44.0
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\llvmlite\__init__.py
numba.long_
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.longlong
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.misc
Python Library Documentation: package numba.misc in numba
NAME
numba.misc
PACKAGE CONTENTS
POST
appdirs
cffiimpl
coverage_support
dump_style
findlib
firstlinefinder
gdb_hook
gdb_print_extension
help (package)
init_utils
inspection
literal
llvm_pass_timings
mergesort
numba_entry
numba_gdbinfo
numba_sysinfo
quicksort
special
timsort
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\misc\__init__.py
numba.njit
Python Library Documentation: function njit in module numba.core.decorators
njit(*args, **kws)
Equivalent to jit(nopython=True)
See documentation for jit function/decorator for full description.
numba.none
Python Library Documentation: NoneType in module numba.core.types.misc object class NoneType(numba.core.types.common.Opaque) | NoneType(*args, **kwargs) | | The type for None. | | Method resolution order: | NoneType | numba.core.types.common.Opaque | numba.core.types.abstract.Dummy | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | unify(self, typingctx, other) | Turn anything to a Optional type; | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | cast_python_value(self, args) | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.np
Python Library Documentation: package numba.np in numba
NAME
numba.np
PACKAGE CONTENTS
arraymath
arrayobj
extensions
linalg
math (package)
new_arraymath
npdatetime
npdatetime_helpers
npyfuncs
npyimpl
numpy_support
old_arraymath
polynomial (package)
random (package)
ufunc (package)
ufunc_db
unsafe (package)
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\np\__init__.py
numba.numba
Python Library Documentation: package numba
NAME
numba - Expose top-level symbols that are safe for import *
PACKAGE CONTENTS
__main__
_devicearray
_dispatcher
_dynfunc
_helperlib
_version
cext (package)
cloudpickle (package)
core (package)
cpython (package)
cuda (package)
experimental (package)
extending
misc (package)
mviewbuf
np (package)
parfors (package)
pycc (package)
runtests
scripts (package)
stencils (package)
testing (package)
tests (package)
typed (package)
types (package)
SUBMODULES
config
errors
CLASSES
builtins.Exception(builtins.BaseException)
numba.core.errors.NumbaError
numba.core.errors.ByteCodeSupportError
numba.core.errors.CompilerError
numba.core.errors.ConstantInferenceError
numba.core.errors.DeprecationError
numba.core.errors.ForceLiteralArg
numba.core.errors.IRError
numba.core.errors.NotDefinedError
numba.core.errors.RedefinedError
numba.core.errors.VerificationError
numba.core.errors.InternalError
numba.core.errors.InternalTargetMismatchError
numba.core.errors.NonexistentTargetError
numba.core.errors.LoweringError
numba.core.errors.ForbiddenConstruct
numba.core.errors.NumbaRuntimeError
numba.core.errors.TypingError
numba.core.errors.LiteralTypingError
numba.core.errors.NumbaAssertionError
numba.core.errors.NumbaAttributeError
numba.core.errors.NumbaIndexError
numba.core.errors.NumbaKeyError
numba.core.errors.NumbaNotImplementedError
numba.core.errors.NumbaTypeError
numba.core.errors.NumbaValueError
numba.core.errors.RequireLiteralValue
numba.core.errors.UntypedAttributeError
numba.core.errors.UnsupportedError
numba.core.errors.UnsupportedRewriteError
numba.core.errors.UnsupportedParforsError
numba.core.errors.UnsupportedBytecodeError
builtins.Warning(builtins.Exception)
numba.core.errors.NumbaWarning
numba.core.errors.NumbaDebugInfoWarning
numba.core.errors.NumbaDeprecationWarning(numba.core.errors.NumbaWarning, builtins.DeprecationWarning)
numba.core.errors.NumbaExperimentalFeatureWarning
numba.core.errors.NumbaInvalidConfigWarning
numba.core.errors.NumbaParallelSafetyWarning
numba.core.errors.NumbaPedanticWarning
numba.core.errors.NumbaIRAssumptionWarning
numba.core.errors.NumbaPendingDeprecationWarning(numba.core.errors.NumbaWarning, builtins.PendingDeprecationWarning)
numba.core.errors.NumbaPerformanceWarning
numba.core.errors.NumbaSystemWarning
numba.core.errors.NumbaTypeSafetyWarning
builtins.object
numba.misc.special.prange
numba.core.types.abstract.Type(builtins.object)
numba.core.types.misc.DeferredType
numba.core.types.misc.Optional
class ByteCodeSupportError(NumbaError)
| ByteCodeSupportError(msg, loc=None)
|
| Failure to extract the bytecode of the user's function.
|
| Method resolution order:
| ByteCodeSupportError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class CompilerError(NumbaError)
| CompilerError(msg, loc=None, highlighting=True)
|
| Some high-level error in the compiler.
|
| Method resolution order:
| CompilerError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ConstantInferenceError(NumbaError)
| ConstantInferenceError(value, loc=None)
|
| Failure during constant inference.
|
| Method resolution order:
| ConstantInferenceError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class DeprecationError(NumbaError)
| DeprecationError(msg, loc=None, highlighting=True)
|
| Functionality is deprecated.
|
| Method resolution order:
| DeprecationError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ForbiddenConstruct(LoweringError)
| ForbiddenConstruct(msg, loc=None)
|
| A forbidden Python construct was encountered (e.g. use of locals()).
|
| Method resolution order:
| ForbiddenConstruct
| LoweringError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from LoweringError:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class ForceLiteralArg(NumbaError)
| ForceLiteralArg(arg_indices, fold_arguments=None, loc=None)
|
| A Pseudo-exception to signal the dispatcher to type an argument literally
|
| Attributes
| ----------
| requested_args : frozenset[int]
| requested positions of the arguments.
|
| Method resolution order:
| ForceLiteralArg
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, arg_indices, fold_arguments=None, loc=None)
| Parameters
| ----------
| arg_indices : Sequence[int]
| requested positions of the arguments.
| fold_arguments: callable
| A function ``(tuple, dict) -> tuple`` that binds and flattens
| the ``args`` and ``kwargs``.
| loc : numba.ir.Loc or None
|
| __or__(self, other)
| Same as self.combine(other)
|
| bind_fold_arguments(self, fold_arguments)
| Bind the fold_arguments function
|
| combine(self, other)
| Returns a new instance by or'ing the requested_args.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class IRError(NumbaError)
| IRError(msg, loc=None, highlighting=True)
|
| An error occurred during Numba IR generation.
|
| Method resolution order:
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InternalError(NumbaError)
| InternalError(exception)
|
| For wrapping internal error occurred within the compiler
|
| Method resolution order:
| InternalError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, exception)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InternalTargetMismatchError(InternalError)
| InternalTargetMismatchError(kind, target_hw, hw_clazz)
|
| For signalling a target mismatch error occurred internally within the
| compiler.
|
| Method resolution order:
| InternalTargetMismatchError
| InternalError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, kind, target_hw, hw_clazz)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class LiteralTypingError(TypingError)
| LiteralTypingError(msg, loc=None, highlighting=True)
|
| Failure in typing a Literal type
|
| Method resolution order:
| LiteralTypingError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class LoweringError(NumbaError)
| LoweringError(msg, loc=None)
|
| An error occurred during lowering.
|
| Method resolution order:
| LoweringError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NonexistentTargetError(InternalError)
| NonexistentTargetError(exception)
|
| For signalling that a target that does not exist was requested.
|
| Method resolution order:
| NonexistentTargetError
| InternalError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from InternalError:
|
| __init__(self, exception)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NotDefinedError(IRError)
| NotDefinedError(name, loc=None)
|
| An undefined variable is encountered during interpretation of IR.
|
| Method resolution order:
| NotDefinedError
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, name, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaAssertionError(TypingError)
| NumbaAssertionError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaAssertionError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaAttributeError(TypingError)
| NumbaAttributeError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaAttributeError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaDebugInfoWarning(NumbaWarning)
| NumbaDebugInfoWarning(msg, loc=None, highlighting=True)
|
| Warning category for an issue with the emission of debug information.
|
| Method resolution order:
| NumbaDebugInfoWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaDeprecationWarning(NumbaWarning, builtins.DeprecationWarning)
| NumbaDeprecationWarning(msg, loc=None, highlighting=True)
|
| Warning category for use of a deprecated feature.
|
| Method resolution order:
| NumbaDeprecationWarning
| NumbaWarning
| builtins.DeprecationWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.DeprecationWarning:
|
| __new__(*args, **kwargs) class method of builtins.DeprecationWarning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaError(builtins.Exception)
| NumbaError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaExperimentalFeatureWarning(NumbaWarning)
| NumbaExperimentalFeatureWarning(msg, loc=None, highlighting=True)
|
| Warning category for using an experimental feature.
|
| Method resolution order:
| NumbaExperimentalFeatureWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaIRAssumptionWarning(NumbaPedanticWarning)
| NumbaIRAssumptionWarning(msg, **kwargs)
|
| Warning category for reporting an IR assumption violation.
|
| Method resolution order:
| NumbaIRAssumptionWarning
| NumbaPedanticWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaPedanticWarning:
|
| __init__(self, msg, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaIndexError(TypingError)
| NumbaIndexError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaIndexError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaInvalidConfigWarning(NumbaWarning)
| NumbaInvalidConfigWarning(msg, loc=None, highlighting=True)
|
| Warning category for using an invalid configuration.
|
| Method resolution order:
| NumbaInvalidConfigWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaKeyError(TypingError)
| NumbaKeyError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaKeyError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaNotImplementedError(TypingError)
| NumbaNotImplementedError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaNotImplementedError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaParallelSafetyWarning(NumbaWarning)
| NumbaParallelSafetyWarning(msg, loc=None, highlighting=True)
|
| Warning category for when an operation in a prange
| might not have parallel semantics.
|
| Method resolution order:
| NumbaParallelSafetyWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaPedanticWarning(NumbaWarning)
| NumbaPedanticWarning(msg, **kwargs)
|
| Warning category for reporting pedantic messages.
|
| Method resolution order:
| NumbaPedanticWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaPendingDeprecationWarning(NumbaWarning, builtins.PendingDeprecationWarning)
| NumbaPendingDeprecationWarning(msg, loc=None, highlighting=True)
|
| Warning category for use of a feature that is pending deprecation.
|
| Method resolution order:
| NumbaPendingDeprecationWarning
| NumbaWarning
| builtins.PendingDeprecationWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.PendingDeprecationWarning:
|
| __new__(*args, **kwargs) class method of builtins.PendingDeprecationWarning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaPerformanceWarning(NumbaWarning)
| NumbaPerformanceWarning(msg, loc=None, highlighting=True)
|
| Warning category for when an operation might not be
| as fast as expected.
|
| Method resolution order:
| NumbaPerformanceWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaRuntimeError(NumbaError)
| NumbaRuntimeError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaRuntimeError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaSystemWarning(NumbaWarning)
| NumbaSystemWarning(msg, loc=None, highlighting=True)
|
| Warning category for an issue with the system configuration.
|
| Method resolution order:
| NumbaSystemWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaTypeError(TypingError)
| NumbaTypeError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaTypeError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaTypeSafetyWarning(NumbaWarning)
| NumbaTypeSafetyWarning(msg, loc=None, highlighting=True)
|
| Warning category for unsafe casting operations.
|
| Method resolution order:
| NumbaTypeSafetyWarning
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaWarning:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaWarning:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaValueError(TypingError)
| NumbaValueError(msg, loc=None, highlighting=True)
|
| Method resolution order:
| NumbaValueError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class NumbaWarning(builtins.Warning)
| NumbaWarning(msg, loc=None, highlighting=True)
|
| Base category for all Numba compiler warnings.
|
| Method resolution order:
| NumbaWarning
| builtins.Warning
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Warning:
|
| __new__(*args, **kwargs) class method of builtins.Warning
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class RedefinedError(IRError)
| RedefinedError(msg, loc=None, highlighting=True)
|
| An error occurred during interpretation of IR due to variable redefinition.
|
| Method resolution order:
| RedefinedError
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class RequireLiteralValue(TypingError)
| RequireLiteralValue(msg, loc=None, highlighting=True)
|
| For signalling that a function's typing requires a constant value for
| some of its arguments.
|
| Method resolution order:
| RequireLiteralValue
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class TypingError(NumbaError)
| TypingError(msg, loc=None, highlighting=True)
|
| A type inference failure.
|
| Method resolution order:
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedBytecodeError(builtins.Exception)
| UnsupportedBytecodeError(msg, loc=None)
|
| Unsupported bytecode is non-recoverable
|
| Method resolution order:
| UnsupportedBytecodeError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedError(NumbaError)
| UnsupportedError(msg, loc=None, highlighting=True)
|
| Numba does not have an implementation for this functionality.
|
| Method resolution order:
| UnsupportedError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedParforsError(NumbaError)
| UnsupportedParforsError(msg, loc=None, highlighting=True)
|
| An error occurred because parfors is not supported on the platform.
|
| Method resolution order:
| UnsupportedParforsError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UnsupportedRewriteError(UnsupportedError)
| UnsupportedRewriteError(msg, loc=None, highlighting=True)
|
| UnsupportedError from rewrite passes
|
| Method resolution order:
| UnsupportedRewriteError
| UnsupportedError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class UntypedAttributeError(TypingError)
| UntypedAttributeError(value, attr, loc=None)
|
| Method resolution order:
| UntypedAttributeError
| TypingError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, attr, loc=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from NumbaError:
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class VerificationError(IRError)
| VerificationError(msg, loc=None, highlighting=True)
|
| An error occurred during IR verification. Once Numba's internal
| representation (IR) is constructed it is then verified to ensure that
| terminators are both present and in the correct places within the IR. If
| it is the case that this condition is not met, a VerificationError is
| raised.
|
| Method resolution order:
| VerificationError
| IRError
| NumbaError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from NumbaError:
|
| __init__(self, msg, loc=None, highlighting=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| add_context(self, msg)
| Add contextual info. The exception message is expanded with the new
| contextual information.
|
| patch_message(self, new_message)
| Change the error message to the given new message.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from NumbaError:
|
| contexts
|
| ----------------------------------------------------------------------
| Data descriptors inherited from NumbaError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
deferred_type = class DeferredType(numba.core.types.abstract.Type)
| deferred_type(*args, **kwargs)
|
| Represents a type that will be defined later. It must be defined
| before it is materialized (used in the compiler). Once defined, it
| behaves exactly as the type it is defining.
|
| Method resolution order:
| DeferredType
| numba.core.types.abstract.Type
| builtins.object
|
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| define(self, typ)
|
| get(self)
|
| unify(self, typingctx, other)
| Try to unify this type with the *other*. A third type must
| be returned, or None if unification is not possible.
| Only override this if the coercion logic cannot be expressed
| as simple casting rules.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from numba.core.types.abstract.Type:
|
| __call__(self, *args)
| Call self as a function.
|
| __eq__(self, other)
| Return self==value.
|
| __getitem__(self, args)
| Return an array of this type.
|
| __hash__(self)
| Return hash(self).
|
| __ne__(self, other)
| Return self!=value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __str__(self)
| Return str(self).
|
| augment(self, other)
| Augment this type with the *other*. Return the augmented type,
| or None if not supported.
|
| can_convert_from(self, typingctx, other)
| Similar to *can_convert_to*, but in reverse. Only needed if
| the type provides conversion from other types.
|
| can_convert_to(self, typingctx, other)
| Check whether this type can be converted to the *other*.
| If successful, must return a string describing the conversion, e.g.
| "exact", "promote", "unsafe", "safe"; otherwise None is returned.
|
| cast_python_value(self, args)
|
| dump(self, tab='')
|
| is_precise(self)
| Whether this type is precise, i.e. can be part of a successful
| type inference. Default implementation returns True.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from numba.core.types.abstract.Type:
|
| is_internal
| Returns True if this class is an internally defined Numba type by
| virtue of the module in which it is instantiated, False else.
|
| key
| A property used for __eq__, __ne__ and __hash__. Can be overridden
| in subclasses.
|
| mangling_args
| Returns `(basename, args)` where `basename` is the name of the type
| and `args` is a sequence of parameters of the type.
|
| Subclass should override to specialize the behavior.
| By default, this returns `(self.name, ())`.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from numba.core.types.abstract.Type:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from numba.core.types.abstract.Type:
|
| mutable = False
|
| reflected = False
optional = class Optional(numba.core.types.abstract.Type)
| optional(*args, **kwargs)
|
| Type class for optional types, i.e. union { some type, None }
|
| Method resolution order:
| Optional
| numba.core.types.abstract.Type
| builtins.object
|
| Methods defined here:
|
| __init__(self, typ)
| Initialize self. See help(type(self)) for accurate signature.
|
| can_convert_from(self, typingctx, other)
| Similar to *can_convert_to*, but in reverse. Only needed if
| the type provides conversion from other types.
|
| can_convert_to(self, typingctx, other)
| Check whether this type can be converted to the *other*.
| If successful, must return a string describing the conversion, e.g.
| "exact", "promote", "unsafe", "safe"; otherwise None is returned.
|
| unify(self, typingctx, other)
| Try to unify this type with the *other*. A third type must
| be returned, or None if unification is not possible.
| Only override this if the coercion logic cannot be expressed
| as simple casting rules.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| key
| A property used for __eq__, __ne__ and __hash__. Can be overridden
| in subclasses.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from numba.core.types.abstract.Type:
|
| __call__(self, *args)
| Call self as a function.
|
| __eq__(self, other)
| Return self==value.
|
| __getitem__(self, args)
| Return an array of this type.
|
| __hash__(self)
| Return hash(self).
|
| __ne__(self, other)
| Return self!=value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __str__(self)
| Return str(self).
|
| augment(self, other)
| Augment this type with the *other*. Return the augmented type,
| or None if not supported.
|
| cast_python_value(self, args)
|
| dump(self, tab='')
|
| is_precise(self)
| Whether this type is precise, i.e. can be part of a successful
| type inference. Default implementation returns True.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from numba.core.types.abstract.Type:
|
| is_internal
| Returns True if this class is an internally defined Numba type by
| virtue of the module in which it is instantiated, False else.
|
| mangling_args
| Returns `(basename, args)` where `basename` is the name of the type
| and `args` is a sequence of parameters of the type.
|
| Subclass should override to specialize the behavior.
| By default, this returns `(self.name, ())`.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from numba.core.types.abstract.Type:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from numba.core.types.abstract.Type:
|
| mutable = False
|
| reflected = False
class prange(builtins.object)
| prange(*args)
|
| Provides a 1D parallel iterator that generates a sequence of integers.
| In non-parallel contexts, prange is identical to range.
|
| Static methods defined here:
|
| __new__(cls, *args)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
FUNCTIONS
cfunc(sig, locals={}, cache=False, pipeline_class=None, **options)
This decorator is used to compile a Python function into a C callback
usable with foreign C libraries.
Usage::
@cfunc("float64(float64, float64)", nopython=True, cache=True)
def add(a, b):
return a + b
from_dtype(dtype)
Return a Numba Type instance corresponding to the given Numpy *dtype*.
NumbaNotImplementedError is raised on unsupported Numpy dtypes.
gdb(*args)
Calling this function will invoke gdb and attach it to the current process
at the call site. Arguments are strings in the gdb command language syntax
which will be executed by gdb once initialisation has occurred.
gdb_breakpoint()
Calling this function will inject a breakpoint at the call site that is
recognised by both `gdb` and `gdb_init`, this is to allow breaking at
multiple points. gdb will stop in the user defined code just after the frame
employed by the breakpoint returns.
gdb_init(*args)
Calling this function will invoke gdb and attach it to the current process
at the call site, then continue executing the process under gdb's control.
Arguments are strings in the gdb command language syntax which will be
executed by gdb once initialisation has occurred.
get_num_threads()
Get the number of threads used for parallel execution.
By default (if :func:`~.set_num_threads` is never called), all
:obj:`numba.config.NUMBA_NUM_THREADS` threads are used.
This number is less than or equal to the total number of threads that are
launched, :obj:`numba.config.NUMBA_NUM_THREADS`.
This function can be used inside of a jitted function.
Returns
-------
The number of threads.
See Also
--------
set_num_threads, numba.config.NUMBA_NUM_THREADS,
numba.config.NUMBA_DEFAULT_NUM_THREADS, :envvar:`NUMBA_NUM_THREADS`
get_parallel_chunksize()
guvectorize(*args, **kwargs)
guvectorize(ftylist, signature, target='cpu', identity=None, **kws)
A decorator to create NumPy generalized-ufunc object from Numba compiled
code.
Args
-----
ftylist: iterable
An iterable of type signatures, which are either
function type object or a string describing the
function type.
signature: str
A NumPy generalized-ufunc signature.
e.g. "(m, n), (n, p)->(m, p)"
identity: int, str, or None
The identity (or unit) value for the element-wise function
being implemented. Allowed values are None (the default), 0, 1,
and "reorderable".
cache: bool
Turns on caching.
writable_args: tuple
a tuple of indices of input variables that are writable.
target: str
A string for code generation target. Defaults to "cpu".
Returns
--------
A NumPy generalized universal-function
Example
-------
@guvectorize(['void(int32[:,:], int32[:,:], int32[:,:])',
'void(float32[:,:], float32[:,:], float32[:,:])'],
'(x, y),(x, y)->(x, y)')
def add_2d_array(a, b, c):
for i in range(c.shape[0]):
for j in range(c.shape[1]):
c[i, j] = a[i, j] + b[i, j]
jit(signature_or_function=None, locals={}, cache=False, pipeline_class=None, boundscheck=None, **options)
This decorator is used to compile a Python function into native code.
Args
-----
signature_or_function:
The (optional) signature or list of signatures to be compiled.
If not passed, required signatures will be compiled when the
decorated function is called, depending on the argument values.
As a convenience, you can directly pass the function to be compiled
instead.
locals: dict
Mapping of local variable names to Numba types. Used to override the
types deduced by Numba's type inference engine.
pipeline_class: type numba.compiler.CompilerBase
The compiler pipeline type for customizing the compilation stages.
options:
For a cpu target, valid options are:
nopython: bool
Set to True to disable the use of PyObjects and Python API
calls. The default behavior is to allow the use of PyObjects
and Python API. Default value is True.
forceobj: bool
Set to True to force the use of PyObjects for every value.
Default value is False.
looplift: bool
Set to True to enable jitting loops in nopython mode while
leaving surrounding code in object mode. This allows functions
to allocate NumPy arrays and use Python objects, while the
tight loops in the function can still be compiled in nopython
mode. Any arrays that the tight loop uses should be created
before the loop is entered. Default value is True.
error_model: str
The error-model affects divide-by-zero behavior.
Valid values are 'python' and 'numpy'. The 'python' model
raises exception. The 'numpy' model sets the result to
*+/-inf* or *nan*. Default value is 'python'.
inline: str or callable
The inline option will determine whether a function is inlined
at into its caller if called. String options are 'never'
(default) which will never inline, and 'always', which will
always inline. If a callable is provided it will be called with
the call expression node that is requesting inlining, the
caller's IR and callee's IR as arguments, it is expected to
return Truthy as to whether to inline.
NOTE: This inlining is performed at the Numba IR level and is in
no way related to LLVM inlining.
boundscheck: bool or None
Set to True to enable bounds checking for array indices. Out
of bounds accesses will raise IndexError. The default is to
not do bounds checking. If False, bounds checking is disabled,
out of bounds accesses can produce garbage results or segfaults.
However, enabling bounds checking will slow down typical
functions, so it is recommended to only use this flag for
debugging. You can also set the NUMBA_BOUNDSCHECK environment
variable to 0 or 1 to globally override this flag. The default
value is None, which under normal execution equates to False,
but if debug is set to True then bounds checking will be
enabled.
Returns
--------
A callable usable as a compiled function. Actual compiling will be
done lazily if no explicit signatures are passed.
Examples
--------
The function can be used in the following ways:
1) jit(signatures, **targetoptions) -> jit(function)
Equivalent to:
d = dispatcher(function, targetoptions)
for signature in signatures:
d.compile(signature)
Create a dispatcher object for a python function. Then, compile
the function with the given signature(s).
Example:
@jit("int32(int32, int32)")
def foo(x, y):
return x + y
@jit(["int32(int32, int32)", "float32(float32, float32)"])
def bar(x, y):
return x + y
2) jit(function, **targetoptions) -> dispatcher
Create a dispatcher function object that specializes at call site.
Examples:
@jit
def foo(x, y):
return x + y
@jit(nopython=True)
def bar(x, y):
return x + y
jit_module(**kwargs)
Automatically ``jit``-wraps functions defined in a Python module
Note that ``jit_module`` should only be called at the end of the module to
be jitted. In addition, only functions which are defined in the module
``jit_module`` is called from are considered for automatic jit-wrapping.
See the Numba documentation for more information about what can/cannot be
jitted.
:param kwargs: Keyword arguments to pass to ``jit`` such as ``nopython``
or ``error_model``.
literal_unroll(container)
njit(*args, **kws)
Equivalent to jit(nopython=True)
See documentation for jit function/decorator for full description.
set_num_threads(n)
Set the number of threads to use for parallel execution.
By default, all :obj:`numba.config.NUMBA_NUM_THREADS` threads are used.
This functionality works by masking out threads that are not used.
Therefore, the number of threads *n* must be less than or equal to
:obj:`~.NUMBA_NUM_THREADS`, the total number of threads that are launched.
See its documentation for more details.
This function can be used inside of a jitted function.
Parameters
----------
n: The number of threads. Must be between 1 and NUMBA_NUM_THREADS.
See Also
--------
get_num_threads, numba.config.NUMBA_NUM_THREADS,
numba.config.NUMBA_DEFAULT_NUM_THREADS, :envvar:`NUMBA_NUM_THREADS`
set_parallel_chunksize(n)
stencil(func_or_mode='constant', **options)
typeof(val, purpose=<Purpose.argument: 1>)
Get the Numba type of a Python value for the given purpose.
vectorize(ftylist_or_function=(), **kws)
vectorize(ftylist_or_function=(), target='cpu', identity=None, **kws)
A decorator that creates a NumPy ufunc object using Numba compiled
code. When no arguments or only keyword arguments are given,
vectorize will return a Numba dynamic ufunc (DUFunc) object, where
compilation/specialization may occur at call-time.
Args
-----
ftylist_or_function: function or iterable
When the first argument is a function, signatures are dealt
with at call-time.
When the first argument is an iterable of type signatures,
which are either function type object or a string describing
the function type, signatures are finalized at decoration
time.
Keyword Args
------------
target: str
A string for code generation target. Default to "cpu".
identity: int, str, or None
The identity (or unit) value for the element-wise function
being implemented. Allowed values are None (the default), 0, 1,
and "reorderable".
cache: bool
Turns on caching.
Returns
--------
A NumPy universal function
Examples
-------
@vectorize(['float32(float32, float32)',
'float64(float64, float64)'], identity=0)
def sum(a, b):
return a + b
@vectorize
def sum(a, b):
return a + b
@vectorize(identity=1)
def mul(a, b):
return a * b
DATA
__all__ = ['cfunc', 'from_dtype', 'guvectorize', 'jit', 'experimental'...
b1 = bool
bool = bool
bool_ = bool
boolean = bool
byte = uint8
c16 = complex128
c8 = complex64
char = int8
complex128 = complex128
complex64 = complex64
double = float64
f4 = float32
f8 = float64
ffi = ffi
ffi_forced_object = ffi_forced_object
float32 = float32
float64 = float64
i1 = int8
i2 = int16
i4 = int32
i8 = int64
int16 = int16
int32 = int32
int64 = int64
int8 = int8
int_ = int64
intc = int32
intp = int64
long_ = int64
longlong = int64
none = none
objmode = <numba.core.withcontexts._ObjModeContextType object>
parallel_chunksize = <numba.core.withcontexts._ParallelChunksize objec...
short = int16
size_t = uint64
ssize_t = int64
u1 = uint8
u2 = uint16
u4 = uint32
u8 = uint64
uchar = uint8
uint = uint64
uint16 = uint16
uint32 = uint32
uint64 = uint64
uint8 = uint8
uintc = uint32
uintp = uint64
ulong = uint64
ulonglong = uint64
ushort = uint16
void = none
VERSION
0.61.0
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\__init__.py
numba.objmode
Python Library Documentation: _ObjModeContextType in module numba.core.withcontexts object class _ObjModeContextType(WithContext) | Creates a contextmanager to be used inside jitted functions to enter | *object-mode* for using interpreter features. The body of the with-context | is lifted into a function that is compiled in *object-mode*. This | transformation process is limited and cannot process all possible | Python code. However, users can wrap complicated logic in another | Python function, which will then be executed by the interpreter. | | Use this as a function that takes keyword arguments only. | The argument names must correspond to the output variables from the | with-block. Their respective values can be: | | 1. strings representing the expected types; i.e. ``"float32"``. | 2. compile-time bound global or nonlocal variables referring to the | expected type. The variables are read at compile time. | | When exiting the with-context, the output variables are converted | to the expected nopython types according to the annotation. This process | is the same as passing Python objects into arguments of a nopython | function. | | Example:: | | import numpy as np | from numba import njit, objmode, types | | def bar(x): | # This code is executed by the interpreter. | return np.asarray(list(reversed(x.tolist()))) | | # Output type as global variable | out_ty = types.intp[:] | | @njit | def foo(): | x = np.arange(5) | y = np.zeros_like(x) | with objmode(y='intp[:]', z=out_ty): # annotate return type | # this region is executed by object-mode. | y += bar(x) | z = y | return y, z | | .. note:: Known limitations: | | - with-block cannot use incoming list objects. | - with-block cannot use incoming function objects. | - with-block cannot ``yield``, ``break``, ``return`` or ``raise`` such that the execution will leave the with-block immediately. | - with-block cannot contain `with` statements. | - random number generator states do not synchronize; i.e. nopython-mode and object-mode uses different RNG states. | | .. note:: When used outside of no-python mode, the context-manager has no | effect. | | .. warning:: This feature is experimental. The supported features may | change with or without notice. | | Method resolution order: | _ObjModeContextType | WithContext | builtins.object | | Methods defined here: | | __call__(self, *args, **kwargs) | Call self as a function. | | mutate_with_body(self, func_ir, blocks, blk_start, blk_end, body_blocks, dispatcher_factory, extra) | Mutate the *blocks* to implement this contextmanager. | | Parameters | ---------- | func_ir : FunctionIR | blocks : dict[ir.Block] | blk_start, blk_end : int | labels of the starting and ending block of the context-manager. | body_block: sequence[int] | A sequence of int's representing labels of the with-body | dispatcher_factory : callable | A callable that takes a `FunctionIR` and returns a `Dispatcher`. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | is_callable = True | | ---------------------------------------------------------------------- | Methods inherited from WithContext: | | __enter__(self) | | __exit__(self, typ, val, tb) | | ---------------------------------------------------------------------- | Data descriptors inherited from WithContext: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
numba.optional
Python Library Documentation: class Optional in module numba.core.types.misc
class Optional(numba.core.types.abstract.Type)
| Optional(*args, **kwargs)
|
| Type class for optional types, i.e. union { some type, None }
|
| Method resolution order:
| Optional
| numba.core.types.abstract.Type
| builtins.object
|
| Methods defined here:
|
| __init__(self, typ)
| Initialize self. See help(type(self)) for accurate signature.
|
| can_convert_from(self, typingctx, other)
| Similar to *can_convert_to*, but in reverse. Only needed if
| the type provides conversion from other types.
|
| can_convert_to(self, typingctx, other)
| Check whether this type can be converted to the *other*.
| If successful, must return a string describing the conversion, e.g.
| "exact", "promote", "unsafe", "safe"; otherwise None is returned.
|
| unify(self, typingctx, other)
| Try to unify this type with the *other*. A third type must
| be returned, or None if unification is not possible.
| Only override this if the coercion logic cannot be expressed
| as simple casting rules.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| key
| A property used for __eq__, __ne__ and __hash__. Can be overridden
| in subclasses.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from numba.core.types.abstract.Type:
|
| __call__(self, *args)
| Call self as a function.
|
| __eq__(self, other)
| Return self==value.
|
| __getitem__(self, args)
| Return an array of this type.
|
| __hash__(self)
| Return hash(self).
|
| __ne__(self, other)
| Return self!=value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __str__(self)
| Return str(self).
|
| augment(self, other)
| Augment this type with the *other*. Return the augmented type,
| or None if not supported.
|
| cast_python_value(self, args)
|
| dump(self, tab='')
|
| is_precise(self)
| Whether this type is precise, i.e. can be part of a successful
| type inference. Default implementation returns True.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from numba.core.types.abstract.Type:
|
| is_internal
| Returns True if this class is an internally defined Numba type by
| virtue of the module in which it is instantiated, False else.
|
| mangling_args
| Returns `(basename, args)` where `basename` is the name of the type
| and `args` is a sequence of parameters of the type.
|
| Subclass should override to specialize the behavior.
| By default, this returns `(self.name, ())`.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from numba.core.types.abstract.Type:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from numba.core.types.abstract.Type:
|
| mutable = False
|
| reflected = False
numba.parallel_chunksize
Python Library Documentation: _ParallelChunksize in module numba.core.withcontexts object class _ParallelChunksize(WithContext) | Method resolution order: | _ParallelChunksize | WithContext | builtins.object | | Methods defined here: | | __call__(self, *args, **kwargs) | Act like a function and enforce the contract that | setting the chunksize takes only one integer input. | | __enter__(self) | | __exit__(self, typ, val, tb) | | mutate_with_body(self, func_ir, blocks, blk_start, blk_end, body_blocks, dispatcher_factory, extra) | Mutate the *blocks* to implement this contextmanager. | | Parameters | ---------- | func_ir : FunctionIR | blocks : dict[ir.Block] | blk_start, blk_end : int | labels of the starting and ending block of the context-manager. | body_block: sequence[int] | A sequence of int's representing labels of the with-body | dispatcher_factory : callable | A callable that takes a `FunctionIR` and returns a `Dispatcher`. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | is_callable = True | | ---------------------------------------------------------------------- | Data descriptors inherited from WithContext: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
numba.parfors
Python Library Documentation: package numba.parfors in numba
NAME
numba.parfors
PACKAGE CONTENTS
array_analysis
parfor
parfor_lowering
parfor_lowering_utils
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\parfors\__init__.py
numba.platform
Python Library Documentation: module platform
NAME
platform
MODULE REFERENCE
https://docs.python.org/3.12/library/platform.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module tries to retrieve as much platform-identifying data as
possible. It makes this information available via function APIs.
If called from the command line, it prints the platform
information concatenated as single string to stdout. The output
format is usable as part of a filename.
CLASSES
uname_result_base(builtins.tuple)
uname_result
class uname_result(uname_result_base)
| uname_result(system, node, release, version, machine)
|
| A uname_result that's largely compatible with a
| simple namedtuple except that 'processor' is
| resolved late and cached to avoid calling "uname"
| except when needed.
|
| Method resolution order:
| uname_result
| uname_result_base
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| processor = <functools.cached_property object>
| __getitem__(self, key)
| Return self[key].
|
| __iter__(self)
| Implement iter(self).
|
| __len__(self)
| Return len(self).
|
| __reduce__(self)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| _make(iterable)
| Make a new uname_result_base object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| _fields = ('system', 'node', 'release', 'version', 'machine', 'process...
|
| ----------------------------------------------------------------------
| Methods inherited from uname_result_base:
|
| __getnewargs__(self) from collections.uname_result_base
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections.uname_result_base
| Return a nicely formatted representation string
|
| _asdict(self) from collections.uname_result_base
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections.uname_result_base
| Return a new uname_result_base object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Static methods inherited from uname_result_base:
|
| __new__(_cls, system, node, release, version, machine) from namedtuple_uname_result_base.uname_result_base
| Create new instance of uname_result_base(system, node, release, version, machine)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from uname_result_base:
|
| system
| Alias for field number 0
|
| node
| Alias for field number 1
|
| release
| Alias for field number 2
|
| version
| Alias for field number 3
|
| machine
| Alias for field number 4
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from uname_result_base:
|
| __match_args__ = ('system', 'node', 'release', 'version', 'machine')
|
| _field_defaults = {}
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
FUNCTIONS
architecture(executable='C:\\Users\\Youse\\AppData\\Local\\Programs\\Python\\Python312\\python.exe', bits='', linkage='')
Queries the given executable (defaults to the Python interpreter
binary) for various architecture information.
Returns a tuple (bits, linkage) which contains information about
the bit architecture and the linkage format used for the
executable. Both values are returned as strings.
Values that cannot be determined are returned as given by the
parameter presets. If bits is given as '', the sizeof(pointer)
(or sizeof(long) on Python version < 1.5.2) is used as
indicator for the supported pointer size.
The function relies on the system's "file" command to do the
actual work. This is available on most if not all Unix
platforms. On some non-Unix platforms where the "file" command
does not exist and the executable is set to the Python interpreter
binary defaults from _default_architecture are used.
freedesktop_os_release()
Return operation system identification from freedesktop.org os-release
java_ver(release='', vendor='', vminfo=('', '', ''), osinfo=('', '', ''))
Version interface for Jython.
Returns a tuple (release, vendor, vminfo, osinfo) with vminfo being
a tuple (vm_name, vm_release, vm_vendor) and osinfo being a
tuple (os_name, os_version, os_arch).
Values which cannot be determined are set to the defaults
given as parameters (which all default to '').
libc_ver(executable=None, lib='', version='', chunksize=16384)
Tries to determine the libc version that the file executable
(which defaults to the Python interpreter) is linked against.
Returns a tuple of strings (lib,version) which default to the
given parameters in case the lookup fails.
Note that the function has intimate knowledge of how different
libc versions add symbols to the executable and thus is probably
only usable for executables compiled using gcc.
The file is read and scanned in chunks of chunksize bytes.
mac_ver(release='', versioninfo=('', '', ''), machine='')
Get macOS version information and return it as tuple (release,
versioninfo, machine) with versioninfo being a tuple (version,
dev_stage, non_release_version).
Entries which cannot be determined are set to the parameter values
which default to ''. All tuple entries are strings.
machine()
Returns the machine type, e.g. 'i386'
An empty string is returned if the value cannot be determined.
node()
Returns the computer's network name (which may not be fully
qualified)
An empty string is returned if the value cannot be determined.
platform(aliased=False, terse=False)
Returns a single string identifying the underlying platform
with as much useful information as possible (but no more :).
The output is intended to be human readable rather than
machine parseable. It may look different on different
platforms and this is intended.
If "aliased" is true, the function will use aliases for
various platforms that report system names which differ from
their common names, e.g. SunOS will be reported as
Solaris. The system_alias() function is used to implement
this.
Setting terse to true causes the function to return only the
absolute minimum information needed to identify the platform.
processor()
Returns the (true) processor name, e.g. 'amdk6'
An empty string is returned if the value cannot be
determined. Note that many platforms do not provide this
information or simply return the same value as for machine(),
e.g. NetBSD does this.
python_branch()
Returns a string identifying the Python implementation
branch.
For CPython this is the SCM branch from which the
Python binary was built.
If not available, an empty string is returned.
python_build()
Returns a tuple (buildno, builddate) stating the Python
build number and date as strings.
python_compiler()
Returns a string identifying the compiler used for compiling
Python.
python_implementation()
Returns a string identifying the Python implementation.
Currently, the following implementations are identified:
'CPython' (C implementation of Python),
'Jython' (Java implementation of Python),
'PyPy' (Python implementation of Python).
python_revision()
Returns a string identifying the Python implementation
revision.
For CPython this is the SCM revision from which the
Python binary was built.
If not available, an empty string is returned.
python_version()
Returns the Python version as string 'major.minor.patchlevel'
Note that unlike the Python sys.version, the returned value
will always include the patchlevel (it defaults to 0).
python_version_tuple()
Returns the Python version as tuple (major, minor, patchlevel)
of strings.
Note that unlike the Python sys.version, the returned value
will always include the patchlevel (it defaults to 0).
release()
Returns the system's release, e.g. '2.2.0' or 'NT'
An empty string is returned if the value cannot be determined.
system()
Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'.
An empty string is returned if the value cannot be determined.
system_alias(system, release, version)
Returns (system, release, version) aliased to common
marketing names used for some systems.
It also does some reordering of the information in some cases
where it would otherwise cause confusion.
uname()
Fairly portable uname interface. Returns a tuple
of strings (system, node, release, version, machine, processor)
identifying the underlying platform.
Note that unlike the os.uname function this also returns
possible processor information as an additional tuple entry.
Entries which cannot be determined are set to ''.
version()
Returns the system's release version, e.g. '#3 on degas'
An empty string is returned if the value cannot be determined.
win32_edition()
win32_is_iot()
win32_ver(release='', version='', csd='', ptype='')
DATA
__copyright__ = '\n Copyright (c) 1999-2000, Marc-Andre Lemburg... ...
VERSION
1.0.8
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\platform.py
numba.pndindex
Python Library Documentation: function pndindex in module numba.misc.special
pndindex(*args)
Provides an n-dimensional parallel iterator that generates index tuples
for each iteration point. Sequentially, pndindex is identical to np.ndindex.
numba.prange
Python Library Documentation: class prange in module numba.misc.special class prange(builtins.object) | prange(*args) | | Provides a 1D parallel iterator that generates a sequence of integers. | In non-parallel contexts, prange is identical to range. | | Static methods defined here: | | __new__(cls, *args) | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
numba.re
Python Library Documentation: package re
NAME
re - Support for regular expressions (RE).
MODULE REFERENCE
https://docs.python.org/3.12/library/re.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module provides regular expression matching operations similar to
those found in Perl. It supports both 8-bit and Unicode strings; both
the pattern and the strings being processed can contain null bytes and
characters outside the US ASCII range.
Regular expressions can contain both special and ordinary characters.
Most ordinary characters, like "A", "a", or "0", are the simplest
regular expressions; they simply match themselves. You can
concatenate ordinary characters, so last matches the string 'last'.
The special characters are:
"." Matches any character except a newline.
"^" Matches the start of the string.
"$" Matches the end of the string or just before the newline at
the end of the string.
"*" Matches 0 or more (greedy) repetitions of the preceding RE.
Greedy means that it will match as many repetitions as possible.
"+" Matches 1 or more (greedy) repetitions of the preceding RE.
"?" Matches 0 or 1 (greedy) of the preceding RE.
*?,+?,?? Non-greedy versions of the previous three special characters.
{m,n} Matches from m to n repetitions of the preceding RE.
{m,n}? Non-greedy version of the above.
"\\" Either escapes special characters or signals a special sequence.
[] Indicates a set of characters.
A "^" as the first character indicates a complementing set.
"|" A|B, creates an RE that will match either A or B.
(...) Matches the RE inside the parentheses.
The contents can be retrieved or matched later in the string.
(?aiLmsux) The letters set the corresponding flags defined below.
(?:...) Non-grouping version of regular parentheses.
(?P<name>...) The substring matched by the group is accessible by name.
(?P=name) Matches the text matched earlier by the group named name.
(?#...) A comment; ignored.
(?=...) Matches if ... matches next, but doesn't consume the string.
(?!...) Matches if ... doesn't match next.
(?<=...) Matches if preceded by ... (must be fixed length).
(?<!...) Matches if not preceded by ... (must be fixed length).
(?(id/name)yes|no) Matches yes pattern if the group with id/name matched,
the (optional) no pattern otherwise.
The special sequences consist of "\\" and a character from the list
below. If the ordinary character is not on the list, then the
resulting RE will match the second character.
\number Matches the contents of the group of the same number.
\A Matches only at the start of the string.
\Z Matches only at the end of the string.
\b Matches the empty string, but only at the start or end of a word.
\B Matches the empty string, but not at the start or end of a word.
\d Matches any decimal digit; equivalent to the set [0-9] in
bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the whole
range of Unicode digits.
\D Matches any non-digit character; equivalent to [^\d].
\s Matches any whitespace character; equivalent to [ \t\n\r\f\v] in
bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the whole
range of Unicode whitespace characters.
\S Matches any non-whitespace character; equivalent to [^\s].
\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
in bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the
range of Unicode alphanumeric characters (letters plus digits
plus underscore).
With LOCALE, it will match the set [0-9_] plus characters defined
as letters for the current locale.
\W Matches the complement of \w.
\\ Matches a literal backslash.
This module exports the following functions:
match Match a regular expression pattern to the beginning of a string.
fullmatch Match a regular expression pattern to all of a string.
search Search a string for the presence of a pattern.
sub Substitute occurrences of a pattern found in a string.
subn Same as sub, but also return the number of substitutions made.
split Split a string by the occurrences of a pattern.
findall Find all occurrences of a pattern in a string.
finditer Return an iterator yielding a Match object for each match.
compile Compile a pattern into a Pattern object.
purge Clear the regular expression cache.
escape Backslash all non-alphanumerics in a string.
Each function other than purge and escape can take an optional 'flags' argument
consisting of one or more of the following module constants, joined by "|".
A, L, and U are mutually exclusive.
A ASCII For string patterns, make \w, \W, \b, \B, \d, \D
match the corresponding ASCII character categories
(rather than the whole Unicode categories, which is the
default).
For bytes patterns, this flag is the only available
behaviour and needn't be specified.
I IGNORECASE Perform case-insensitive matching.
L LOCALE Make \w, \W, \b, \B, dependent on the current locale.
M MULTILINE "^" matches the beginning of lines (after a newline)
as well as the string.
"$" matches the end of lines (before a newline) as well
as the end of the string.
S DOTALL "." matches any character at all, including the newline.
X VERBOSE Ignore whitespace and comments for nicer looking RE's.
U UNICODE For compatibility only. Ignored for string patterns (it
is the default), and forbidden for bytes patterns.
This module also defines an exception 'error'.
PACKAGE CONTENTS
_casefix
_compiler
_constants
_parser
CLASSES
builtins.Exception(builtins.BaseException)
error
builtins.object
Match
Pattern
enum.IntFlag(builtins.int, enum.ReprEnum, enum.Flag)
RegexFlag
class Match(builtins.object)
| The result of re.match() and re.search().
| Match objects always have a boolean value of True.
|
| Methods defined here:
|
| __copy__(self, /)
|
| __deepcopy__(self, memo, /)
|
| __getitem__(self, key, /)
| Return self[key].
|
| __repr__(self, /)
| Return repr(self).
|
| end(self, group=0, /)
| Return index of the end of the substring matched by group.
|
| expand(self, /, template)
| Return the string obtained by doing backslash substitution on the string template, as done by the sub() method.
|
| group(...)
| group([group1, ...]) -> str or tuple.
| Return subgroup(s) of the match by indices or names.
| For 0 returns the entire match.
|
| groupdict(self, /, default=None)
| Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name.
|
| default
| Is used for groups that did not participate in the match.
|
| groups(self, /, default=None)
| Return a tuple containing all the subgroups of the match, from 1.
|
| default
| Is used for groups that did not participate in the match.
|
| span(self, group=0, /)
| For match object m, return the 2-tuple (m.start(group), m.end(group)).
|
| start(self, group=0, /)
| Return index of the start of the substring matched by group.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| endpos
| The index into the string beyond which the RE engine will not go.
|
| lastgroup
| The name of the last matched capturing group.
|
| lastindex
| The integer index of the last matched capturing group.
|
| pos
| The index into the string at which the RE engine started looking for a match.
|
| re
| The regular expression object.
|
| regs
|
| string
| The string passed to match() or search().
class Pattern(builtins.object)
| Compiled regular expression object.
|
| Methods defined here:
|
| __copy__(self, /)
|
| __deepcopy__(self, memo, /)
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __repr__(self, /)
| Return repr(self).
|
| findall(self, /, string, pos=0, endpos=9223372036854775807)
| Return a list of all non-overlapping matches of pattern in string.
|
| finditer(self, /, string, pos=0, endpos=9223372036854775807)
| Return an iterator over all non-overlapping matches for the RE pattern in string.
|
| For each match, the iterator returns a match object.
|
| fullmatch(self, /, string, pos=0, endpos=9223372036854775807)
| Matches against all of the string.
|
| match(self, /, string, pos=0, endpos=9223372036854775807)
| Matches zero or more characters at the beginning of the string.
|
| scanner(self, /, string, pos=0, endpos=9223372036854775807)
|
| search(self, /, string, pos=0, endpos=9223372036854775807)
| Scan through string looking for a match, and return a corresponding match object instance.
|
| Return None if no position in the string matches.
|
| split(self, /, string, maxsplit=0)
| Split string by the occurrences of pattern.
|
| sub(self, /, repl, string, count=0)
| Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
|
| subn(self, /, repl, string, count=0)
| Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| flags
| The regex matching flags.
|
| groupindex
| A dictionary mapping group names to group numbers.
|
| groups
| The number of capturing groups in the pattern.
|
| pattern
| The pattern string from which the RE object was compiled.
class RegexFlag(enum.IntFlag)
| RegexFlag(*values)
|
| An enumeration.
|
| Method resolution order:
| RegexFlag
| enum.IntFlag
| builtins.int
| enum.ReprEnum
| enum.Flag
| enum.Enum
| builtins.object
|
| Methods defined here:
|
| __and__(self, other) from enum.Flag
|
| __format__(self, format_spec, /) from builtins.int
| Convert to a string according to format_spec.
|
| __invert__(self) from enum.Flag
|
| __new__(cls, value) from enum.Enum
| Create and return a new object. See help(type) for accurate signature.
|
| __or__(self, other) from enum.Flag
| Return self|value.
|
| __rand__ = __and__(self, other)
|
| __repr__ = global_flag_repr(self) from enum
| use module.flag_name instead of class.flag_name
|
| the module is the last module in case of a multi-module name
|
| __ror__ = __or__(self, other)
|
| __rxor__ = __xor__(self, other)
|
| __str__(self, /) from builtins.object
| Return str(self).
|
| __xor__(self, other) from enum.Flag
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| ASCII = re.ASCII
|
| DEBUG = re.DEBUG
|
| DOTALL = re.DOTALL
|
| IGNORECASE = re.IGNORECASE
|
| LOCALE = re.LOCALE
|
| MULTILINE = re.MULTILINE
|
| TEMPLATE = re.TEMPLATE
|
| UNICODE = re.UNICODE
|
| VERBOSE = re.VERBOSE
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.int:
|
| __abs__(self, /)
| abs(self)
|
| __add__(self, value, /)
| Return self+value.
|
| __bool__(self, /)
| True if self else False
|
| __ceil__(...)
| Ceiling of an Integral returns itself.
|
| __divmod__(self, value, /)
| Return divmod(self, value).
|
| __eq__(self, value, /)
| Return self==value.
|
| __float__(self, /)
| float(self)
|
| __floor__(...)
| Flooring an Integral returns itself.
|
| __floordiv__(self, value, /)
| Return self//value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __index__(self, /)
| Return self converted to an integer, if self is suitable for use as an index into a list.
|
| __int__(self, /)
| int(self)
|
| __le__(self, value, /)
| Return self<=value.
|
| __lshift__(self, value, /)
| Return self<<value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __neg__(self, /)
| -self
|
| __pos__(self, /)
| +self
|
| __pow__(self, value, mod=None, /)
| Return pow(self, value, mod).
|
| __radd__(self, value, /)
| Return value+self.
|
| __rdivmod__(self, value, /)
| Return divmod(value, self).
|
| __rfloordiv__(self, value, /)
| Return value//self.
|
| __rlshift__(self, value, /)
| Return value<<self.
|
| __rmod__(self, value, /)
| Return value%self.
|
| __rmul__(self, value, /)
| Return value*self.
|
| __round__(...)
| Rounding an Integral returns itself.
|
| Rounding with an ndigits argument also returns an integer.
|
| __rpow__(self, value, mod=None, /)
| Return pow(value, self, mod).
|
| __rrshift__(self, value, /)
| Return value>>self.
|
| __rshift__(self, value, /)
| Return self>>value.
|
| __rsub__(self, value, /)
| Return value-self.
|
| __rtruediv__(self, value, /)
| Return value/self.
|
| __sizeof__(self, /)
| Returns size in memory, in bytes.
|
| __sub__(self, value, /)
| Return self-value.
|
| __truediv__(self, value, /)
| Return self/value.
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| as_integer_ratio(self, /)
| Return a pair of integers, whose ratio is equal to the original int.
|
| The ratio is in lowest terms and has a positive denominator.
|
| >>> (10).as_integer_ratio()
| (10, 1)
| >>> (-10).as_integer_ratio()
| (-10, 1)
| >>> (0).as_integer_ratio()
| (0, 1)
|
| bit_count(self, /)
| Number of ones in the binary representation of the absolute value of self.
|
| Also known as the population count.
|
| >>> bin(13)
| '0b1101'
| >>> (13).bit_count()
| 3
|
| bit_length(self, /)
| Number of bits necessary to represent self in binary.
|
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| is_integer(self, /)
| Returns True. Exists for duck type compatibility with float.is_integer.
|
| to_bytes(self, /, length=1, byteorder='big', *, signed=False)
| Return an array of bytes representing an integer.
|
| length
| Length of bytes object to use. An OverflowError is raised if the
| integer is not representable with the given number of bytes. Default
| is length 1.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Determines whether two's complement is used to represent the integer.
| If signed is False and a negative integer is given, an OverflowError
| is raised.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.int:
|
| from_bytes(bytes, byteorder='big', *, signed=False)
| Return the integer represented by the given array of bytes.
|
| bytes
| Holds the array of bytes to convert. The argument must either
| support the buffer protocol or be an iterable object producing bytes.
| Bytes and bytearray are examples of built-in objects that support the
| buffer protocol.
| byteorder
| The byte order used to represent the integer. If byteorder is 'big',
| the most significant byte is at the beginning of the byte array. If
| byteorder is 'little', the most significant byte is at the end of the
| byte array. To request the native byte order of the host system, use
| `sys.byteorder' as the byte order value. Default is to use 'big'.
| signed
| Indicates whether two's complement is used to represent the integer.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.int:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Flag:
|
| __contains__(self, other)
| Returns True if self has at least the same flags set as other.
|
| __iter__(self)
| Returns flags in definition order.
|
| __len__(self)
| Return the number of members (no aliases)
|
| ----------------------------------------------------------------------
| Methods inherited from enum.Enum:
|
| __dir__(self)
| Returns public methods and other interesting attributes.
|
| __init__(self, *args, **kwds)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce_ex__(self, proto)
| Helper for pickle.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
|
| name
| The name of the Enum member.
|
| value
| The value of the Enum member.
|
| ----------------------------------------------------------------------
| Static methods inherited from enum.EnumType:
|
| __getitem__(name)
| Return the member matching `name`.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|
| __members__
| Returns a mapping of member name->value.
|
| This mapping lists all enum members, including aliases. Note that this
| is a read-only view of the internal mapping.
class error(builtins.Exception)
| error(msg, pattern=None, pos=None)
|
| Exception raised for invalid regular expressions.
|
| Attributes:
|
| msg: The unformatted error message
| pattern: The regular expression pattern
| pos: The index in the pattern where compilation failed (may be None)
| lineno: The line corresponding to pos (may be None)
| colno: The column corresponding to pos (may be None)
|
| Method resolution order:
| error
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, msg, pattern=None, pos=None) from re._constants.error
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
compile(pattern, flags=0)
Compile a regular expression pattern, returning a Pattern object.
escape(pattern)
Escape special characters in a string.
findall(pattern, string, flags=0)
Return a list of all non-overlapping matches in the string.
If one or more capturing groups are present in the pattern, return
a list of groups; this will be a list of tuples if the pattern
has more than one group.
Empty matches are included in the result.
finditer(pattern, string, flags=0)
Return an iterator over all non-overlapping matches in the
string. For each match, the iterator returns a Match object.
Empty matches are included in the result.
fullmatch(pattern, string, flags=0)
Try to apply the pattern to all of the string, returning
a Match object, or None if no match was found.
match(pattern, string, flags=0)
Try to apply the pattern at the start of the string, returning
a Match object, or None if no match was found.
purge()
Clear the regular expression caches
search(pattern, string, flags=0)
Scan through string looking for a match to the pattern, returning
a Match object, or None if no match was found.
split(pattern, string, maxsplit=0, flags=0)
Split the source string by the occurrences of the pattern,
returning a list containing the resulting substrings. If
capturing parentheses are used in pattern, then the text of all
groups in the pattern are also returned as part of the resulting
list. If maxsplit is nonzero, at most maxsplit splits occur,
and the remainder of the string is returned as the final element
of the list.
sub(pattern, repl, string, count=0, flags=0)
Return the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in string by the
replacement repl. repl can be either a string or a callable;
if a string, backslash escapes in it are processed. If it is
a callable, it's passed the Match object and must return
a replacement string to be used.
subn(pattern, repl, string, count=0, flags=0)
Return a 2-tuple containing (new_string, number).
new_string is the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in the source
string by the replacement repl. number is the number of
substitutions that were made. repl can be either a string or a
callable; if a string, backslash escapes in it are processed.
If it is a callable, it's passed the Match object and must
return a replacement string to be used.
template(pattern, flags=0)
Compile a template pattern, returning a Pattern object, deprecated
DATA
A = re.ASCII
ASCII = re.ASCII
DOTALL = re.DOTALL
I = re.IGNORECASE
IGNORECASE = re.IGNORECASE
L = re.LOCALE
LOCALE = re.LOCALE
M = re.MULTILINE
MULTILINE = re.MULTILINE
NOFLAG = re.NOFLAG
S = re.DOTALL
U = re.UNICODE
UNICODE = re.UNICODE
VERBOSE = re.VERBOSE
X = re.VERBOSE
__all__ = ['match', 'fullmatch', 'search', 'sub', 'subn', 'split', 'fi...
VERSION
2.2.1
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\re\__init__.py
numba.set_num_threads
Python Library Documentation: function set_num_threads in module numba.np.ufunc.parallel
set_num_threads(n)
Set the number of threads to use for parallel execution.
By default, all :obj:`numba.config.NUMBA_NUM_THREADS` threads are used.
This functionality works by masking out threads that are not used.
Therefore, the number of threads *n* must be less than or equal to
:obj:`~.NUMBA_NUM_THREADS`, the total number of threads that are launched.
See its documentation for more details.
This function can be used inside of a jitted function.
Parameters
----------
n: The number of threads. Must be between 1 and NUMBA_NUM_THREADS.
See Also
--------
get_num_threads, numba.config.NUMBA_NUM_THREADS,
numba.config.NUMBA_DEFAULT_NUM_THREADS, :envvar:`NUMBA_NUM_THREADS`
numba.set_parallel_chunksize
Python Library Documentation: function set_parallel_chunksize in module numba.np.ufunc.parallel set_parallel_chunksize(n)
numba.short
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.size_t
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.ssize_t
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.stencil
Python Library Documentation: function stencil in module numba.stencils.stencil stencil(func_or_mode='constant', **options)
numba.stencils
Python Library Documentation: package numba.stencils in numba
NAME
numba.stencils
PACKAGE CONTENTS
stencil
stencilparfor
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\stencils\__init__.py
numba.sys
Python Library Documentation: built-in module sys
NAME
sys
MODULE REFERENCE
https://docs.python.org/3.12/library/sys.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module provides access to some objects used or maintained by the
interpreter and to functions that interact strongly with the interpreter.
Dynamic objects:
argv -- command line arguments; argv[0] is the script pathname if known
path -- module search path; path[0] is the script directory, else ''
modules -- dictionary of loaded modules
displayhook -- called to show results in an interactive session
excepthook -- called to handle any uncaught exception other than SystemExit
To customize printing in an interactive session or to install a custom
top-level exception handler, assign other functions to replace these.
stdin -- standard input file object; used by input()
stdout -- standard output file object; used by print()
stderr -- standard error object; used for error messages
By assigning other file objects (or objects that behave like files)
to these, it is possible to redirect all of the interpreter's I/O.
last_exc - the last uncaught exception
Only available in an interactive session after a
traceback has been printed.
last_type -- type of last uncaught exception
last_value -- value of last uncaught exception
last_traceback -- traceback of last uncaught exception
These three are the (deprecated) legacy representation of last_exc.
Static objects:
builtin_module_names -- tuple of module names built into this interpreter
copyright -- copyright notice pertaining to this interpreter
exec_prefix -- prefix used to find the machine-specific Python library
executable -- absolute path of the executable binary of the Python interpreter
float_info -- a named tuple with information about the float implementation.
float_repr_style -- string indicating the style of repr() output for floats
hash_info -- a named tuple with information about the hash algorithm.
hexversion -- version information encoded as a single integer
implementation -- Python implementation information.
int_info -- a named tuple with information about the int implementation.
maxsize -- the largest supported length of containers.
maxunicode -- the value of the largest Unicode code point
platform -- platform identifier
prefix -- prefix used to find the Python library
thread_info -- a named tuple with information about the thread implementation.
version -- the version of this interpreter as a string
version_info -- version information as a named tuple
dllhandle -- [Windows only] integer handle of the Python DLL
winver -- [Windows only] version number of the Python DLL
_enablelegacywindowsfsencoding -- [Windows only]
__stdin__ -- the original stdin; don't touch!
__stdout__ -- the original stdout; don't touch!
__stderr__ -- the original stderr; don't touch!
__displayhook__ -- the original displayhook; don't touch!
__excepthook__ -- the original excepthook; don't touch!
Functions:
displayhook() -- print an object to the screen, and save it in builtins._
excepthook() -- print an exception and its traceback to sys.stderr
exception() -- return the current thread's active exception
exc_info() -- return information about the current thread's active exception
exit() -- exit the interpreter by raising SystemExit
getdlopenflags() -- returns flags to be used for dlopen() calls
getprofile() -- get the global profiling function
getrefcount() -- return the reference count for an object (plus one :-)
getrecursionlimit() -- return the max recursion depth for the interpreter
getsizeof() -- return the size of an object in bytes
gettrace() -- get the global debug tracing function
setdlopenflags() -- set the flags to be used for dlopen() calls
setprofile() -- set the global profiling function
setrecursionlimit() -- set the max recursion depth for the interpreter
settrace() -- set the global debug tracing function
SUBMODULES
monitoring
FUNCTIONS
__breakpointhook__ = breakpointhook(...)
breakpointhook(*args, **kws)
This hook function is called by built-in breakpoint().
__displayhook__ = displayhook(object, /)
Print an object to sys.stdout and also save it in builtins._
__excepthook__ = excepthook(exctype, value, traceback, /)
Handle an exception by displaying it with a traceback on sys.stderr.
__unraisablehook__ = unraisablehook(unraisable, /)
Handle an unraisable exception.
The unraisable argument has the following attributes:
* exc_type: Exception type.
* exc_value: Exception value, can be None.
* exc_traceback: Exception traceback, can be None.
* err_msg: Error message, can be None.
* object: Object causing the exception, can be None.
activate_stack_trampoline(backend, /)
Activate stack profiler trampoline *backend*.
addaudithook(hook)
Adds a new audit hook callback.
audit(...)
audit(event, *args)
Passes the event to any audit hooks that are attached.
breakpointhook(...)
breakpointhook(*args, **kws)
This hook function is called by built-in breakpoint().
call_tracing(func, args, /)
Call func(*args), while tracing is enabled.
The tracing state is saved, and restored afterwards. This is intended
to be called from a debugger from a checkpoint, to recursively debug
some other code.
deactivate_stack_trampoline()
Deactivate the current stack profiler trampoline backend.
If no stack profiler is activated, this function has no effect.
displayhook(object, /)
Print an object to sys.stdout and also save it in builtins._
exc_info()
Return current exception information: (type, value, traceback).
Return information about the most recent exception caught by an except
clause in the current stack frame or in an older stack frame.
excepthook(exctype, value, traceback, /)
Handle an exception by displaying it with a traceback on sys.stderr.
exception()
Return the current exception.
Return the most recent exception caught by an except clause
in the current stack frame or in an older stack frame, or None
if no such exception exists.
exit(status=None, /)
Exit the interpreter by raising SystemExit(status).
If the status is omitted or None, it defaults to zero (i.e., success).
If the status is an integer, it will be used as the system exit status.
If it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure).
get_asyncgen_hooks()
Return the installed asynchronous generators hooks.
This returns a namedtuple of the form (firstiter, finalizer).
get_coroutine_origin_tracking_depth()
Check status of origin tracking for coroutine objects in this thread.
get_int_max_str_digits()
Return the maximum string digits limit for non-binary int<->str conversions.
getallocatedblocks()
Return the number of memory blocks currently allocated.
getdefaultencoding()
Return the current default encoding used by the Unicode implementation.
getfilesystemencodeerrors()
Return the error mode used Unicode to OS filename conversion.
getfilesystemencoding()
Return the encoding used to convert Unicode filenames to OS filenames.
getprofile()
Return the profiling function set with sys.setprofile.
See the profiler chapter in the library manual.
getrecursionlimit()
Return the current value of the recursion limit.
The recursion limit is the maximum depth of the Python interpreter
stack. This limit prevents infinite recursion from causing an overflow
of the C stack and crashing Python.
getrefcount(object, /)
Return the reference count of object.
The count returned is generally one higher than you might expect,
because it includes the (temporary) reference as an argument to
getrefcount().
getsizeof(...)
getsizeof(object [, default]) -> int
Return the size of object in bytes.
getswitchinterval()
Return the current thread switch interval; see sys.setswitchinterval().
gettrace()
Return the global debug tracing function set with sys.settrace.
See the debugger chapter in the library manual.
getunicodeinternedsize()
Return the number of elements of the unicode interned dictionary
getwindowsversion()
Return info about the running version of Windows as a named tuple.
The members are named: major, minor, build, platform, service_pack,
service_pack_major, service_pack_minor, suite_mask, product_type and
platform_version. For backward compatibility, only the first 5 items
are available by indexing. All elements are numbers, except
service_pack and platform_type which are strings, and platform_version
which is a 3-tuple. Platform is always 2. Product_type may be 1 for a
workstation, 2 for a domain controller, 3 for a server.
Platform_version is a 3-tuple containing a version number that is
intended for identifying the OS rather than feature detection.
intern(string, /)
``Intern'' the given string.
This enters the string in the (global) table of interned strings whose
purpose is to speed up dictionary lookups. Return the string itself or
the previously interned string object with the same value.
is_finalizing()
Return True if Python is exiting.
is_stack_trampoline_active()
Return *True* if a stack profiler trampoline is active.
set_asyncgen_hooks(...)
set_asyncgen_hooks([firstiter] [, finalizer])
Set a finalizer for async generators objects.
set_coroutine_origin_tracking_depth(depth)
Enable or disable origin tracking for coroutine objects in this thread.
Coroutine objects will track 'depth' frames of traceback information
about where they came from, available in their cr_origin attribute.
Set a depth of 0 to disable.
set_int_max_str_digits(maxdigits)
Set the maximum string digits limit for non-binary int<->str conversions.
setprofile(...)
setprofile(function)
Set the profiling function. It will be called on each function call
and return. See the profiler chapter in the library manual.
setrecursionlimit(limit, /)
Set the maximum depth of the Python interpreter stack to n.
This limit prevents infinite recursion from causing an overflow of the C
stack and crashing Python. The highest possible limit is platform-
dependent.
setswitchinterval(interval, /)
Set the ideal thread switching delay inside the Python interpreter.
The actual frequency of switching threads can be lower if the
interpreter executes long sequences of uninterruptible code
(this is implementation-specific and workload-dependent).
The parameter must represent the desired switching delay in seconds
A typical value is 0.005 (5 milliseconds).
settrace(...)
settrace(function)
Set the global debug tracing function. It will be called on each
function call. See the debugger chapter in the library manual.
unraisablehook(unraisable, /)
Handle an unraisable exception.
The unraisable argument has the following attributes:
* exc_type: Exception type.
* exc_value: Exception value, can be None.
* exc_traceback: Exception traceback, can be None.
* err_msg: Error message, can be None.
* object: Object causing the exception, can be None.
DATA
__stderr__ = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1...
__stdin__ = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8...
__stdout__ = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1...
api_version = 1013
argv = [r'f:\JoeyCodes\PyDocs\py_docs.py', '--worker', 'numba', r'F:\J...
base_exec_prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Pyth...
base_prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312...
builtin_module_names = ('_abc', '_ast', '_bisect', '_blake2', '_codecs...
byteorder = 'little'
copyright = 'Copyright (c) 2001-2023 Python Software Foundati...ematis...
dllhandle = 140727031824384
dont_write_bytecode = False
exec_prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312...
executable = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312\...
flags = sys.flags(debug=0, inspect=0, interactive=0, opt...ding=0, saf...
float_info = sys.float_info(max=1.7976931348623157e+308, max_...epsilo...
float_repr_style = 'short'
hash_info = sys.hash_info(width=64, modulus=2305843009213693...iphash1...
hexversion = 51119856
implementation = namespace(name='cpython', cache_tag='cpython-312...as...
int_info = sys.int_info(bits_per_digit=30, sizeof_digit=4, ..._str_dig...
maxsize = 9223372036854775807
maxunicode = 1114111
meta_path = [<_distutils_hack.DistutilsMetaFinder object>, <class '_fr...
modules = {'Cython': <module 'Cython' from 'C:\\Users\\Youse\\AppData....
orig_argv = [r'C:\Users\Youse\AppData\Local\Programs\Python\Python312\...
path = [r'f:\JoeyCodes\PyDocs', r'C:\Users\Youse\AppData\Local\Program...
path_hooks = [<class 'zipimport.zipimporter'>, <function FileFinder.pa...
path_importer_cache = {r'C:\Users\Youse\AppData\Local\Programs\Python\...
platform = 'win32'
platlibdir = 'DLLs'
prefix = r'C:\Users\Youse\AppData\Local\Programs\Python\Python312'
pycache_prefix = None
stderr = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp1252'...
stdin = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>
stdlib_module_names = frozenset({'__future__', '_abc', '_aix_support',...
stdout = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'...
thread_info = sys.thread_info(name='nt', lock=None, version=None)
version = '3.12.6 (tags/v3.12.6:a4a2d2b, Sep 6 2024, 20:11:23) [MSC v...
version_info = sys.version_info(major=3, minor=12, micro=6, releaselev...
warnoptions = []
winver = '3.12'
FILE
(built-in)
numba.test
Python Library Documentation: function test in module numba
test(argv, **kwds)
# Keep this for backward compatibility.
numba.threading_layer
Python Library Documentation: function threading_layer in module numba.np.ufunc.parallel
threading_layer()
Get the name of the threading layer in use for parallel CPU targets
numba.typed
Python Library Documentation: package numba.typed in numba
NAME
numba.typed
PACKAGE CONTENTS
dictimpl
dictobject
listobject
typeddict
typedlist
typedobjectutils
FUNCTIONS
__getattr__(name)
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\typed\__init__.py
numba.typeof
Python Library Documentation: function typeof in module numba.core.typing.typeof
typeof(val, purpose=<Purpose.argument: 1>)
Get the Numba type of a Python value for the given purpose.
numba.types
Python Library Documentation: package numba.core.types in numba.core
NAME
numba.core.types
PACKAGE CONTENTS
abstract
common
containers
function_type
functions
iterators
misc
new_scalars (package)
npytypes
old_scalars
scalars
CLASSES
numba.core.types.abstract.Type(builtins.object)
numba.core.types.misc.DeferredType
numba.core.types.misc.Optional
deferred_type = class DeferredType(numba.core.types.abstract.Type)
| deferred_type(*args, **kwargs)
|
| Represents a type that will be defined later. It must be defined
| before it is materialized (used in the compiler). Once defined, it
| behaves exactly as the type it is defining.
|
| Method resolution order:
| DeferredType
| numba.core.types.abstract.Type
| builtins.object
|
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| define(self, typ)
|
| get(self)
|
| unify(self, typingctx, other)
| Try to unify this type with the *other*. A third type must
| be returned, or None if unification is not possible.
| Only override this if the coercion logic cannot be expressed
| as simple casting rules.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from numba.core.types.abstract.Type:
|
| __call__(self, *args)
| Call self as a function.
|
| __eq__(self, other)
| Return self==value.
|
| __getitem__(self, args)
| Return an array of this type.
|
| __hash__(self)
| Return hash(self).
|
| __ne__(self, other)
| Return self!=value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __str__(self)
| Return str(self).
|
| augment(self, other)
| Augment this type with the *other*. Return the augmented type,
| or None if not supported.
|
| can_convert_from(self, typingctx, other)
| Similar to *can_convert_to*, but in reverse. Only needed if
| the type provides conversion from other types.
|
| can_convert_to(self, typingctx, other)
| Check whether this type can be converted to the *other*.
| If successful, must return a string describing the conversion, e.g.
| "exact", "promote", "unsafe", "safe"; otherwise None is returned.
|
| cast_python_value(self, args)
|
| dump(self, tab='')
|
| is_precise(self)
| Whether this type is precise, i.e. can be part of a successful
| type inference. Default implementation returns True.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from numba.core.types.abstract.Type:
|
| is_internal
| Returns True if this class is an internally defined Numba type by
| virtue of the module in which it is instantiated, False else.
|
| key
| A property used for __eq__, __ne__ and __hash__. Can be overridden
| in subclasses.
|
| mangling_args
| Returns `(basename, args)` where `basename` is the name of the type
| and `args` is a sequence of parameters of the type.
|
| Subclass should override to specialize the behavior.
| By default, this returns `(self.name, ())`.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from numba.core.types.abstract.Type:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from numba.core.types.abstract.Type:
|
| mutable = False
|
| reflected = False
optional = class Optional(numba.core.types.abstract.Type)
| optional(*args, **kwargs)
|
| Type class for optional types, i.e. union { some type, None }
|
| Method resolution order:
| Optional
| numba.core.types.abstract.Type
| builtins.object
|
| Methods defined here:
|
| __init__(self, typ)
| Initialize self. See help(type(self)) for accurate signature.
|
| can_convert_from(self, typingctx, other)
| Similar to *can_convert_to*, but in reverse. Only needed if
| the type provides conversion from other types.
|
| can_convert_to(self, typingctx, other)
| Check whether this type can be converted to the *other*.
| If successful, must return a string describing the conversion, e.g.
| "exact", "promote", "unsafe", "safe"; otherwise None is returned.
|
| unify(self, typingctx, other)
| Try to unify this type with the *other*. A third type must
| be returned, or None if unification is not possible.
| Only override this if the coercion logic cannot be expressed
| as simple casting rules.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| key
| A property used for __eq__, __ne__ and __hash__. Can be overridden
| in subclasses.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from numba.core.types.abstract.Type:
|
| __call__(self, *args)
| Call self as a function.
|
| __eq__(self, other)
| Return self==value.
|
| __getitem__(self, args)
| Return an array of this type.
|
| __hash__(self)
| Return hash(self).
|
| __ne__(self, other)
| Return self!=value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __str__(self)
| Return str(self).
|
| augment(self, other)
| Augment this type with the *other*. Return the augmented type,
| or None if not supported.
|
| cast_python_value(self, args)
|
| dump(self, tab='')
|
| is_precise(self)
| Whether this type is precise, i.e. can be part of a successful
| type inference. Default implementation returns True.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from numba.core.types.abstract.Type:
|
| is_internal
| Returns True if this class is an internally defined Numba type by
| virtue of the module in which it is instantiated, False else.
|
| mangling_args
| Returns `(basename, args)` where `basename` is the name of the type
| and `args` is a sequence of parameters of the type.
|
| Subclass should override to specialize the behavior.
| By default, this returns `(self.name, ())`.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from numba.core.types.abstract.Type:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from numba.core.types.abstract.Type:
|
| mutable = False
|
| reflected = False
DATA
__all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint...
b1 = bool
bool = bool
bool_ = bool
boolean = bool
byte = uint8
c16 = complex128
c8 = complex64
char = int8
complex128 = complex128
complex64 = complex64
double = float64
f4 = float32
f8 = float64
ffi = ffi
ffi_forced_object = ffi_forced_object
float32 = float32
float64 = float64
i1 = int8
i2 = int16
i4 = int32
i8 = int64
int16 = int16
int32 = int32
int64 = int64
int8 = int8
int_ = int64
intc = int32
intp = int64
long_ = int64
longlong = int64
none = none
short = int16
size_t = uint64
ssize_t = int64
u1 = uint8
u2 = uint16
u4 = uint32
u8 = uint64
uchar = uint8
uint = uint64
uint16 = uint16
uint32 = uint32
uint64 = uint64
uint8 = uint8
uintc = uint32
uintp = uint64
ulong = uint64
ulonglong = uint64
ushort = uint16
void = none
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\numba\core\types\__init__.py
numba.u1
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.u2
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.u4
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.u8
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uchar
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uint
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uint16
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uint32
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uint64
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uint8
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uintc
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.uintp
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.ulong
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.ulonglong
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.ushort
Python Library Documentation: Integer in module numba.core.types.old_scalars object class Integer(numba.core.types.abstract.Number) | Integer(*args, **kwargs) | | Method resolution order: | Integer | numba.core.types.abstract.Number | numba.core.types.abstract.Hashable | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | __ge__(self, other) from functools | Return a >= b. Computed by @total_ordering from (not a < b). | | __gt__(self, other) from functools | Return a > b. Computed by @total_ordering from (not a < b) and (a != b). | | __init__(self, name, bitwidth=None, signed=None) | Initialize self. See help(type(self)) for accurate signature. | | __le__(self, other) from functools | Return a <= b. Computed by @total_ordering from (a < b) or (a == b). | | __lt__(self, other) | Return self<value. | | cast_python_value(self, value) | | ---------------------------------------------------------------------- | Class methods defined here: | | from_bitwidth(bitwidth, signed=True) | | ---------------------------------------------------------------------- | Readonly properties defined here: | | maxval | The maximum value representable by this type. | | minval | The minimal value representable by this type. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Number: | | unify(self, typingctx, other) | Unify the two number types using Numpy's rules. | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.vectorize
Python Library Documentation: function vectorize in module numba.np.ufunc.decorators
vectorize(ftylist_or_function=(), **kws)
vectorize(ftylist_or_function=(), target='cpu', identity=None, **kws)
A decorator that creates a NumPy ufunc object using Numba compiled
code. When no arguments or only keyword arguments are given,
vectorize will return a Numba dynamic ufunc (DUFunc) object, where
compilation/specialization may occur at call-time.
Args
-----
ftylist_or_function: function or iterable
When the first argument is a function, signatures are dealt
with at call-time.
When the first argument is an iterable of type signatures,
which are either function type object or a string describing
the function type, signatures are finalized at decoration
time.
Keyword Args
------------
target: str
A string for code generation target. Default to "cpu".
identity: int, str, or None
The identity (or unit) value for the element-wise function
being implemented. Allowed values are None (the default), 0, 1,
and "reorderable".
cache: bool
Turns on caching.
Returns
--------
A NumPy universal function
Examples
-------
@vectorize(['float32(float32, float32)',
'float64(float64, float64)'], identity=0)
def sum(a, b):
return a + b
@vectorize
def sum(a, b):
return a + b
@vectorize(identity=1)
def mul(a, b):
return a * b
numba.version_info
Python Library Documentation: version_info in module numba.misc.init_utils object
class version_info(builtins.tuple)
| version_info(major, minor, patch, short, full, string, tuple, git_revision)
|
| version_info(major, minor, patch, short, full, string, tuple, git_revision)
|
| Method resolution order:
| version_info
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __getnewargs__(self) from collections.version_info
| Return self as a plain tuple. Used by copy and pickle.
|
| __repr__(self) from collections.version_info
| Return a nicely formatted representation string
|
| _asdict(self) from collections.version_info
| Return a new dict which maps field names to their values.
|
| _replace(self, /, **kwds) from collections.version_info
| Return a new version_info object replacing specified fields with new values
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| _make(iterable) from collections.version_info
| Make a new version_info object from a sequence or iterable
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(_cls, major, minor, patch, short, full, string, tuple, git_revision) from namedtuple_version_info.version_info
| Create new instance of version_info(major, minor, patch, short, full, string, tuple, git_revision)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| major
| Alias for field number 0
|
| minor
| Alias for field number 1
|
| patch
| Alias for field number 2
|
| short
| Alias for field number 3
|
| full
| Alias for field number 4
|
| string
| Alias for field number 5
|
| tuple
| Alias for field number 6
|
| git_revision
| Alias for field number 7
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('major', 'minor', 'patch', 'short', 'full', 'string'...
|
| _field_defaults = {}
|
| _fields = ('major', 'minor', 'patch', 'short', 'full', 'string', 'tupl...
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
numba.void
Python Library Documentation: NoneType in module numba.core.types.misc object class NoneType(numba.core.types.common.Opaque) | NoneType(*args, **kwargs) | | The type for None. | | Method resolution order: | NoneType | numba.core.types.common.Opaque | numba.core.types.abstract.Dummy | numba.core.types.abstract.Type | builtins.object | | Methods defined here: | | unify(self, typingctx, other) | Turn anything to a Optional type; | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __abstractmethods__ = frozenset() | | ---------------------------------------------------------------------- | Methods inherited from numba.core.types.abstract.Type: | | __call__(self, *args) | Call self as a function. | | __eq__(self, other) | Return self==value. | | __getitem__(self, args) | Return an array of this type. | | __hash__(self) | Return hash(self). | | __init__(self, name) | Initialize self. See help(type(self)) for accurate signature. | | __ne__(self, other) | Return self!=value. | | __reduce__(self) | Helper for pickle. | | __repr__(self) | Return repr(self). | | __str__(self) | Return str(self). | | augment(self, other) | Augment this type with the *other*. Return the augmented type, | or None if not supported. | | can_convert_from(self, typingctx, other) | Similar to *can_convert_to*, but in reverse. Only needed if | the type provides conversion from other types. | | can_convert_to(self, typingctx, other) | Check whether this type can be converted to the *other*. | If successful, must return a string describing the conversion, e.g. | "exact", "promote", "unsafe", "safe"; otherwise None is returned. | | cast_python_value(self, args) | | dump(self, tab='') | | is_precise(self) | Whether this type is precise, i.e. can be part of a successful | type inference. Default implementation returns True. | | ---------------------------------------------------------------------- | Readonly properties inherited from numba.core.types.abstract.Type: | | is_internal | Returns True if this class is an internally defined Numba type by | virtue of the module in which it is instantiated, False else. | | key | A property used for __eq__, __ne__ and __hash__. Can be overridden | in subclasses. | | mangling_args | Returns `(basename, args)` where `basename` is the name of the type | and `args` is a sequence of parameters of the type. | | Subclass should override to specialize the behavior. | By default, this returns `(self.name, ())`. | | ---------------------------------------------------------------------- | Data descriptors inherited from numba.core.types.abstract.Type: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes inherited from numba.core.types.abstract.Type: | | mutable = False | | reflected = False
numba.warnings
Python Library Documentation: module warnings
NAME
warnings - Python part of the warnings subsystem.
MODULE REFERENCE
https://docs.python.org/3.12/library/warnings.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
CLASSES
builtins.object
catch_warnings
class catch_warnings(builtins.object)
| catch_warnings(*, record=False, module=None, action=None, category=<class 'Warning'>, lineno=0, append=False)
|
| A context manager that copies and restores the warnings filter upon
| exiting the context.
|
| The 'record' argument specifies whether warnings should be captured by a
| custom implementation of warnings.showwarning() and be appended to a list
| returned by the context manager. Otherwise None is returned by the context
| manager. The objects appended to the list are arguments whose attributes
| mirror the arguments to showwarning().
|
| The 'module' argument is to specify an alternative module to the module
| named 'warnings' and imported under that name. This argument is only useful
| when testing the warnings module itself.
|
| If the 'action' argument is not None, the remaining arguments are passed
| to warnings.simplefilter() as if it were called immediately on entering the
| context.
|
| Methods defined here:
|
| __enter__(self)
|
| __exit__(self, *exc_info)
|
| __init__(self, *, record=False, module=None, action=None, category=<class 'Warning'>, lineno=0, append=False)
| Specify whether to record warnings and if an alternative module
| should be used other than sys.modules['warnings'].
|
| For compatibility with Python 3.0, please consider all arguments to be
| keyword-only.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
FUNCTIONS
filterwarnings(action, message='', category=<class 'Warning'>, module='', lineno=0, append=False)
Insert an entry into the list of warnings filters (at the front).
'action' -- one of "error", "ignore", "always", "default", "module",
or "once"
'message' -- a regex that the warning message must match
'category' -- a class that the warning must be a subclass of
'module' -- a regex that the module name must match
'lineno' -- an integer line number, 0 matches all warnings
'append' -- if true, append to the list of filters
formatwarning(message, category, filename, lineno, line=None)
Function to format a warning the standard way.
resetwarnings()
Clear the list of warning filters, so that no filters are active.
showwarning(message, category, filename, lineno, file=None, line=None)
Hook to write a warning to a file; replace if you like.
simplefilter(action, category=<class 'Warning'>, lineno=0, append=False)
Insert a simple entry into the list of warnings filters (at the front).
A simple filter matches all modules and messages.
'action' -- one of "error", "ignore", "always", "default", "module",
or "once"
'category' -- a class that the warning must be a subclass of
'lineno' -- an integer line number, 0 matches all warnings
'append' -- if true, append to the list of filters
warn(...)
Issue a warning, or maybe ignore it or raise an exception.
message
Text of the warning message.
category
The Warning category subclass. Defaults to UserWarning.
stacklevel
How far up the call stack to make this warning appear. A value of 2 for
example attributes the warning to the caller of the code calling warn().
source
If supplied, the destroyed object which emitted a ResourceWarning
skip_file_prefixes
An optional tuple of module filename prefixes indicating frames to skip
during stacklevel computations for stack frame attribution.
warn_explicit(...)
Issue a warning, or maybe ignore it or raise an exception.
DATA
__all__ = ['warn', 'warn_explicit', 'showwarning', 'formatwarning', 'f...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\warnings.py