[Pythonmac-SIG] ctb module in MacPython 2.2.3 or 2.3.3
Bob Ippolito
bob at redivi.com
Mon Apr 5 23:30:35 EDT 2004
On Apr 5, 2004, at 11:13 PM, David Willcox wrote:
> Please suffer a question from a semi-novice...
>
> I've been using Python off and on for a while for some very simple
> things, but recently I had occasion to do something that requires
> access to the Mac serial port. The MacPython documentation refers to
> a ctb module, but I can't find it anywhere in either MacPython 2.2.3
> or 2.3.3. I'm running OS 9.1 (that's as far as this dinosaur will
> go), so I don't have an option of a newer MacPython.
>
> I found an article from Apr 01 from someone who couldn't find this
> module in 2.1b2, but couldn't find anything that said the issue had
> been resolved. Or anything about more recent versions.
>
> Am I out of luck, or am I missing something really obvious?
>
> Should I be using the classic instead of Carbon version?
Well, I don't know anything about serial ports on OS9, but I can tell
you that the standard UNIX serial stuff works in OS X. I've personally
used pySerial to communicate with various devices over a keyspan USB
serial adapter. Additionally, I've gotten pySerial work under Jython
via JavaComm on OS X, which may possibly be an option under OS9.
-bob
More information about the Pythonmac-SIG
mailing list