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 -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -