Skip to content

Commit 64ce745

Browse files
committed
Module.__getattr__ is updated, but it is still comment out.
1 parent fdb115f commit 64ce745

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

veriloggen/core/module.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,19 @@ def __getitem__(self, r):
404404
raise NameError("No such variable '%s'" % r)
405405
return v
406406

407-
#def __getattr__(self, attr):
408-
# try:
409-
# return vtypes.VeriloggenNode.__getattr__(self, attr)
410-
# except AttributeError as e:
411-
# if 'io_variable' in dir(self):
412-
# v = self.find_identifier(attr)
413-
# if v is not None:
414-
# return v
415-
# raise e
407+
# def __getattr__(self, attr):
408+
# try:
409+
# return vtypes.VeriloggenNode.__getattr__(self, attr)
410+
# except AttributeError as e:
411+
# if attr.startswith('__'):
412+
# raise e
413+
#
414+
# if 'object_id' in dir(self):
415+
# v = self.find_identifier(attr)
416+
# if v is not None:
417+
# return v
418+
#
419+
# raise e
416420

417421
#---------------------------------------------------------------------------
418422
def copy_params(self, src, prefix=None, postfix=None, exclude=None):

0 commit comments

Comments
 (0)