Skip to content

Commit bc4d79d

Browse files
committed
Modifying comments
1 parent d60ed5a commit bc4d79d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

singletons/singleton_mp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, x=100):
1818
self.x = x
1919

2020
def __setattr__(self, key, value):
21-
# For all lookups other than 'd'
21+
# For all lookups other than '_shared'
2222
# set value in the shared dictionary
2323
if key == '_shared':
2424
self.__dict__[key] = value
@@ -29,5 +29,7 @@ def __getattr__(self, key):
2929
if key in self.__dict__:
3030
return self.__dict__[key]
3131

32+
33+
# Lookups via shared memory
3234
return self._shared[key]
3335

0 commit comments

Comments
 (0)