[Python-Dev] Arbitrary non-identifier string keys when using **kwargs
barry at python.org
Tue Oct 9 20:14:14 EDT 2018
On Oct 9, 2018, at 16:21, Steven D'Aprano <steve at pearwood.info> wrote:
> On Tue, Oct 09, 2018 at 10:26:50AM -0700, Guido van Rossum wrote:
>> My feeling is that limiting it to strings is fine, but checking those
>> strings for resembling identifiers is pointless and wasteful.
> Sure. The question is, do we have to support uses where people
> intentionally smuggle non-identifier strings as keys via **kwargs?
I would not be in favor of that. I think it doesn’t make sense to be able to smuggle those in via **kwargs when it’s not supported by Python’s grammar/syntax.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Message signed with OpenPGP
More information about the Python-Dev