[Python-ideas] Extend module objects to support properties

Steven D'Aprano steve at pearwood.info
Thu Jan 31 01:45:56 CET 2013


On 31/01/13 03:42, Larry Hastings wrote:

> Also, I'm not sure there are any existing globals that we'd want to convert into properties.

How about this?

math.pi = 3

which really should give an exception.

(I'm sure there are many others.)


-- 
Steven



More information about the Python-ideas mailing list