This has already been pointed out to me, but I could not see possible use cases at a time and they came with a slight delay.
There is a possibility for functionality that makes use of keyword Placeholders to be needed in the future.
Realistic use case is the ability to use map with keyword arguments. See: #119793 (comment)
import functools functools.partial(lambda a: None, a=functools.Placeholder) # TypeError("keyword Placeholders are not allowed")
No response given
#119127 (comment)
Merge remote-tracking branch 'upstream/main' into pythongh-125028-pro…
Re-opening since the OP contacted me to re-open the issue.
I panicked and closed this prematurely. Apologies for the mess.
gh-125028: Prohibit placeholders in partial keywords (GH-126062)
pythongh-125028: Prohibit placeholders in partial keywords (pythonGH-…
[3.14] gh-125028: Prohibit placeholders in partial keywords (GH-126062)…
Activity
Merge remote-tracking branch 'upstream/main' into pythongh-125028-pro…
Merge remote-tracking branch 'upstream/main' into pythongh-125028-pro…
picnixz commented on Oct 28, 2024
Re-opening since the OP contacted me to re-open the issue.
dg-pb commented on Oct 28, 2024
I panicked and closed this prematurely. Apologies for the mess.
gh-125028: Prohibit placeholders in partial keywords (GH-126062)
pythongh-125028: Prohibit placeholders in partial keywords (pythonGH-…
[3.14] gh-125028: Prohibit placeholders in partial keywords (GH-126062)…
pythongh-125028: Prohibit placeholders in partial keywords (pythonGH-…
pythongh-125028: Prohibit placeholders in partial keywords (pythonGH-…