On 01/30/2013 08:22 PM, Ethan Furman wrote:
On 01/30/2013 05:53 PM, Larry Hastings wrote:
If we change math.pi to be a property it wouldn't be in the dictSo make the property access the __dict__:
anymore. So that has the possibility of breaking code.
In which case, it behaves exactly like it does today without a property. Okay... so why bother? If your answer is "so it can have code behind it", maybe you find a better example than math.pi, which will never need code behind it.
In general, I was proposing we add property support to modules mostly so that new globals could be properties, saving us from adding more accessors to the language. Otherwise I'm gonna have to switch to Eclipse.
Python-ideas mailing list