[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2020-06-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Problems with multiprocessing and tkinter on Mac might have been due to using 
the default start method, which used to be fork and is now spawn.  This should 
be retested sometime.

--
nosy:  -kbk, roger.serwy
versions: +Python 3.10 -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2019-02-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#34313 reports problems with multiprocessing when using at least some versions 
of tkinter on some versions of macOS.

--
versions: +Python 3.8 -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2014-03-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Pydev, Re: Status of PEP 3145 - Asynchronous I/O for subprocess.popen; Antoine 
Pitrou:
 Why don't you use multiprocessing or concurrent.futures? They have
 everything you need for continuous conversation between processes.

--
stage:  - needs patch
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2014-03-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In the thread that started here
https://mail.python.org/pipermail/python-dev/2014-March/133492.html
in this message.
https://mail.python.org/pipermail/python-dev/2014-March/133671.html
Josiah Carlson posted a pastebin link about how to actually use the pipes. 
Guido recommended that the he post a revised version to a new issue, as a patch 
to subprocess, but I am uploading it here to make sure it does not get lost.

--
Added file: http://bugs.python.org/file34654/Carlson.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2014-03-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

https://mail.python.org/pipermail/python-dev/2014-March/133641.html
from Victor Stinner gives example code using asyncio

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2014-02-01 Thread Kurt B. Kaiser

Changes by Kurt B. Kaiser k...@shore.net:


--
nosy: +kbk

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2013-09-04 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2013-08-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2013-08-30 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2013-08-26 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2013-08-23 Thread Terry J. Reedy

New submission from Terry J. Reedy:

Idle once used os.spawnv to open the user subprocess and 2.7 still does. 
Sockets were then used to interact with the subprocess. Since rev71746, 
2011-8-3, 3.2+ use subprocess.Popen but still use sockets. A rare but continual 
problem is failure to make the socket connection.

In #16123, Amaury Forgeot d'Arc suggested pipes? The idea resurfaced again in 
current Idle-sig thread Idle does not open on mac (because socket connection 
timed out). Guido, who designed the current 2.x system, chimed in with I would 
recommend trying to use the subprocess module.

A current python-list thread indicates that there can be problems with
Running a command line program and reading the result as it runs
http://mail.python.org/pipermail/python-list/2013-August/654265.html

In particular, for line in p: gets lines delayed (buffered) while
Peter Otten discovered that for line in iter(p.stdout.readline, ''): gets 
them as they are produced.
http://mail.python.org/pipermail/python-list/2013-August/654330.html

We first need to experiment running a simple echo server with python(w).exe.  I 
have not succeeded yet on Windows.

--
components: IDLE
messages: 196055
nosy: roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: Idle: use pipes instead of sockets to talk with user subprocess
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18823
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com