
On Wed, Oct 27, 2021 at 6:15 AM Paul Moore <p.f.moore@gmail.com> wrote:
Having the code stop working just because I changed the way the called function handles its defaults would be a nuisance (again, I'm not saying this would happen often, just that I could easily imagine it happening if this feature was available). The function f might well be from a library, or a script, that I wrote for something else, and it might be perfectly reasonable to use the new feature for that other use case.
The same will be true if it changes from "x=None" to "x=_sentinel". Every change breaks someone's workflow. I think Python would benefit from a "map these arguments to that function signature" tool, but that's independent of this proposal. Don't want to have massive scope creep here. ChrisA