def class_space(classlevel=3):
    "returns the calling class' name and dictionary"
    frame = sys._getframe(classlevel)
    classname = frame.f_code.co_name
    classdict = frame.f_locals
    return classname, classdict
returns the calling class' name and dictionary
recipes/Python/157768_Automating_simple_property/recipe-157768.py