User bio
404 bio not found
Hamburg
Member since Jan 28, 2021
Posts:
Replies:
😀 Thanks.
Hi Guillaume,
I have been using embedded Python for a while and have found that the hybrid between ObjectScript and python code is not always easy to maintain and refactor.
That's why I have now consistently outsourced the python code to .py files and imported my modules via
##class(%SYS.Python).Import("mymodule")
after reading your post. So far I'm very happy with how things are going, except I've had problems when applying the pythonic naming conventions for method names.
def validate_header():
caused errors when I tried to call it this way:
$$$ThrowOnError(mymodule.validate_header())
I had to rename the method to
def validateHeader():
which isn't particularly bad, but
Open Exchange applications:
Certifications & Credly badges:
Tommy has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
Tommy has no followers yet.
Following:
Hi,
you can use this method to convert an ObjectScript $LIST to a Python list. I'm not sure if this works with %DynamicArray. If not you could try to convert the %DynamicArray to a $LIST first.
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...