Daniel Manson

Results 18 comments of Daniel Manson

i think weakref is the way to go if possible; caching is likely one of the main purposes for that to exist at all

I was thinking of something like: ```python obj_unique_str_from_ref = weakref.WeakKeyDictionary() def upsert_unique_str for_obj(ob): if ob not in obj_unique_str_from_ref: obj_unique_str_from_ref[ob] = uuid() # or whatever return obj_unique_str_from_ref[ob] ... def _key_from_args(...): ..."-".join(upsert_unique_str(a)...

I'm not going to push this any further than this message, but I do think the current behaviour is dangerous and should be addressed in some form, at the very...

>If you leave maxsize at the default value and uncomment the assert, you'll see the aiocache version passes as well, because no objects have been garbage collected. Yes, but that...

for reference - https://github.com/satwikkansal/wtfpython?tab=readme-ov-file#-deep-down-were-all-the-same

In case anyone finds it useful, i did actually come back to this and got it working as follows: ```python from asyncpg import Pool as Pool_original, create_pool as create_pool_original import...

The `required_fields` config should actually cover much of what i had in mind, although it doesn't actually seem to work as far as i can tell with my custom action...

Another use case is if you want to allow users to configure different behaviour for each of the columns in their query, e.g. mapping to a field in a CRM,...