Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105978

Re: Re-using TCL code from python over network

From Christian Gollwitzer <auriocus@gmx.de>
Newsgroups comp.lang.python
Subject Re: Re-using TCL code from python over network
Date 2016-03-29 13:18 +0200
Organization A noiseless patient Spider
Message-ID <nddo39$5in$1@dont-email.me> (permalink)
References <172d629d-3dc8-4e47-b163-05b4f32a027c@googlegroups.com> <mailman.133.1459237246.28225.python-list@python.org>

Show all headers | View raw


Am 29.03.16 um 09:40 schrieb Karim:
> You can find below a partial example where I launch a python process
> from a tcl program to get data from python
> which reads a database. You just have to get and compile tclpython
> (google is your best friend) which is a C interface
> bridging python and tcl and allow to launch at most 5 python interpreter
> processes if I remember correctly.

tclpython embeds a Python interpreter into Tcl as a module. Therefire, 
this will only work, if Tcl and Python use the same machine language 
(i.e. 32bit or 64bit) and run on the same machine. I understood from the 
OP, that he wants to run Tcl in 32 bit mode, and connect to it from 
Python running 64 bit on a different machine. Therefore, only a true 
networked solution will work. However if he can manage to get both into 
the same process, this will be a lot easier, as outlined by your solution.

	Christian

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re-using TCL code from python over network sharad1087@gmail.com - 2016-03-28 22:20 -0700
  Re: Re-using TCL code from python over network Christian Gollwitzer <auriocus@gmx.de> - 2016-03-29 08:35 +0200
  Re: Re-using TCL code from python over network Karim <kliateni@gmail.com> - 2016-03-29 09:40 +0200
    Re: Re-using TCL code from python over network Christian Gollwitzer <auriocus@gmx.de> - 2016-03-29 13:18 +0200
      Re: Re-using TCL code from python over network sharad1087@gmail.com - 2016-03-29 08:02 -0700
  Re: Re-using TCL code from python over network sharad1087@gmail.com - 2016-03-29 01:37 -0700
  Re: Re-using TCL code from python over network Sharad Singla <sharad1087@gmail.com> - 2016-03-29 04:29 -0400
  Re: Re-using TCL code from python over network Karim <kliateni@gmail.com> - 2016-03-29 12:24 +0200
    Re: Re-using TCL code from python over network blacksqr@gmail.com - 2016-03-29 13:26 -0700

csiph-web