convert perl-script for voltcraft voltmeter to python [newbie]

Rick Johnson rantingrickjohnson at gmail.com
Tue Feb 7 20:47:31 CET 2012


On Feb 7, 11:44 am, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
>
> [...]
>
>         Well, since readline() pretty much by definition wants a line-ending
> character before returning, it obviously won't work. (Side comment:
> readline() isn't even shown as part of the basic Serial class -- it is
> in a class FileLike:http://pyserial.sourceforge.net/pyserial_api.html
> -- oh wait.. fine print says that is a base class for Serial on non-io
> module systems).
>
>         What is the boundary marker for your 11-byte chunks? You may need to
> do a synchronization loop using
>
> [...]
>
>         Your timeout is FIFTEEN SECONDS!
>
>         Suspect you want something like

Why do you have this unnatural penchant for superfluous eight space
indention?

I always thought that indenting the first sentence of a paragraph was
quite ridiculous anyhow, however, i cannot even fathom any need to
indent a single sentence! Are you purposely injecting this noise or is
this some automated behavior of your broken mail client? Either way, i
find it annoying and unreadable. Could you please rectify this issue
and bring signal to noise ratio back to reasonable levels?



More information about the Python-list mailing list