From 1091f35315f6b3f78d6a7314c1ab4e93c94fbba9 Mon Sep 17 00:00:00 2001 From: Hazzoz Date: Thu, 30 Jul 2026 21:16:51 +1000 Subject: [PATCH 1/2] Adding func alias function --- README.md | 1 + diagnosticism/__init__.py | 1 + diagnosticism/tracing.py | 3 +++ 3 files changed, 5 insertions(+) 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..9b7284b 100644 --- a/diagnosticism/__init__.py +++ b/diagnosticism/__init__.py @@ -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, ): From 35ab4922eed27ec49dde993664c0a1e763f605eb Mon Sep 17 00:00:00 2001 From: Hazzoz Date: Mon, 3 Aug 2026 22:18:18 +1000 Subject: [PATCH 2/2] Updating version and docs --- CHANGES.md | 5 +++++ diagnosticism/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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/diagnosticism/__init__.py b/diagnosticism/__init__.py index 9b7284b..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 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',