MCPcopy Create free account
hub / github.com/Singular/Singular / rewrite

Method rewrite

Singular/dyn_modules/python/util.py:48–52  ·  view source on GitHub ↗
(self, a,b)

Source from the content-addressed store, hash-verified

46 def all_rewritings(self,var):
47 pass
48 def rewrite(self, a,b):
49 a=self.canonical(a)
50 b=self.canonical(b)
51 if not a==b:
52 self.mydict[a]=b
53 def __getitem__(self,key):
54 return self.canonical(key)
55 def __setitem__(self, val, key):

Callers 1

__setitem__Method · 0.95

Calls 1

canonicalMethod · 0.95

Tested by

no test coverage detected