Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sweetgiorni
5 months ago
|
parent
|
context
|
favorite
| on:
Use keyword-only arguments in Python dataclasses
Python 3.14 adds that shorthand, but with a slight different (and IMO uglier) syntax:
fn(x=,y=,z=)
https://peps.python.org/pep-0736/
edit: nevermind, that PEP was rejected :/
pansa2
5 months ago
|
next
[–]
That PEP says “rejected”
snickerdoodle12
5 months ago
|
parent
|
next
[–]
Thankfully so. As much as I want a shorthand, this syntax wasn't it.
vovavili
5 months ago
|
prev
[–]
By the look of it, the feeling I get is that a decent and convenient syntax proposal has been bikeshedded into rejection. Some particular form of keyword arguments at invocation would definitely make quite a few of my scripts more readable.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
edit: nevermind, that PEP was rejected :/