Missing introspection methods in Python

This commit is contained in:
Thomas Krijnen
2017-08-02 16:08:07 +02:00
parent b696df0da1
commit a58f23fae2
2 changed files with 19 additions and 2 deletions
@@ -120,8 +120,8 @@ class entity_instance(object):
def __dir__(self):
return sorted(set(itertools.chain(
dir(type(self)),
self.wrapped_data.get_attribute_names(),
self.wrapped_data.get_inverse_attribute_names()
map(str, self.wrapped_data.get_attribute_names()),
map(str, self.wrapped_data.get_inverse_attribute_names())
)))
def get_info(self, include_identifier=True, recursive=False):