On Sat, Apr 20, 2019 at 3:38 PM Richard Schoen <richard@xxxxxxxxxxxxxxxxx>
wrote:
OK, the Python command wrapper library and source has been posted on
Github as a SAVF.
Very interesting, excellent work, and now some quibbles:
- Somewhat elaborate in attempting a generalized CL launcher for Python
progs that makes using it fairly complicated.
- Very many parameters the user has to sort through.
- The defaults in simply running a Python program via QSH are often
correct.
- No provision is made for output parameters back into CL.
- We've discussed this at length on this list
- Several design patterns for that have been proposed
- I'll show two at COMMON
Overall, it's a good tutorial exercise. But instead of handing folks a
whale, it would be nice if they'd learn to fish for trout themselves. It's
very easy to call Python from CL and also to return values back into CL
params from Python. There are a few tricks around quoting for the shell,
etc., but overall, understanding the design pattern is likely to be more
useful on the ground and in the long run than learning to use a script
which attempts (and comes up short of) solving every problem.
I believe, Richard Schoen, you will be at COMMON next month. We should
attend each other's sessions and compare notes and maybe do some impromptu
discussion groups with other users.
As an Amazon Associate we earn from qualifying purchases.