Re: source for the property function

2008-09-02 Thread Bruno Desthuilliers
Rowland Smith a écrit : Anyone know where the source code for the built-in property function Actually, it's a class, not a function. is located in a python distribution? property being a builtin type, you should find it somewhere in the CPython's C source AFAICT. I would like to see how

Re: source for the property function

2008-09-02 Thread Christian Heimes
Rowland Smith wrote: Anyone know where the source code for the built-in property function is located in a python distribution? I would like to see how it works - mainly, how does it know which class it is being called from? Property is not a function but a type. Properties are a common usage

Re: source for the property function

2008-09-02 Thread Diez B. Roggisch
Rowland Smith schrieb: Anyone know where the source code for the built-in property function is located in a python distribution? I would like to see how it works - mainly, how does it know which class it is being called from? Google the "descriptor protocol" for new-style classes. That expl

source for the property function

2008-09-02 Thread Rowland Smith
Anyone know where the source code for the built-in property function is located in a python distribution? I would like to see how it works - mainly, how does it know which class it is being called from? Thanks, Rowland -- http://mail.python.org/mailman/listinfo/python-list