Message211926
| Author |
ncoghlan |
| Recipients |
cvrebert, martin.panter, ncoghlan, pitrou, scoder |
| Date |
2014年02月22日.14:14:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CADiSq7e2fn=sj63QJmV4yF2CqK-f8m9wXfobd9_tK+cm2aEPhw@mail.gmail.com> |
| In-reply-to |
<1393024870.01.0.454529353772.issue20632@psf.upfronthosting.co.za> |
| Content |
I suspect it could just be a class decorator (along the lines of
total_ordering), and it should certainly be prototyped on PyPI as such a
decorator (using a different name for the key calculating method). If it
eventually happened, elevation to a core protocol would really be about
defining this as being *preferred* in the cases where it applies, and
that's a fairly weak basis for changing the type constructor. |
|