bpo-36102: Prepend slash to all POSIX shared memory block names by applio · Pull Request #12036 · python/cpython
By defining a class attribute, we can permit this to be turned off easily in a simple subclass.
class NoSlashesSharedMemory(SharedMemory):
_prepend_leading_slash = False
Agreed that it could have simply been set equal to _USE_POSIX though I thought this would better emphasize that it is a True for POSIX and False otherwise. Perhaps this emphasis is unnecessary.