import logging logger = logging.getLogger(__name__) class GlobalScope(dict): def __getattr__(self, item): try: return self[item] except KeyError as err: raise AttributeError(f"{item} is not in global scope") from err def __setattr__(self, key, value): if key in self: logger.warning("Name %s is already in global scope", key) else: self[key] = value g = GlobalScope()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 0 B | 0644 |
|
auth_protocol.py | File | 1.18 KB | 0644 |
|
cln.py | File | 11.91 KB | 0644 |
|
global_scope.py | File | 462 B | 0644 |
|
iaid.py | File | 12.15 KB | 0644 |
|
lazy_load.py | File | 195 B | 0644 |
|
logger.py | File | 16.53 KB | 0644 |
|
logging_protocol.py | File | 1.07 KB | 0644 |
|
persistent_message.py | File | 2.82 KB | 0644 |
|
the_sink.py | File | 11.1 KB | 0644 |
|