[Python-Dev] sys.implementation
Eric Snow
ericsnowcurrently at gmail.com
Sat May 12 19:57:39 CEST 2012
On Sat, May 12, 2012 at 8:35 AM, Barry Warsaw <barry at python.org> wrote:
> I'm okay with dropping immutability for sys.implementation, but I still think
> attribute access is a more useful model. You can easily support both getattr
> and getitem with a class instance, so I think that's the way to go.
>
> (FWIW, immutability would also be easy to support with an instance.)
Agreed on both counts. The precedent in sys and elsewhere favors
attribute access for a fixed namespace like sys.implementation. Also,
item access (a la mappings) implies a more volatile namespace.
-eric
More information about the Python-Dev
mailing list