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?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4