Read-only attribute in module

Terry Reedy tjreedy at
Fri Feb 10 04:27:50 CET 2012

On 2/9/2012 8:04 PM, Steven D'Aprano wrote:

> Python happily violates "consenting adults" all over the place. We have
> properties, which can easily create read-only and write-once attributes.

So propose that propery() work at module level, for module attributes, 
as well as for class attributes.

Terry Jan Reedy

More information about the Python-list mailing list