C Code for Python's property function? -
i curious how python's interpreter makes attribute x
out of method x
through x=property(x)
. if take @ c
code, feel better.
the type defined in descrobject.c
file.
you can locate python types these first looking function name in bltinmodule.c
; in case following line defines property()
function:
setbuiltin("property", &pyproperty_type);
then grep pyproperty_type
definition in objects
subdirectory.
Comments
Post a Comment