A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-June/080319.html below:

[Python-Dev] bug or a feature?

[Python-Dev] bug or a feature? [Python-Dev] bug or a feature?Guido van Rossum guido at python.org
Fri Jun 13 05:42:58 CEST 2008
On Thu, Jun 12, 2008 at 8:19 PM, Frank Wierzbicki <fwierzbicki at gmail.com> wrote:
> On Wed, Jun 11, 2008 at 5:50 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> Greg Ewing wrote:
>> Implementations are also permitted to restrict namespace dictionaries to
>> only accept string keys (I believe Jython does this for performance reasons
>> - CPython just optimised the hell out of normal dictionaries that happen to
>> only contain string keys instead).
> Jython's current version (2.2) and back did indeed restrict these
> dictionaries to accept string keys only, but future versions will
> allow non-string keys (the trunk version already does).  Many
> frameworks use non-string keys in these dictionaries.

I think that's laudable from a compatibility POV, but at the same time
I think frameworks should rethink such usage and switch to strings
containing non-identifier characters, e.g. '$' or '.' or some such
convention.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

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