12 May
2012
12 May
'12
5:57 p.m.
On Sat, May 12, 2012 at 8:35 AM, Barry Warsaw
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