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/1999-November/001378.html below:

[Python-Dev] Codecs and StreamCodecs

[Python-Dev] Codecs and StreamCodecs [Python-Dev] Codecs and StreamCodecsMark Hammond mhammond@skippinet.com.au
Thu, 18 Nov 1999 21:57:44 +1100
[Guido]
> > (But weren't we going to do away with the whole registry
> > idea in favor of an encodings package?)
>
[MAL]
> One way or another, the Unicode implementation will have to
> access a dictionary containing references to the codecs for
> a particular encoding. You won't get around registering these
> at some point... be it in a lazy way, on-the-fly or by some
> other means.

What is wrong with my idea of using well-known-names from the encoding
module?  The dict then is "encodings.<encoding-name>.__dict__".  All
encodings "just work" because the leverage from the Python module
system.  Unless Im missing something, there is no need for any extra
registry at all.  I guess it would actually resolve to 2 dict lookups,
but thats OK surely?

Mark.




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