Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-68429.py
File
recipe-68429.py
recipes/Python/68429_Ring_buffer/recipe-68429.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
RingBuffer:
2
def
__init__(self,size_max):
3
self.max = size_max
4
self.data = []
Callers
nothing calls this directly
Calls
3
RingBuffer
Class · 0.85
append
Method · 0.45
get
Method · 0.45
Tested by
no test coverage detected