initilize a memory zone in python

Grant Edwards grante at
Mon Aug 31 02:37:15 CEST 2009

On 2009-08-31, Grant Edwards <grante at> wrote:

> If you want a configuration that's all zeros, why bother
> calling tcgetattr() at all?  Just set the configuration to
> zeros:
> term_conf = [0,0,0,0,0,0]

Oops, I forgot about cc.  That should be:

  term_conf = [0,0,0,0,0,0,['\x00']*32]

That's why it's easier to just use pyserial ;)

More information about the Python-list mailing list