News for hackers. Stuff that matters.
Re:Upcoming Python features brought to you by Python Enhance... by sushibowl on Monday February 14, 2022 @09:46AM (#30332587)
Because that would make the change backwards incompatible. Some code out there could be (ab)using the fact that default arguments are bound at function definition time, and depend on that behavior to stay as it is. So this new behavior must be behind a new syntax.
Re:Upcoming Python features brought to you by Python Enhance... by harel on Monday February 14, 2022 @10:26AM (#30333116)
But said old code is using an older version of Python, which does not support this. The compiler could issue a warning for newer version until the switchover, and therefore save us from this "special case".