import sys; sys.path.append('..')
from mxStack import *
s = Stack()
print repr(s)
s = Stack()
for i in range(1000):
      s.push(i)
while s:
      print s.pop(),
# which could also be done as:
s = StackFromSequence(range(1000))
while s:
      print s.pop(),
# or a little different
s = StackFromSequence(range(1000))
print s.as_tuple()
print s.as_list()

# pop many
print 'Pop 3 entries at once:',s.pop_many(3)

print 'Works.'
