Version 3 of tclpython

Updated 2004-10-15 07:11:05

What: tclpython

 Where: http://jfontain.free.fr/tclpython.htm
 Description: Tcl extenson which allows you to create python interpreters
        from within a Tcl application and evaluate python code.
        Currently at version 2.1.0 .
 Updated: 02/2001
 Contact: mailto:[email protected] (Jean-Luc Fontaine )

This package allows the execution of Python code from a Tcl interpreter, as in:

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

which outputs:

 Hello World
 1.5

It works by creating one or more embedded Python interpreters and sending them strings to evaluate or execute. Modules can be loaded in the Python interpreter as if it were the real Python program.


 What:  [incr Tcl] itclpython
 Where: http://sourceforge.net/project/showfiles.php?group_id=13244&release_id=39973
 Description: Extension permitting you to host python interpreters from
        itcl.  Supports UNICODE return into Tcl and standard channel
        redirection.
        Currently at version 1.0 .
 Updated: 09/2001
 Contact: mailto:[email protected]

Typcl is a python extension which embeds Tcl in Python. But it's a weird one... it's built with Critcl. Part of critlib, see [L1 ]. -jcw

You can also use the classical Tkinter package in Python to get a Tcl interpreter. On my computer Python 2.3 provides Tcl 8.4.3, quite up-to-date. JM. Philippe


Category Package