[SciPy-user] array like circular buffer?

John Hunter jdhunter at ace.bsd.uchicago.edu
Thu Oct 27 15:02:00 CDT 2005


I would like to have a fixed size array like data structure that has
circular buffer semantics.  Eg, when empty you can call a "put" method
that starts in the beginning and fills the sucker up, and when you
overflow the end it starts pushing the data from the 0 index off the
stack -- FIFO.  Ideally, it would support slicing and friends.

Is there such a beast, or something close?

Thanks,
JDH



More information about the SciPy-user mailing list