[Python-Dev] sys.implementation (original) (raw)

Terry Reedy tjreedy at udel.edu
Thu May 10 17:31:49 CEST 2012


On 5/10/2012 10:42 AM, Georg Brandl wrote:

On 10.05.2012 10:57, Antoine Pitrou wrote:

On Thu, 10 May 2012 11:33:14 +1000 Nick Coghlan<ncoghlan at gmail.com> wrote:

The original concern (that sys.implementation may differ in length across implementations) has been eliminated by moving all implementation specific values into sys.implementation.metadata. Uh. It's scary the kind of things people sometimes come up with :-) .oO( Namespaception ) sys.implementation.metadata looks like a completely over-engineered concept. Please, let's just make sys.implementation a dict and stop bothering about ordering and iterability.

Thank you for cutting through the knot.

Agreed.

Ditto. Iterability is good and should be part of all python collections. People who want a sorted representation should just use sorted(d.items) as with other sortable mappings. Nick's idea of prefixing local implementation keys with '_' would nicely group them together on sorted displays.

-- Terry Jan Reedy



More information about the Python-Dev mailing list