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

Method push

recipes/Python/59884_RPN_Stack_class/recipe-59884.py:39–40  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

37 #these first few carry out basic stack functions. always necessary
38
39 def push(self, item):
40 self.stack = [item] + self.stack
41
42 def pop(self, num_of_loops=1):
43 x=[]

Callers 15

__init__Method · 0.95
addMethod · 0.45
subMethod · 0.45
mulMethod · 0.45
divMethod · 0.45
moduloMethod · 0.45
powMethod · 0.45
negMethod · 0.45
sinMethod · 0.45
cosMethod · 0.45
tanMethod · 0.45
arcsinMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected