mirror of
https://github.com/Dvorinka/SpotifyRecAlg.git
synced 2026-06-04 12:33:03 +00:00
20 lines
584 B
Python
20 lines
584 B
Python
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__()
|