Esempio 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)
Esempio 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)
Esempio 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) 
Esempio 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)
Esempio n. 5
0
 def __init__(self, sourceCollection=None):
     self._items = None
     AbstractStack.__init__(self, sourceCollection)
Esempio 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)
Esempio n. 8
0
 def __init__(self, items=None):
     self._items = Link()
     AbstractStack.__init__(self, items)
Esempio n. 9
0
 def __init__(self, sourceCollection=None):
     self._items = None
     AbstractStack.__init__(self, sourceCollection)
Esempio n. 10
0
 def __init__(self, items = None):
     self._items = Array()
     AbstractStack.__init__(self, items)