I would like to use thread local storage across multiple classes.
But threading.local()
gets me a new instance of storage every time I call it. Is there a way to use
threading.local().__setattr__('r_id', uuid.uuid4())
And there an equivalent of somehow to access in a completely different class ?
threading.local().__getattribute__('r_id')