[Tutor] sorting a list of dictionaries

2004-12-09 Thread Larry Holish
he keys 'name' or 'size'. The file 'name' s should be unique (I'm hoping) across all the dictionaries. Can someone point me towards an efficient solution for accomplishing the sort? (The list has 1000s of files). Thanks in advance, -- Larry Holish <[EMAI

Re: [Tutor] sorting a list of dictionaries

2004-12-09 Thread Larry Holish
The decorate - sort - undecorate idiom is the preferred way to do this > in Python < 2.4. Python 2.4 adds the key= parameter to sort() and > does the DSU internally. Karl, Kent, thanks for your prompt responses. I'm running python 2.3, and the DSU method performs nicely. Regards,

Re: [Tutor] Python equiv to PHP "include" ?

2005-10-04 Thread Larry Holish
a simple python web framework that works in either a plain old CGI environment, or can easily be adapted to mod_python. This page includes a basic usage example: http://thraxil.org/code/cgi_app/ -- Larry Holish <[EMAIL PROTECTED]> ___ Tutor mai