When I try to print the value of the self.store_obj_stack, it is giving me the location of that variable instead of the value.
class StackStorage(object):
def __init__(self, dataList):
self.dList = dataList
self.store_obj_stack = Stack()
print(self.store_obj_stack)
I have imported the Stack from the other class, which is like this:
from collections import deque
import copy
class Stack(object):
def __init__(self):
self.__stack = deque()
I am getting this:
<stack.Stack object at 0x1032fc580>