[Python-Dev] python 3 niggle: None < 1 raises TypeError

Lennart Regebro regebro at gmail.com
Tue Feb 18 09:31:21 CET 2014

On Tue, Feb 18, 2014 at 8:35 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> If you don't want to touch comparison in general,
> how about an option to sort()?
>   results = sorted(invoices, key=attrgetter('duedate'), none='first')

I think this is a much better option.


More information about the Python-Dev mailing list