-
-
Notifications
You must be signed in to change notification settings - Fork 679
Description
Assorted fixes to lazy imports:
-
Drop support for
lazy_import(overwrite=False)which was used only in one place in a dubious way to implement a 2-level lazy import (a lazy import being lazily imported). -
More optimal code for binary operations like
__add__by avoiding theoperatormodule. -
Move the code to replace a lazy import in a class namespace from
_get_object()to__get__. -
Partially inline
_get_object()with a newcdef inlinefunction for the case that the object has been initialized. -
A lazy import without
at_startupbeing imported at startup is now an error (it used to just print a message, which is less useful than an error traceback). -
Implement matmul (pointless in Python 2, but useful for Python 3).
-
Clean up the function
lazy_importa bit.
Component: misc
Author: Jeroen Demeyer
Branch/Commit: 4dda1ae
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/22755