120919 Marc Joliet wrote:
> 120918 Philip Webb <purs...@ca.inter.net> wrote:
>> With Python running as interpreter, I would get much more capability,
>> but I would need to enter the special line to load the math functions :
>> is it possible to do it with some capitalised variable in  .bashrc ,
>> which might list parameters telling Python3 what to load when it starts ?
>> one of the 'man' files seems to refer to something like that, but briefly.
> 3.) Put the "import" line in its own file and put it in the variable
> PYTHONSTARTUP, e.g. "export PYTHONSTARTUP=/path/to/my/script.py".
> Python executes it's contents before presenting the prompt,
> so you can put whatever imports you want in that script.

Thanks, that's what I saw in my brief glance at the 'man'.
It works out of the box: the only problem is precision,
which at  16  decimal places is a bit more than I usually need (smile).
I can search out how to limit it to something more useful to me,
but might you have a quick answer ?  Thanks for the above.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca


Reply via email to