jeudi 20 mai 2021

Pattern for creating "view objects"

Is there any recommended pattern for creating custom "view objects" in Python, through which other objects can be viewed, but not modified? Like the view objects that dict.keys(), dict.values(), and dict.items() return.

Aucun commentaire:

Enregistrer un commentaire