I need some class attributes populated by this lambda, and class self-regulation at this stage is clearly impossible.
But from your given code, everything LAMBDA will do when it is called, it calls MyClass.ClassMethod() , which means that the method that performs the population is ClassMethod (this, of course, assumes that the body of ClassMethod is actually not the only pass . which you showed because if she does this, this exercise is useless). If any aspect of your code does not allow you to access the class before using it for anything, why can't you call MyClass.ClassMethod() after the class is defined?
And if you are trying to change the class attributes inside the definition (that is, by calling LAMBDA in the MyClass definition, outside of any methods / functions / independently), you can take a look at the metaclass documentation section.
On the side of the note, if you want to assign attributes to a class, you don't even need to do this inside the body of the class itself.
>>> class cls(object): # or just "class cls:" ... pass ... >>> cls.value = 10 >>> cls.name = 'class' >>> cls.value 10 >>> cls.name 'class' >>> dir(cls) ['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'name', 'value']