[Tutor] classproperty for Python 2.7 (read-only enough)

Alan Gauld alan.gauld at yahoo.co.uk
Wed Apr 19 03:43:09 EDT 2017


On 19/04/17 08:28, Thomas Güttler wrote:

> Nice, if it is that simple.
> 
> Is there a reason why this is not in the standard library?

Probably because it is such a rare use case and because
its not that hard to do yourself if you really need it.

But the standard library, like any open source project,
develops as people need things. If nobody needs something
it will never be built and therefore never be added to
the library. I'd guess this falls into that category.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list