termios
Michael Hudson
mwh at python.net
Mon Dec 3 05:53:49 EST 2001
mixo <mixo at beth.uniforum.org.za> writes:
> Here is the situation : I want to connect to device
> that connected on a serial port (ttySx - linux speak).
> My problem : all the functions in 'termios' require a file
> descriptor. Is there a way open 'ttySx' and get a file
> descriptor? For instance will,
> fd = open ('/dev/ttyS0')
> actually work?
os.open?
open("blah").fileno?
(Actually, passing a file object to the termios functions will work in
2.2.)
Cheers,
M.
--
Well, yes. I don't think I'd put something like "penchant for anal
play" and "able to wield a buttplug" in a CV unless it was relevant
to the gig being applied for...
-- Matt McLeod, alt.sysadmin.recovery
More information about the Python-list
mailing list