[Ironpython-users] feedback on PEP 421

Eric Snow ericsnowcurrently at gmail.com
Mon May 7 17:54:39 CEST 2012


On Mon, May 7, 2012 at 9:30 AM, Jeff Hardy <jdhardy at gmail.com> wrote:
> On Mon, May 7, 2012 at 7:53 AM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
>> Good to know.  Is your preference for a named tuple instead of a
>> normal class?  I'd rather not expose sys.implementation as a sequence
>> type, but mostly I want to end up with something that's meaningful for
>> everyone.
>
> Yeah, a normal class is fine (preferable, actually). For some reason I
> thought the options were named tuple a la version_info, or dict.
>
> One other question - for the metadata dict, is it mutable? Even though
> mutable is easier to implement, I'd still prefer it be read-only.

A plain dict would be certainly be easier to implement, just using the
builtin.  Exposing an immutable dict type in CPython could open a can
of worms, but if it makes sense we could consider it.

-eric


More information about the Ironpython-users mailing list