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

2014年2月18日 00:39:25 -0800

On Tue, Feb 18, 2014 at 8:35 AM, Greg Ewing <[email protected]> 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.
//Lennart
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to