ANNOUNCE: Itclpython 0.2

David Gravereaux davygrvy at pobox.com
Tue Jun 12 13:16:04 EDT 2001


Host a Python interpreter from Tcl:

http://sourceforge.net/project/showfiles.php?group_id=13244&release_id=39101

This is new and experimental, but appears to be working OK.  The standard
channels haven't been linked together, yet.  Unicode transfer from Python to Tcl
appears to be working...  This is actually an [Incr Tcl] extension using its OO
services.  Here's a screen shot of it in action:

D:\>tclsh84
% package require itclpython
0.2
% set i [python::interp #auto]
interp0
% $i exec {import sys}
% $i eval {sys.executable}
C:\PROGRA~1\Tcl\bin\tclsh84.exe
% catch {$i eval {eval("import random")}} err
1
% set err
  File "<string>", line 0, in ?
  File "<string>", line 1
    import random
         ^
SyntaxError: invalid syntax (line 1)
% itcl::delete object $i
% exit


I don't know much Python, as I'm a newbie, and would appreciate people trying
this.
--
David Gravereaux <davygrvy at pobox.com>
>>> The Original Famous Beyond Compare and Absolutely
the First Ray's Pizza, NYC <<<



More information about the Python-list mailing list