From Healthcare Robotics Wiki
Revision as of 18:16, 29 October 2009 by Mkillpack (Talk | contribs)

Jump to: navigation, search

learning python

math, science, numerical, etc.


When you need buffering of some sort for logging/writing data, if speed is important use the deque() data structure instead of lists (see: This can be done by the following commands:

   from collections import deque
       buffer = deque()
       buffer.appendleft(x) #to append an item=x to the deque on one end or the other
       buffer.popleft() #to pop the item from one end or the other