apptools.logger.ring_buffer module

Copied from Python Cookbook.

class apptools.logger.ring_buffer.RingBuffer(size_max)[source]

Bases: object

append(x)[source]

append an element at the end of the buffer

get()[source]

return a list of elements from the oldest to the newest

class apptools.logger.ring_buffer.RingBufferFull(n)[source]

Bases: object

append(x)[source]
get()[source]