MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __set_name__

Method __set_name__

example_code/item_065.py:192–193  ·  view source on GitHub ↗
(self, owner, column_name)

Source from the content-addressed store, hash-verified

190 self.internal_name = None
191
192 def __set_name__(self, owner, column_name):
193 self.internal_name = "_" + column_name
194
195 def __get__(self, instance, instance_type):
196 if instance is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected