Kurt Rose
Kurt Rose
would you like to get your name in the contributors? :-) please feel free
I wonder if "look behind" would be a generic way of implementing the thread-safe counter based on `itertools.count()` idiom. Here's an example: ```python import itertools class Counter(object): __slots__ = '_count',...
simple enough that it could perhaps use stack-of-dicts instead of recursion
Oh, that's a good point! This might just be a special case of remerge([dict_a, dict_b]).
If remerge is available, maybe a better way to handle this would be as a documented use-case of remerge. ```python def recursive_update(a, b): return remerge([a, b]) ```
Here's some example output: ``` ../keymakeragent\key_client.py _get_app_data 393 ../keymakeragent\key_client.py has_app_data 416 ../keymakeragent\key_client.py has_app_data 418 ../keymakeragent\key_client.py has_app_data 419 ../keymakeragent\key_client.py _get_app_data 407 ../keymakeragent\key_client.py has_app_data 416 ../keymakeragent\key_client.py has_app_data 418 ../keymakeragent\key_client.py has_app_data 419 ../keymakeragent\key_client.py...
This is very interesting. One thing I'd be curious about: have you encountered any practical use cases? I can see how it might be a useful building block, but it...
Pandas is an interesting comparison. Everyone says good things about that library. I am becoming more and more convinced this will be a handy function :-) On Fri, Sep 18,...
Totally agree, there is a whole family of functions available here, all slightly different. It is hard to tell what the "complete" set of operations would be. find_in_structure and get_from_structure...
Sorry for the slow reply! One general readability thing -- you can move the cursor down to '_embedded.terms' once outside the dict rather than as part of deriving each value:...