Nick Coghlan <ncogh...@gmail.com> added the comment:

Allowing for None-first and None-last ordering is a fair use case, but I'm not 
sure a __key__ protocol is the right answer to that - as your own example 
shows, it gets tricky when dealing with nested containers.

It may make sense to raise the question on python-ideas for Python 3.8+, 
though, with Python-side ordering of database records as the main motivating 
use case.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue20632>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to