Hi Robert, On 1 Mrz., 00:15, Robert Bradshaw <rober...@math.washington.edu> wrote: > ... > > Namely, cached_method tries to obtain certain attributes common to > > python functions from its argument. func_defaults is just one among > > others. > > We don't have as much freedom here, as C-defined and python-defined > functions are quite different (standard library) objects. In this > case, cached_method should recognize > method_descriptors/builtin_function_or_method types and handle them > differently (if possible).
Where is the source code for method_descriptor or builtin_function_or_method? What is needed to be cimported from where, in order to access the attributes corresponding to func_defaults and friends? Cheers, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org