Open ErisianArchitect opened 2 years ago
I'll take a look
Ok, rcurry()
and friends behave the same in Python 3.8 and 3.10. And it doesn't work with str.endswith
indeed.
funcy fails to introspect methods of builtin types.
The workaround for now is:
has_suffix = rcurry(str.endswith, 2)
Also, str.endswith
actually have 4 params, so your example won't work anyway.
Updated docs and readme to recommend specifying n
. The issue itself is frozen for now, since I don't see much value in doing proper introspection here.
Note that as a last resort funcy goes to inspect.signature()
, which might work or not for the same thing depending on Python version.