Open Nokiand opened 1 year ago
Restored on Sep 10, 2023 at 4:28 PM
cli $ python2
Python 2.7.13 (LC_ALL=C hg id -t .
:LC_ALL=C hg id -i .
, Apr 13 2019, 13:41:48)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> quit()
cli $ python2 -3 a.py
from command line python2
cli $ python2 -3 aa.py
cli $
Note: Only re-started the iPad and Python2 looks like it runs all of the time.
cli $ cli $ cat a.py print 'from command line python2' cli $ python2 -v a.py
installing zipimport hook
import zipimport # builtin
installed zipimport hook
zipimport: found 2636 names in /private/var/containers/Bundle/Application/C95F6A82-4ADD-408A-BFDC-99065B764105/LibTerm.app/python37.zip
import zlib # builtin
zipimport: zlib available
File "/private/var/containers/Bundle/Application/C95F6A82-4ADD-408A-BFDC-99065B764105/LibTerm.app/python37.zip/site.py", line 177 file=sys.stderr) ^ SyntaxError: invalid syntax
clear builtin._
clear sys.path
clear sys.argv
clear sys.ps1
clear sys.ps2
clear sys.exitfunc
clear sys.exc_type
clear sys.exc_value
clear sys.exc_traceback
clear sys.last_type
clear sys.last_value
clear sys.last_traceback
clear sys.path_hooks
clear sys.path_importer_cache
clear sys.meta_path
clear sys.flags
clear sys.float_info
restore sys.stdin
restore sys.stdout
restore sys.stderr
cleanup main
cleanup[1] zipimport
cleanup[1] signal
cleanup[1] zlib
cleanup[1] exceptions
cleanup[1] _warnings
cleanup sys
cleanup builtin
: 387585 unfreed ints cli $ cli $ cat aa.py help=0000 cli $ python2 aa.py File "/private/var/containers/Bundle/Application/C95F6A82-4ADD-408A-BFDC-99065B764105/LibTerm.app/python37.zip/site.py", line 177 file=sys.stderr) ^ SyntaxError: invalid syntax cli $ Note: All from the command line of LibTerm. It appears that from restart that the program runs, if first one types in Python2 and enters the interactive mode then to quit. Next to interpret files is excellent in this order.