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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -