Jeroen. _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/PQYD4GARMKSURX7GYRSNCHJSLIWK22XD/
I realized something that makes this even more tricky: dicts are
mutable. So even if the dict contains only string keys at call time, it
could theoretically be changed by the time that keywords are parsed. So
for calling conventions passing dicts, I would leave it to the callee to
sanity check the dict (this is the status quo).
For the vectorcall/FASTCALL calling convention, the situation is a lot
better: the call arguments are immutable and there are not many places
where vectorcall calls are made with keywords. So we could check it on
the caller side. I'll try to implement that.
- [Python-Dev] Keyword arguments with non-string names Jeroen Demeyer
- [Python-Dev] Re: Keyword arguments with non-string n... Jeroen Demeyer
- [Python-Dev] Re: Keyword arguments with non-stri... Janzert
- [Python-Dev] Re: Keyword arguments with non-... Jeroen Demeyer
- [Python-Dev] Re: Keyword arguments with ... Guido van Rossum
- [Python-Dev] Re: Keyword arguments ... Jeroen Demeyer