MCPcopy Create free account
hub / github.com/ActiveState/code / sub

Method sub

recipes/Python/59884_RPN_Stack_class/recipe-59884.py:163–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 self.pop(2); self.push(newx)
162
163 def sub(self):
164 newx = self.gety() - self.getx()
165 self.pop(2); self.push(newx)
166
167 def mul(self):
168 newx = self.gety() * self.getx()

Callers 15

find_replaceFunction · 0.45
compressMethod · 0.45
cjkwrapFunction · 0.45
readlineMethod · 0.45
_name_mangleFunction · 0.45
convert_templateFunction · 0.45
searchMethod · 0.45
reposFunction · 0.45
copyblockMethod · 0.45
apply_rulesFunction · 0.45
RenameFileFunction · 0.45
pushMethod · 0.45

Calls 4

getyMethod · 0.95
getxMethod · 0.95
popMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected