projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dynamic config arguments stab #1.
[python_utils.git]
/
collect
/
shared_dict.py
diff --git
a/collect/shared_dict.py
b/collect/shared_dict.py
index e0a42f2c55c2fc865b0c89642d458ae26009c224..3207927ed2f550b6516bce0c1b72fd96d7581ba4 100644
(file)
--- a/
collect/shared_dict.py
+++ b/
collect/shared_dict.py
@@
-4,7
+4,7
@@
The MIT License (MIT)
Copyright (c) 2020 LuizaLabs
The MIT License (MIT)
Copyright (c) 2020 LuizaLabs
-Additions Copyright (c) 2022 Scott Gasch
+Additions
/Modifications
Copyright (c) 2022 Scott Gasch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@
-29,11
+29,17
@@
This class is based on https://github.com/luizalabs/shared-memory-dict
import pickle
from contextlib import contextmanager
import pickle
from contextlib import contextmanager
-from functools import wraps
from multiprocessing import RLock, shared_memory
from multiprocessing import RLock, shared_memory
-from typing import Any, Dict, Generator, ItemsView, Iterator, KeysView, Optional, ValuesView
-
-from decorator_utils import synchronized
+from typing import (
+ Any,
+ Dict,
+ Generator,
+ ItemsView,
+ Iterator,
+ KeysView,
+ Optional,
+ ValuesView,
+)
class PickleSerializer:
class PickleSerializer: