diff --git a/CHANGES.md b/CHANGES.md index b84ca48..0a00cf2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # **Diagnosticism.Python** Changes +## 0.18.0 - 6th August 2026 + +* + added `function()` alias for `func()`; + ## 0.17.0 - 10th July 2026 * added `DOOMGram::to_mmm()` and `DOOMGram::to_nmmm()` — compact min/mean/max duration summaries using `nanoseconds_to_string()`; diff --git a/README.md b/README.md index 8819cbe..a242c20 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,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 6592d6d..7dba055 100644 --- a/diagnosticism/__init__.py +++ b/diagnosticism/__init__.py @@ -9,7 +9,7 @@ __license__ = 'BSD-3-Clause' __maintainer__ = 'Matt Wilson' __status__ = 'Beta' -__version__ = '0.17.0' +__version__ = '0.18.0' import sys @@ -67,6 +67,7 @@ fileline, filelinefunc, func, + function, is_tracing_enabled, line, trace, diff --git a/diagnosticism/tracing.py b/diagnosticism/tracing.py index b85a354..ede54d4 100644 --- a/diagnosticism/tracing.py +++ b/diagnosticism/tracing.py @@ -251,6 +251,9 @@ def func( return _flf(depth=1)[2] +function = func + + def line( **kwargs ): diff --git a/setup.py b/setup.py index 89ef9d5..f22c51b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ name='diagnosticism', python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*', - version='0.17.0', + version='0.18.0', author='Matt Wilson', author_email='matthew@synesis.com.au',