mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +00:00
13 lines
216 B
Python
13 lines
216 B
Python
import dpath
|
|
|
|
|
|
def strict_map(*args, **kwargs):
|
|
return list(map(*args, **kwargs))
|
|
|
|
|
|
def safe_get(obj, glob, default=None):
|
|
try:
|
|
return dpath.get(obj, glob)
|
|
except KeyError:
|
|
return default
|