🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #51

Re: Python

#51
From: saito
Date: Wed, 14 Oct 2026 20:08
21 lines
1683 bytes
On 10/14/2026 12:04 PM, Ralf Fassel wrote:
> 
> 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]
>    

Commands are read at a time from a text widget when a button is clicked. 
So this would require idle file reads and waits at both Tcl and python, 
if I am not mistaken.






Technical Details
Message-ID: <11aonfn$1qct6$1@dont-email.me>
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> <ygapkxcuv3y.fsf@akutech.de>

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: saito <saitology9@gmail.com>
Newsgroups: comp.lang.tcl
Subject: Re: Python
Date: Wed, 14 Oct 2026 16:08:21 -0400
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <11aonfn$1qct6$1@dont-email.me>
References: <11anurd$1gcvi$2@dont-email.me> <ygapkxcuv3y.fsf@akutech.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 14 Oct 2026 20:08:24 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1913766"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/v62GMZnhcsRjapogP+M1A"; posting-host="52068a63e7435970c049b204df29410e"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OT02DmhuQ3UWjVhjgBxrZfpjrgA= sha256:qqPLG7ntHUWW+0jOopFWiPR4SfDBzMTJtjexuif97OM=
	sha1:SfRcIUzc3Niz8anheKdc9m5Fzho= sha256:sFjW3SO7Tbw1BlJbof4+UmidFG44U5P7VT8IthJbzEo=
Content-Language: en-US
In-Reply-To: <ygapkxcuv3y.fsf@akutech.de>