On Raspbian run multiple python Versions simultaniously

Viewed 886

I have some old programs from back in the times when python 3.1 came out. In the program I often used the Callable() to pass a function and it's parameters like this to my TKinter application:

tvf.mi(datei_bu, text=datei_opt, command=Callable(exec_datei_opts, datei_opt))

Now I wanted to use my programs again but the callable- Object was gone. In the web I found that this functionality was removed in python 3.2, and none of the alternatives worked for me.

Finally I decided to reinstall python 3.1. However, I have no idea if it is possible to have multiple python 3 versions installed at the same time or how to 'create' a shell command for this version when I want to use this special version.

My questions are:

  • Is there a replacement for the Callable- Object that was removed?
  • How can I use multiple python versions at the same time?
  • How can I create a matching shell command?
7 Answers

From the terminal, run with:

python3.1 your_program.py
Related