1      

Re:

One of my favorite tricks for sorting a list of dictionaries by one of the dict entries:

from operator import itemgetter newlist = sorted(list_of_dicts, key=itemgetter('name'))

2      

Re: Sorting a list of dictionaries

Sorted started taking a key with 2.5, no?

3      

Re: Sorting a list of dictionaries

My favorite programming trick is

''.join([random.choice('abcdefgh..') for el in range(8)]) - gets you a random string.

4      

Re: Sorting a list of dictionaries

Ok, last line found a bug with bbcode handling, after it ate my code. :)

5      

Re: Sorting a list of dictionaries

fdsfsf

6      

Re: Sorting a list of dictionaries

To start a quick debugging smtp server.

python -m smtpd -n -c DebuggingServer localhost:1025

7      

Re: Sorting a list of dictionaries

edfsdf