python and I/O
Siggy Brentrup
bsb at baal.infodrom.north.de
Sat Sep 25 15:07:51 EDT 1999
"Bill Rodgers" <Bill at nospam.com> writes:
> I don't see how reading and writing to a file descriptor
> provides access to serial ports, parallel ports or memory
> mapped I/O. Usually serial ports require more specific
> setup criteria such as baud rate, character format (N-8-1, etc).
If you are allowed to access I/O ports directly isn't a language, but
an operating system issue. Any decent OS, in particular a multitasking
one, must protect itself and its users from misbehaved programs.
>From your answer to Gerrit I presume you want to control a serial
port. If you're running on *nix, use /dev/ttyS* and look into the
termios(+TERMIOS) module for setting up serial parameters. I don't
care enough about Win?? to know their way.
CU
Siggy
btw Gerrit: even with your own interpretation RTFM stays bad style.
--
>>>> In a world without fences, who needs gates?
Siggy Brentrup - bsb at baal.infodrom.north.de - voice: +49-441-6990134
More information about the Python-list
mailing list