From b72cf17c676d9913f7ddacc7b5303c14dc828757 Mon Sep 17 00:00:00 2001 From: Navaneet Villodi <11260095+nauaneed@users.noreply.github.com> Date: Fri, 24 Apr 2026 12:59:52 +0530 Subject: [PATCH] transpiler: func name in warning for implicit symbols warning message for implicit symbols now also informs the function name. this is useful when multiple functions are compyled, so that we know which function the warning is about. --- compyle/transpiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compyle/transpiler.py b/compyle/transpiler.py index e43a661..8936b77 100644 --- a/compyle/transpiler.py +++ b/compyle/transpiler.py @@ -256,10 +256,11 @@ def _handle_external(self, func, declarations=None): func, self.backend ) if implicit and not get_config().suppress_warnings: - msg = ('Warning: the following symbols are implicitly defined.\n' + msg = ('Warning: the following symbols are implicitly defined ' + 'in function "%s".\n' ' %s\n' 'You may want to explicitly declare/define them.' - % implicit) + % (func.__name__, implicit)) print(msg) self._handle_externs(externs)