REPOST: Re: values of sys.platform? for a serial port lib

Carey Evans careye at spamcop.net
Sun Dec 30 21:28:32 EST 2001


Chris Liechti <cliechti at gmx.net> writes:

> i'm interested in values for "sys.platform" and, if possible, the name of 
> the serial port (an how the ports are numbered ttyS0, ttyS1 etc.)
> e.g "linux2" and "/dev/ttyS%d" % port, numbering starting at zero.

Actually, my "linux2" platform has the serial ports at /dev/tts/{0,1}.
Granted, some of this may be just me delighting in finding out how
many programs break when I disable compatibility symlinks in devfs,
but it's worth remembering that even standard serial ports may be
somewhere strange.

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-nwblwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!newsfeed.direct.ca!look.ca!nntp.kreonet.re.kr!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Carey Evans <careye at spamcop.net>
Newsgroups: comp.lang.python
Subject: cmsg cancel <87g05sktrj.fsf at psyche.dnsalias.org>
Control: cancel <87g05sktrj.fsf at psyche.dnsalias.org>
Date: Mon, 31 Dec 2001 01:42:53 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.87g05sktrj.fsf at psyche.dnsalias.org>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009773952 27193 211.57.49.2 (31 Dec 2001 04:45:52 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 04:45:52 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list