2010/4/16 Raymond Hettinger <raymond.hettinger at gmail.com>: > >>> Guido van Rossum, 16.04.2010 16:33: >>>> >>>> I am fine with >>>> declaring dict({}, **{1:3}) illegal, since after all it is abuse of >>>> the ** mechanism. > > ISTM that making it illegal costs cycles with giving any real benefit. > It is reasonably common to accept **kwds and then pass it down > to another function. Do we want to validate the keys of every > kwds dict on every call? Why do we even care? > > If I'm understanding the proposal correctly, it means that > every existing application using **kwds will pay a price, either > by breaking (because it uses non-string keys) or by running > slower (so that every call can be checked to make sure it > didn't use string keys). We already pay that price for any Python function, so I'm not sure what difference adding to C, too, makes. -- Regards, Benjamin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4