This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients cvrebert, ncoghlan, pitrou, rhettinger, tim.peters
Date 2014-02-24.21:38:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393277938.07.0.272548577538.issue20630@psf.upfronthosting.co.za>
In-reply-to
Content
> If it is in fact specific to sorting, then this specific symptom
> and "the problem" are in fact the same thing ;-)

The first rule of tautology club is the first rule of tautology club ;-)

FWIW, we had to add a work-around for this in pprint._safe_key class.  Without that work-around, it was difficult to work with JSON-style data hierarchies:

# wouldn't pprint() without the _safe_key() work-around:
temperatures = {'Jan': 25.2, 'Feb': 22.3, 'Mar': None, 'Apr': 19.1,
                'May': 22.2, 'Jun': None, 'July': 22.3}

I think this will be typical for the kind of issue people will encounter when using None as a placeholder for missing data.

FWIW, if None stays non-comparable, Nick's additions look fine to me.  I just think it easier for everyone to restore None's universal comparability rather than adding work-arounds for the problems caused by removing that capability.
History
Date User Action Args
2014-02-24 21:38:58rhettingersetrecipients: + rhettinger, tim.peters, ncoghlan, pitrou, cvrebert
2014-02-24 21:38:58rhettingersetmessageid: <1393277938.07.0.272548577538.issue20630@psf.upfronthosting.co.za>
2014-02-24 21:38:58rhettingerlinkissue20630 messages
2014-02-24 21:38:57rhettingercreate