Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 :/



That PEP says “rejected”


Thankfully so. As much as I want a shorthand, this syntax wasn't it.


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: