Re: Invoke Python procedure from TCL
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Invoke Python procedure from TCL

From: <jfontain@free.fr>
Date: Wed May 25 2005 - 17:30:21 CEST

ab a écrit :
> Thanks for the reply.
> but Tclpython doesn't mention how to invoke
> Python procedures from Tcl.

>>From http://jfontain.free.fr/tclpython.htm :

package require tclpython 4
set interpreter [python::interp new]
$interpreter exec {print("Hello World")}
puts [$interpreter eval 3/2.0]
python::interp delete $interpreter

exec or eval seems to be able to achieve what you are looking for.
Please read http://jfontain.free.fr/tclpython.htm and let me know if
you have any questions.

Jean-Luc
Received on Thu Sep 29 14:18:59 2005