Re: [Python-Dev] Adding key and reverse args to bisect

2009-06-11 Thread Aahz
On Thu, Jun 11, 2009, David A. Barrett wrote: > > I propose adding the key parameter to the bisect.bisect routines. > This would allow it to be used on lists with an ordering other than > the one "natural" to the contained objects. Raymond addressed your actual question, but please post suggestion

Re: [Python-Dev] Adding key and reverse args to bisect

2009-06-11 Thread Raymond Hettinger
[David A. Barrett] I propose adding the key parameter to the bisect.bisect routines. This would allow it to be used on lists with an ordering other than the one "natural" to the contained objects. Algorithmically, the bisect routines are the wrong place to do key lookups. If you do many calls

[Python-Dev] Adding key and reverse args to bisect

2009-06-11 Thread David A. Barrett
I propose adding the key parameter to the bisect.bisect routines. This would allow it to be used on lists with an ordering other than the one "natural" to the contained objects. (and anywhere else it makes sense in the bisect module). Would this be easy enough to do? It looks like the main diff

[Python-Dev] xmlrpc improvements

2009-06-11 Thread Kristján Valur Jónsson
Hello there. I've been trying to, in the last weeks, to pass on to the trunk the improvements I've made to XMLRPC. I've created several issues in order to do these changes incrementally but have got no comments. Perhaps it is best to show the whole thing in context, then. I´ve gathered all the ch