#!/usr/local/bin/python3 from threading import local class C(object): a = 1 l = local() def __init__(self): l.d = {} C() print(C.a)