📕 subnode [[@karlicoss/python_tricks]] in 📚 node [[python_tricks]]

Table of Contents

contextmanager example: temporary kobo database

write about cool examples of me using decorators

dominate + my hack
my hack for praw
lru cache
dbcache and generating decorators
process group kill
unit test fixtures

example of decorator with cd

about python consuming parsing [[parsing]]

post about my functools.lru cache thing and PathWithMtime

lrucache is kind of runtime level make

about traity things I did in axol? [[axol]]

Hacky logging thing

I often write python scripts instead of shell

when whiting about lrucache trick, I need to come up to some proper example, that would benefit almost everyone

Context manager and wrapping pid?

another usecase for LRU cache thing – merging multiple files

Monadic parsing with decorators?

Write about problems with left recursion?

[2018-05-12] ensuring certain order (in code) for objects based on name

kinda like in foodprovider/foodprovider/meals.py

  • each object registers and gets a global ID
  • collect them all via dir
  • sort them by ID then assert names
📖 stoas
⥱ context