Post Reply 
Python, separate file handling
04-26-2021, 12:32 PM
Post: #21
RE: Python, separate file handling
(04-26-2021 12:11 PM)Dirk.nl Wrote:  Hi Jonmoore,

Thank you, I did read your post. Will investigate this.
Actually, I also find it easy to sit on the sofa and play with my calculator instead of a PC on my lap (smile !).

Regards, Dirk

This has long been known as "couch hacking", a term coined by Joe Horn many years ago. Hard to explain to non-enthusiasts... Smile

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
04-26-2021, 01:53 PM
Post: #22
RE: Python, separate file handling
Sorry I may have made the wrong impression, I am very enthousiast about my HP Prime and thankful that Cyrille, Tim and Parise still care about supports and updates. That should also be apparent from all my previous posts.
My questions only concern my “ignorance”.
I know that this is indeed a Beta version and that the HP team needs time to streamline things.
No problem !!!

Best regards, Dirk

— Dirk Hartland
Find all posts by this user
Quote this message in a reply
04-26-2021, 05:53 PM
Post: #23
RE: Python, separate file handling
(04-26-2021 01:53 PM)Dirk.nl Wrote:  Sorry I may have made the wrong impression, I am very enthousiast about my HP Prime and thankful that Cyrille, Tim and Parise still care about supports and updates. That should also be apparent from all my previous posts.
My questions only concern my “ignorance”.
I know that this is indeed a Beta version and that the HP team needs time to streamline things.
No problem !!!

Best regards, Dirk

No, no poor impression at all... Smile

Couch hacking is not pejorative in any way, it's a term for fun exploration, typically while on the couch, using a calculator for no specific reason, other than to explore the calculator, or math, or one's brain, and in the best possible case, all three!

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
04-26-2021, 06:48 PM
Post: #24
RE: Python, separate file handling
Hi Bob,

Sorry, I misunderstood you !!!
Excuse me, apologies.

Kind regards, Dirk

— Dirk Hartland
Find all posts by this user
Quote this message in a reply
04-28-2021, 03:22 PM
Post: #25
RE: Python, separate file handling
For testing small programs I do the following; I make various small definitions that I can then start separately with a call to the relevant definition. I don't have to delete a small individual program every time and make another one again.

Continuing with my simple research:

1)
I miss the instruction “import” (with soft key Tmplt or Cmds), but also the instructions “import <lib_ names>” (for example; import math). The advantage is (if these are available for all libraries) that you can immediately see which libraries can be imported.

2)
With soft key Cmds -> math -> sqrt (as an example!), help indicates “math.sqrt (x)” with an explanation. Inserting this only inserts sqrt, without math. and parentheses.
Seems better to insert math. before and insert () after.
You now must type this in every time.
Of course this applies to all corresponding instructions.

Am I missing something? (pff, I miss something more often!)
Sorry if this has been reported before.

— Dirk Hartland
Find all posts by this user
Quote this message in a reply
04-29-2021, 10:00 AM
Post: #26
RE: Python, separate file handling
The April 28th update has fixed “the missing import instruction”.
This was earlier solved than my question about this !
Cyrille, thank you very much !

— Dirk Hartland
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)