Skip to content
Snippets Groups Projects
Commit 0ba5f4e2 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

struct: add basic repr

same as str for now.
parent 3b45bceb
No related branches found
No related tags found
No related merge requests found
Pipeline #128475 passed
......@@ -206,12 +206,12 @@ class Struct(object):
else:
return y
# def __repr__(self):
# return self.to_yaml().strip('\n')
def __str__(self):
return '<GWINC Struct: {}>'.format(list(self.__dict__.keys()))
def __repr__(self):
return self.__str__()
def __iter__(self):
return iter(self.__dict__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment