projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert comment into doctest.
[python_utils.git]
/
function_utils.py
diff --git
a/function_utils.py
b/function_utils.py
index f027f8ce9d07fd22c7d18af2cccc0f92413115d9..f74a852d7d8834ccc38bda39f21c6d381339a7f1 100644
(file)
--- a/
function_utils.py
+++ b/
function_utils.py
@@
-1,5
+1,9
@@
#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
+"""Helper methods dealing with functions."""
+
from typing import Callable
@@
-18,6
+22,7
@@
def function_identifier(f: Callable) -> str:
"""
if f.__module__ == '__main__':
from pathlib import Path
+
import __main__
module = __main__.__file__