Comments (7)
I'll take a look
from funcy.
Ok, rcurry()
and friends behave the same in Python 3.8 and 3.10. And it doesn't work with str.endswith
indeed.
from funcy.
funcy fails to introspect methods of builtin types.
from funcy.
The workaround for now is:
has_suffix = rcurry(str.endswith, 2)
from funcy.
Also, str.endswith
actually have 4 params, so your example won't work anyway.
from funcy.
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.
from funcy.
Note that as a last resort funcy goes to inspect.signature()
, which might work or not for the same thing depending on Python version.
from funcy.
Related Issues (20)
- Feature request: Support method chaining HOT 14
- Add `del_in()` to colls.py for symmetry and completeness HOT 3
- Add type stubs HOT 23
- Apply a list object to a function's argument-list HOT 2
- Retry infinity HOT 2
- funcy.autocurry doesn't work with functions with key-words only HOT 4
- `join_with` - transform single elements too HOT 10
- In the cheatsheet area, the function nth signature does not include a parameter n.
- Dict deep merge? HOT 1
- Unprecise documentation on extended function semantics HOT 1
- Add the "strict" kwarg to lzip HOT 2
- Support Python 3.11 HOT 1
- Flow function `retry` as non-decorator variant HOT 2
- Feature request: function to strip arguments from function call HOT 1
- Feature Request: Proxy Object HOT 7
- Support Python 3.12 HOT 2
- Feature Request: async versions of functions? HOT 1
- Uploaded a conda package
- Essays are offline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from funcy.