Data Structure in Python like STL Stack?

2005-11-28 Thread Matt Keyes
Is there a data structure in Python that is akin to the STL stack object in C++? Thanks!-- http://mail.python.org/mailman/listinfo/python-list

Re: Data Structure in Python like STL Stack?

2005-11-28 Thread Matt Keyes
I didn't know the list has a pop function - that is what I was looking for. Thanks for the help![EMAIL PROTECTED] wrote: What property of the STL stack is important to you?You can use a Python list as a stack. It has methods append() andpop() which run in amortized-constant-time. It can be tested

_BLOCK_TYPE_IS_VALID error in MSVC 7.1 with Boost and Python

2005-10-06 Thread matt . keyes
Hey all, i'm trying to create an application that both embeds and extends python through boost. i've got a rough framework up and running, but now that i'm finally to the python part i'm having troubles. Here's a rough run-down of my code: Base class (pure): templateclass commandtype