Asyncio Queue implementation suggestion

2020-09-16 Thread Alberto Sentieri
I have a suggestion about the implementation of asyncio queues that could improve performance. I might be missing something, however. I am sort of new to Python. Below a short description of the problem I am facing. I wrote a daemon in Python 3 (running in Linux) which test many devices at the

Re: musings on static variables

2020-09-16 Thread Ben Bacarisse
r...@zedat.fu-berlin.de (Stefan Ram) writes: > This C program use a local /static/ variable. > > main.c > > #include > > int f( void ) > { static int i = 0; > return i++; } > > int main( void ) > { printf( "%d\n", f() ); > printf( "%d\n", f() ); > printf( "%d\n", f() ); } > > transcri

Artie 3000 the coding robot

2020-09-16 Thread Skip Montanaro
I'm looking for feedback on Artie 3000 the Coding Robot. It's recommended by wirecutter.com for introductory programming for ages seven and up (though stemfinity.com says 7-12). I was thinking about getting it for my grandson who's turning 12

Re: dictionaries an matrices

2020-09-16 Thread joseph pareti
you can use the following: (change the matrices as it suits your app): import numpy as np def set_params(w, b): params = {"w0": w[0], "w1": w[1] , "w2": w[2], "w3": w[3], "w4": w[4], "b": b} return params w = np.random.randn((5)) b = 1 params = set_params(w, b) for i in range(5)

Re: Need tests of turtledemo.colordemo on Windows installations

2020-09-16 Thread Terry Reedy
On 9/14/2020 10:30 AM, Dennis Lee Bieber wrote: On Sun, 13 Sep 2020 21:18:10 -0400, Terry Reedy declaimed the following: User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed. When he runs 64-bit or 32-bit (or a mix of W10 64 and Python 32)? He has run both in separate

dictionaries an matrices

2020-09-16 Thread Ing Diegohl
Good morning everyone I would like to know if i can to create a dictionary with two matrices, where every element of the first matrix corresponds to dictionary's keys and the elements of the second matrix will be the values every key. thanks -- https://mail.python.org/mailman/listinfo/python-lis