mirror of
https://github.com/Dvorinka/SpotifyRecAlg.git
synced 2026-06-04 04:23:02 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from collections.abc import Iterator
|
||||
|
||||
|
||||
class CustomList(list):
|
||||
"""
|
||||
A custom list implementation with hooks for future shared memory support.
|
||||
|
||||
This list can be used as a drop-in replacement for standard lists.
|
||||
Future enhancement: implement SharedMemoryList for inter-process
|
||||
communication without serialization overhead.
|
||||
"""
|
||||
|
||||
def __getitem__(self, index):
|
||||
# Hook for shared memory operations
|
||||
return super().__getitem__(index)
|
||||
|
||||
def __iter__(self) -> Iterator:
|
||||
# Hook for shared memory operations
|
||||
return super().__iter__()
|
||||
Reference in New Issue
Block a user