#20860: sage_getargspec on Cython class instances prefers __init__ over __call__
-----------------------------+----------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-7.3
Component: documentation | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------
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__`:
{{{
ArgSpec(args=['x'], varargs=None, keywords=None, defaults=None)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/20860>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.