@@ -0,0 +1,12 @@
|
||||
from frozendict import frozendict
|
||||
|
||||
config = frozendict(host="localhost", port=8080)
|
||||
print(config["host"])
|
||||
|
||||
|
||||
permissions = {
|
||||
frozendict(role="admin"): ["read", "write", "delete"],
|
||||
frozendict(role="viewer"): ["read"],
|
||||
}
|
||||
|
||||
print(permissions[frozendict(role="admin")])
|
||||
Reference in New Issue
Block a user