So you can use a combination of @classmethod and @property.
class Data:
@classmethod
@property
def imagesTotal(cls):
return 10
There are some issues with help() and unittest.mock. They may not work
as you expected.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/JQKITGZCCE2LM6ZJJETW4FRIZR3B3463/
Code of Conduct: http://python.org/psf/codeofconduct/