🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #45

Re: Python

#45
From: Ralf Fassel
Date: Wed, 14 Oct 2026 16:04
18 lines
1656 bytes
* saito <saitology9@gmail.com>
| I would like to start a python session, send it some simple commands
| and get the results back. From Tcl, I have tried opening a pipe with
| RDWR and r+ and various fconfigure/filevenets and none seem to work.
>
| AI bot solutions end up hanging on the reading part as well.
>
| Is this use case possible?

Why not write a temp file with the simple commands and call python with
that?

  set fd [file tempfile tmpfile]
  puts $fd $simple_commands
  close $fd
  set result [exec python $tmpfile]
  
R'
Technical Details
Message-ID: <ygapkxcuv3y.fsf@akutech.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11anurd$1gcvi$2@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Ralf Fassel <ralfixx@gmx.de>
Newsgroups: comp.lang.tcl
Subject: Re: Python
Date: Wed, 14 Oct 2026 18:04:17 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <ygapkxcuv3y.fsf@akutech.de>
References: <11anurd$1gcvi$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 14 Oct 2026 16:04:18 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1722219"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+RrHo5F6138BAwVC511TA+"; posting-host="834612c7cb9ad543293803170623070f"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:iDaGVaIEfbK7QgF4gzZKcA+0QeY=
	sha1:LbrpzhrRTerucBxz2+/L7pLx9oc= sha256:0uFq2Q9rk+N4YDiGGnNlicQSsjS42VbSWoWHwCUEl2Y=
	sha1:h2Mo6TZXW2qR3ES+Tk2QEUQ5SCg= sha256:Iwa1XW8QhlhwOZX1J8rELC+Ccn/1woWFkUTf9u85x08=