We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following Cython code
cimport cython @cython.embedsignature(True) cdef class MyClass(object): def __init__(self, x): pass def __call__(self, y): pass from sage.misc.sageinspect import sage_getargspec print(sage_getargspec(MyClass("hello")))
gives the argspec of __init__ instead of __call__:
__init__
__call__
ArgSpec(args=['x'], varargs=None, keywords=None, defaults=None)
CC: @simon-king-jena @nthiery
Component: documentation
Issue created by migration from https://trac.sagemath.org/ticket/20860
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following Cython code
gives the argspec of
__init__
instead of__call__
:CC: @simon-king-jena @nthiery
Component: documentation
Issue created by migration from https://trac.sagemath.org/ticket/20860
The text was updated successfully, but these errors were encountered: