Re: TypeError: 'bytes' object is not callable error while trying to converting to bytes.

2021-12-04 Thread Wasia Maya
You have assigned a bytes value to the name bytes: >>> bytes([10, 20, 30, 40]) b'\n\x14\x1e(' >>> bytes = bytes([10, 20, 30, 40]) >>> bytes([10, 20, 30, 40]) Traceback (most recent call last): File "", line 1, in TypeError: 'bytes' object is not callable bytes is now bound to the value b'\n\x14

Re: Python child process in while True loop blocks parent

2021-12-04 Thread Barry Scott
> On 1 Dec 2021, at 16:01, Jen Kris wrote: > > Thanks for your comment re blocking. > > I removed pipes from the Python and C programs to see if it blocks without > them, and it does. > It looks now like the problem is not pipes. Ok. > I use fork() and execv() in C to run Python in a child