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.
dict.keys()
dict.values()
dict.items()
Aucun commentaire:
Enregistrer un commentaire