Exemplo n.º 1
0
 def __init__(self, sourceCollection = None):
     """
     Sets the initial state of self, which includes the
     contents of sourceCollection, if it's present.
     """
     self._items = None
     AbstractStack.__init__(self, sourceCollection)
Exemplo n.º 2
0
 def __init__(self, source_collection=None):
     """
     Sets the initial state of self, which includes the contents of sourceCollection,
     if it's present.
     """
     self.items = Array(ArrayStack.DEFAULT_CAPACITY)
     AbstractStack.__init__(self, source_collection)
Exemplo n.º 3
0
 def __init__(self, sourceCollection = None):
     """Sets the initial state of self, which includes the
     contents of sourceCollection, if it's present."""
     self.items = None
     self.size = 0
     self.sourceCollection = sourceCollection
     self.ab_collection = AbstractStack(self.sourceCollection) 
Exemplo n.º 4
0
 def __init__(self, sourceCollection=None):
     """Sets the initial state of self, which includes the
     contents of sourceCollection, if it's present."""
     self._items = Array(ArrayStack.DEFAULT_CAPACITY)
     AbstractStack.__init__(self, sourceCollection)
Exemplo n.º 5
0
 def __init__(self, sourceCollection=None):
     self._items = None
     AbstractStack.__init__(self, sourceCollection)
Exemplo n.º 6
0
 def __init__(self, sourceCollection=None):
     AbstractArray.__init__(self)
     AbstractStack.__init__(self, sourceCollection)
 def __init__(self, source_collection=None):
     self._items = Array(ArrayStack.DEFAULT_CAPACITY)
     AbstractStack.__init__(self, source_collection)
Exemplo n.º 8
0
 def __init__(self, items=None):
     self._items = Link()
     AbstractStack.__init__(self, items)
Exemplo n.º 9
0
 def __init__(self, sourceCollection=None):
     self._items = None
     AbstractStack.__init__(self, sourceCollection)
Exemplo n.º 10
0
 def __init__(self, items = None):
     self._items = Array()
     AbstractStack.__init__(self, items)