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

2014年2月18日 13:26:10 -0800

On 18 February 2014 21:17, Greg Ewing <[email protected]> wrote:
> What I'd *really* like to be able to write is:
>
> sort(invoices, keyattr = 'duedate', none = 'first')
Which is of course a pretty trivial utility function to write. But I
understand your point - these "trivial helpers" add up over time into
a bit of a burden. But fixing that (if anyone feels it's worth doing
so) can be handled many ways, and changing the semantics of None is
far from the simplest or most obvious.
Pul
_______________________________________________
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