Re: Request for useful functions on dicts

2012-07-15 Thread Leif
Thanks for the suggestions, Ian! I implemented most of them and pushed the code. > That's because the Pythonic way is to either create a new object and > return it, or mutate the existing object and return None. You're saying what I was already thinking. > In Python 2.7+, intersection and diff

Re: Request for useful functions on dicts

2012-07-15 Thread Ian Kelly
On Sat, Jul 14, 2012 at 5:56 PM, Leif wrote: > Hi, everybody. I am trying to collect all the functions I've found useful for > working with dicts into a library: > > https://github.com/leifp/dictutil > > If you have a favorite dict-related func / class, or know of similar > projects, please let

Request for useful functions on dicts

2012-07-14 Thread Leif
Hi, everybody. I am trying to collect all the functions I've found useful for working with dicts into a library: https://github.com/leifp/dictutil If you have a favorite dict-related func / class, or know of similar projects, please let me know (or open an issue on github). Bear in mind that th