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'))
We build amazing webapps and we can help you build them. Get help with you Django, Jquery and apps we have released.
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'))
Sorted started taking a key with 2.5, no?
My favorite programming trick is
''.join([random.choice('abcdefgh..') for el in range(8)]) - gets you a random string.
Ok, last line found a bug with bbcode handling, after it ate my code. :)
To start a quick debugging smtp server.
python -m smtpd -n -c DebuggingServer localhost:1025