

def _fix_up(self, cls, code_name):
    'Internal helper called to tell the property its name.\n\n    This is called by _fix_up_properties() which is called by\n    MetaModel when finishing the construction of a Model subclass.\n    The name passed in is the name of the class attribute to which the\n    Property is assigned (a.k.a. the code name).  Note that this means\n    that each Property instance must be assigned to (at most) one\n    class attribute.  E.g. to declare three strings, you must call\n    StringProperty() three times, you cannot write\n\n      foo = bar = baz = StringProperty()\n    '
    self._code_name = code_name
    if (code_name._name is None):
        self._name = code_name

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Property._fix_up/VarMisuse@24/254 `self`->`code_name`