Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gamegoblin
on March 2, 2015
|
parent
|
context
|
favorite
| on:
Show HN: Lazy evaluation in Python
That fails for something like this:
def test(x, y=None): return x assert curry(test)(1) == 1 # fails
manoDev
on March 2, 2015
[–]
I know, I left kwargs as a later exercise. You can still refactor with `partial` though since it accepts kwargs as the third argument.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: