mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-15 11:22:18 +08:00
6 lines
281 B
Python
6 lines
281 B
Python
def stringify_args(*args, **kwargs):
|
|
"""Define a unique string for any set of args."""
|
|
arg_string = '_'.join([str(arg) for arg in args])
|
|
kwarg_string = '_'.join([str(key) + '=' + str(value) for key, value in kwargs])
|
|
combined = ':'.join([arg_string, kwarg_string])
|