Carl Friedrich Bolz committed 25523b8

make quasi-immutable fields actually useful here

  • Participants
  • Parent commits 5d58831
  • Branches celldict-versions

Comments (0)

Files changed (1)

File pypy/objspace/std/

        self.version = VersionTag()
     def getdictvalue_no_unwrapping(self, w_dict, key):
+        # NB: it's important to promote self here, so that self.version is a
+        # no-op due to the quasi-immutable field
+        self = jit.promote(self)
         return self._getdictvalue_no_unwrapping_pure(self.version, w_dict, key)