On Thu, Jan 31, 2013 at 7:04 AM, Larry Hastings <larry@hastings.org> wrote:
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 dict
anymore.  So that has the possibility of breaking code.
So make the property access the __dict__:

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.


/arry

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
http://mail.python.org/mailman/listinfo/python-ideas



I'm just gonna write "Python 4" for searching later.