Passing values from PPL to Python and vice versa - an alternative to AVars
|
12-05-2023, 06:16 PM
(This post was last modified: 12-05-2023 06:48 PM by Guenter Schink.)
Post: #2
|
|||
|
|||
RE: Passing values from PPL to Python and vice versa - an alternative to AVars
Quote:Note that one of the known issues in Prime is the transfer of numerical values above three digits (more than 999) to Python as a parameter (via the argv[]) This "problem" is dependent on the digit grouping setting in the Home environment. To avoid it, at least partially, look at "HSeparator" which determines digit grouping. In one of your examples you could add these three lines as indicated: Code:
Now the 3 digits limit is gone.(haven't tested it though) Günter [Edit] BTW: your program doesn't return the list. Seems that in: "PYPPL.pyresult:=%s' %numbers" the PYPPL needs to be deleted and pyresult has to be declared as EXPORT instead of LOCAL. Or I did overlook something? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)