HP Prime Python runs consecutive programs
|
09-23-2023, 05:57 PM
Post: #2
|
|||
|
|||
RE: HP Prime Python runs consecutive programs
(09-22-2023 07:42 PM)Pellidon Wrote: I have two scripts. When the first one is done, the second imports and runs. This does not occur on my Casio, Numworks or either TI calculators with Python. When the second one is done, it does not import back to the first file. Very strange.Unfortunately the Prime doesn't allow for selected imports or runs. One work around is to enclose all programs in "def xx():" you do this on the Numworks too usually, don't you? Consider you have 2 programs "main" and "another" Then "main" may have as content: Code: def foobar(): and "another" may have as content: Code: def foobar(): Entering "main.foobar()" will then show: "this is from main" consequently "another.foobar()" will then show: "this is from another" That's a bit cumbersome, hopefully someone does a thorough repair on the Python implementation. I'll elaborate a bit on this at the HHUC at Orlando. HTH Günter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP Prime Python runs consecutive programs - Pellidon - 09-22-2023, 07:42 PM
RE: HP Prime Python runs consecutive programs - Guenter Schink - 09-23-2023 05:57 PM
RE: HP Prime Python runs consecutive programs - toml_12953 - 09-24-2023, 03:50 PM
RE: HP Prime Python runs consecutive programs - Guenter Schink - 09-24-2023, 07:14 PM
RE: HP Prime Python runs consecutive programs - Pellidon - 09-24-2023, 09:50 PM
RE: HP Prime Python runs consecutive programs - Pellidon - 09-25-2023, 03:00 PM
RE: HP Prime Python runs consecutive programs - Guenter Schink - 09-28-2023, 09:31 PM
RE: HP Prime Python runs consecutive programs - Pellidon - 09-29-2023, 05:47 PM
RE: HP Prime Python runs consecutive programs - Guenter Schink - 09-29-2023, 06:31 PM
RE: HP Prime Python runs consecutive programs - toml_12953 - 09-29-2023, 08:36 PM
|
User(s) browsing this thread: 1 Guest(s)