DSU pattern (was Re: Trouble sorting lists (unicode/locale related?))

Duncan Booth duncan at NOSPAMrcp.co.uk
Mon Sep 22 18:25:58 CEST 2003


Alex Martelli <aleax at aleax.it> wrote in 
news:VOEbb.101641$hE5.3573494 at news1.tin.it:

> Duncan Booth wrote:
>    ...
>> FWIW, I think something like this belongs in the standard library rather
>> than as a method on lists or a new builtin.
> 
> Definitely not a method on lists, we agree on that.  Problem is, there
> is no module in the standard library to collect "functions that are often
> useful but not QUITE often enough to warrant being built-ins" (and if
> there was, there are quite a few current built-ins I'd like to relegate
> into such an auxiliary/utilities module), so that finding a good place,
> other than built-ins, for such utility functions, is often a bother.
> 
So someone needs to write a PEP proposing such a module.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?




More information about the Python-list mailing list