diff --git a/CHANGES.md b/CHANGES.md index f7bb7f0..8d5eafb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # **Diagnosticism.Python** Changes +## 0.16.0 - 3rd August 2026 + +* + added `function()` alias for `func()`; + + ## 0.15.2 - 27th August 2025 * project boilerplate; diff --git a/README.md b/README.md index 931f34f..31de60a 100644 --- a/README.md +++ b/README.md @@ -247,6 +247,7 @@ The following functions are defined: | `fileline()` | Obtains the file+line in which the calling function is defined. | | `filelinefunc()` | Obtains the file+line+function in which the calling function is defined. | | `func()` | Obtains the function in which the calling function is defined. | +| `function()` | Alias for `func()`. | | `line()` | Obtains the line on which the calling function is defined. | diff --git a/diagnosticism/__init__.py b/diagnosticism/__init__.py index 81dad70..f145c6d 100644 --- a/diagnosticism/__init__.py +++ b/diagnosticism/__init__.py @@ -9,7 +9,7 @@ __license__ = 'BSD-3-Clause' __maintainer__ = 'Matt Wilson' __status__ = 'Beta' -__version__ = '0.15.2' +__version__ = '0.16.0' import sys @@ -38,6 +38,7 @@ fileline, filelinefunc, func, + function, is_tracing_enabled, line, trace, diff --git a/diagnosticism/tracing.py b/diagnosticism/tracing.py index 7711fe3..e9213a1 100644 --- a/diagnosticism/tracing.py +++ b/diagnosticism/tracing.py @@ -253,6 +253,9 @@ def func( return _flf(depth=1)[2] +function = func + + def line( **kwargs, ): diff --git a/setup.py b/setup.py index b3785ab..d80602f 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setuptools.setup( name='diagnosticism', - version='0.15.2', + version='0.16.0', author='Matt Wilson', author_email='matthew@synesis.com.au',