> Hi Robert,
> On 1 Mrz., 00:15, Robert Bradshaw <rober...@math.washington.edu>
>> > 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
The source code is in the Python library itself, e.g.
There's no direct analogue to many of these fields...
To post to this group, send an email to email@example.com
To unsubscribe from this group, send an email to firstname.lastname@example.org
For more options, visit this group at http://groups.google.com/group/sage-devel