Opened 4 years ago

Last modified 4 years ago

#20860 new defect

sage_getargspec on Cython class instances prefers __init__ over __call__

Reported by: jdemeyer Owned by:
Priority: major Milestone: sage-7.3
Component: documentation Keywords:
Cc: SimonKing, nthiery Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:


The following Cython code

cimport cython
cdef class MyClass(object):
    def __init__(self, x):
    def __call__(self, y):
from sage.misc.sageinspect import sage_getargspec

gives the argspec of __init__ instead of __call__:

ArgSpec(args=['x'], varargs=None, keywords=None, defaults=None)

Change History (1)

comment:1 Changed 4 years ago by jdemeyer

  • Cc nthiery added
Note: See TracTickets for help on using tickets.