Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
morkalork
on Sept 5, 2024
|
parent
|
context
|
favorite
| on:
Lesser known parts of Python standard library
I wish there were some syntactic sugar for partial but knowing how patterns like that get abused in other languages maybe it is for the better that there isn't.
globular-toast
on Sept 5, 2024
[–]
What would it look like? Wouldn't it just be lambda?
morkalork
on Sept 6, 2024
|
parent
|
next
[–]
Yes, sugar so instead of having `partial(foo, w=1, x=2)` or `lambda y,z: foo(1,2,y,z)` just instead something like `foo(1,2,_,_)`
BiteCode_dev
on Sept 5, 2024
|
parent
|
prev
[–]
I wish it would at least be a method on any callable.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: