Module: kamailio Branch: master Commit: 0d6d434a92ae69cf1e503f07ffa6f46a9948593e URL: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46a...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/0d6d434a92ae69cf1e503f07ffa6f46a... Patch: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46a...
---
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>