Commits

Carl Friedrich Bolz  committed abf7d12

make some fields of Module immutable

  • Participants
  • Parent commits dadf952
  • Branches compress-terms2

Comments (0)

Files changed (1)

File prolog/interpreter/module.py

 
 
 class Module(object):
+    _immutable_fields_ = ["name", "nameatom"]
     def __init__(self, name):
         self.name = name
         self.nameatom = Atom(name)