[Ironpython-users] feedback on PEP 421

Jeff Hardy jdhardy at gmail.com
Mon May 7 17:30:19 CEST 2012


On Mon, May 7, 2012 at 7:53 AM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
>> I'd strongly prefer the named-tuple approach, like version_info. The
>> metadata attribute being a dict is fine (although the PEP doesn't
>> actually call that out in "Required Values" section; I had to search
>> to find out if it was actually a dict). I have some stuff I want to
>> put in there already.
>
> 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.

- Jeff


More information about the Ironpython-users mailing list