Python commands

Chris Liechti cliechti at gmx.net
Thu Apr 3 13:37:17 EST 2003


"Paul Dexter" <dextech at terrigal.net.au> wrote in
news:3e8bb9c5$1_1 at news.iprimus.com.au: 
>                 I have just discovered Python and I was wondering if
>                 anyone 
> could help me find an equivalent command in Python for the "OUT" and
> "INP" commands in Qbasic. I wish to convert a Qbasic program to
> Python. 
>     The following snippet is an example of the task I wish to perform;
> 
> base0 = &H378:
> 
> interface:
> OUT base0, &HA0
> OUT base0, &H80
> OUT base0 + 2, &H8
> 
> V = (INP(base0 + 1) AND &H10) * &H8

appart from the solutions others already posted, i have also a pyparallel 
module, found on http://pyserial.sf.net

chris

-- 
Chris <cliechti at gmx.net>





More information about the Python-list mailing list