Question : Open COM1 with Python

Is it possible to directly  open a COM port with PYTHON and push a string through it ?

I try directly in command line

MyConnection = open("COM1")
MyConnection.write("string")

and I got IO error  every time

Can sommebody help me

Thank's

Answer : Open COM1 with Python

Note that pySerial requires the Python Win32 Extensions - if you're using ActiveState Python then you already have these, otherwise get them from http://sourceforge.net/project/showfiles.php?group_id=78018&package_id=79063
Random Solutions  
 
programming4us programming4us