[sr-dev] git:master:0d6d434a: app_python3: note about kemi symbols and python reserved words
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 27 10:08:15 CEST 2022
Module: kamailio
Branch: master
Commit: 0d6d434a92ae69cf1e503f07ffa6f46a9948593e
URL: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46a9948593e
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-10-27T10:07:36+02:00
app_python3: note about kemi symbols and python reserved words
---
Modified: src/modules/app_python3/doc/app_python3_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46a9948593e.diff
Patch: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46a9948593e.patch
---
diff --git a/src/modules/app_python3/doc/app_python3_admin.xml b/src/modules/app_python3/doc/app_python3_admin.xml
index c2648c48c82..0f4c63ffd04 100644
--- a/src/modules/app_python3/doc/app_python3_admin.xml
+++ b/src/modules/app_python3/doc/app_python3_admin.xml
@@ -34,6 +34,11 @@
this module, look at the files inside the source tree located at
'modules/app_python3/python_examples/'.
</para>
+ <para>
+ Note: if symbols exported to KEMI (module or function names) conflict
+ with Python's reserved keywords, use the 'getattr()' function or the
+ '__dict__' attribute for 'KSR' (e.g., 'KSR.__dict__["async"].task_route("myroute")').
+ </para>
</section>
<section>
<title>Dependencies</title>
More information about the sr-dev
mailing list