initilize a memory zone in python

Grant Edwards grante at visi.com
Sun Aug 30 20:37:15 EDT 2009


On 2009-08-31, Grant Edwards <grante at visi.com> 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 ;)
  
-- 
Grant





More information about the Python-list mailing list