threading and multiprocessing deadlock

2021-12-05 Thread Johannes Bauer
Hi there, I'm a bit confused. In my scenario I a mixing threading with multiprocessing. Threading by itself would be nice, but for GIL reasons I need both, unfortunately. I've encountered a weird situation in which multiprocessing Process()es which are started in a new thread don't actually start

python list files and folder using tkinter

2021-12-05 Thread Pascal B via Python-list
Hello, I have already posted a message some time ago for this app. Since then, I didn't code in python or made any changes. I think before getting further with functionnalities a few things or the whole thing need to be changed. For exemple, it would need a button to pick folders and maybe ask if

Re: Python child process in while True loop blocks parent

2021-12-05 Thread Peter J. Holzer
On 2021-12-06 00:51:13 +0100, Jen Kris via Python-list wrote: > The C program creates two threads (using pthreads), one for itself and > one for the child process.  On creation, the second pthread is pointed > to a C program that calls fork-execv to run the Python program.  That > way Python runs o

Re: Python child process in while True loop blocks parent

2021-12-05 Thread Jen Kris via Python-list
By embedding, I think you may be referring to embedding Python in a C program with the Python C API.   That's not what I'm doing here -- I'm not using the Python C API.  The C program creates two threads (using pthreads), one for itself and one for the child process.  On creation, the second pth

Re: Python child process in while True loop blocks parent

2021-12-05 Thread Barry
> On 5 Dec 2021, at 17:54, Jen Kris wrote: > >  > Thanks for your comments. > > I put the Python program on its own pthread, and call a small C program to > fork-execv to call the Python program as a child process. What do you mean by putting python in it’s own pthread? Are you embedding

Re: Python child process in while True loop blocks parent

2021-12-05 Thread Jen Kris via Python-list
Thanks for your comments.  I put the Python program on its own pthread, and call a small C program to fork-execv to call the Python program as a child process.  I revised the Python program to be a multiprocessing loop using the Python multiprocessing module.  That bypasses the GIL and allows

ANN: A new library for encryption and signing has been released.

2021-12-05 Thread Vinay Sajip via Python-list
A new library called pagesign (Python-age-sign) has been released on PyPI [1]. It covers similar functionality to python-gnupg, but uses the modern encryption tool age [2] and the modern signing tool minisign [3]. The initial release allows you to: * Create and manage identities (which are conta