2e reviewed manuscript

This commit is contained in:
Luciano Ramalho
2021-11-12 11:33:12 -03:00
parent f5e3cb8ad3
commit 80f7f84274
32 changed files with 323 additions and 156 deletions

View File

@@ -47,8 +47,11 @@ class FrozenJSON:
self.__data[key] = value
def __getattr__(self, name):
if hasattr(self.__data, name):
try:
return getattr(self.__data, name)
else:
except AttributeError:
return FrozenJSON(self.__data[name]) # <4>
def __dir__(self):
return self.__data.keys()
# end::EXPLORE2[]