Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102236
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Joel Cotto <joelcotto23@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Python 3.5.1 |
| Date | Fri, 29 Jan 2016 23:35:57 +0800 |
| Lines | 11 |
| Message-ID | <mailman.91.1454082040.2338.python-list@python.org> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de JUkXQjQ2GBL4e7mLNG69PwuGEljZVfs5xiwSI/mh9n1Q== |
| Return-Path | <joelcotto23@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'bytes)': 0.09; 'command.': 0.09; 'received:209.85.218': 0.10; 'python': 0.10; 'def': 0.13; 'command,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'temp': 0.16; 'bytes': 0.18; 'port.': 0.22; 'import': 0.24; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.30; 'print': 0.30; 'code': 0.30; 'error.': 0.31; 'problem': 0.33; 'received:google.com': 0.35; 'sent:': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'to:addr :python-list': 0.36; 'thanks': 0.37; 'release': 0.37; 'received:209': 0.38; 'hi,': 0.38; 'to:addr:python.org': 0.40; 'hope': 0.61; 'day': 0.67; 'serial': 0.70; '3.5.1': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IX7015vpz19mVl2nQ7sKz3DGJAQpXspUwKNIE2CUIbg=; b=vOqQ6OLgRP7jisDhYytNQ8jYi/9+OTPf/P0uoMdInxCtLuDXDtpdNUBSVXd/f+LpU0 5+m9+C/O8lFjmt45Fe1/AJZCqjq5IU36PR0ikquXu31LipAR/NBrA36nYTVP0JUHLm5q iNMaO6qXLohVHH9E1rFqECn79l1mqYoGz17IWEGUEwwtz2Qca9QM2dRsl75ZavXn84L1 xlWFmQlo6ppQk5DoOm1xtMNyZwAvcYNzqA5vsVDz6jlbqd3nbq+dbxAJfGa9wOQd8o2v IPgV2r/6aXZX4jysflKeSzf0dRVMenY2Li7dvhXg+YIFonkdn3s7IgIgmFJfYqgIgWbi 2E3Q== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=IX7015vpz19mVl2nQ7sKz3DGJAQpXspUwKNIE2CUIbg=; b=m5xmS2lQOScOBeC6HfC/TKT3JErXOZrFIiAI/x+5kalokqRUR6jioOMNXdmseBqa87 G2a7JOEcS9vLqj1nuzmTi05x5xsJbNuE0X/E5ESrHHJ5pEaCCkLx0qVFhGCm9pX+RHoQ LuWzEYjyBimEnkQ2QG0O31l0mpYyXAREHLbj3fGJg+Y4RS8QUdqHim68fol/nPgU0muN irUxcPKD28agZnJu78t0bj3LoEZhIKmnoAWW7EA1rw8cIQUQh3GYBFddmwgD02Oga491 EL/nPEupIe+VmPYhnBsjB7oPG1z5OmSvsaURT/1wgJWYzKcaDtvXvOeIKQaoWrgB6y49 GhCA== |
| X-Gm-Message-State | AG10YORehWyZyw57JlX0drsu89kAfz09NDA2Zg1/v1Wr4R/hZVdPWClXl1MvQvCEjLcw7bGNhAC/CwO2VE/CMg== |
| X-Received | by 10.202.49.82 with SMTP id x79mr409264oix.81.1454081757885; Fri, 29 Jan 2016 07:35:57 -0800 (PST) |
| X-Mailman-Approved-At | Fri, 29 Jan 2016 10:40:39 -0500 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.20+ |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:102236 |
Show key headers only | View raw
Hi,
I'm using the new release of python ver 3.5.1 but i got problem using its
code to communicate w/ serial port. I'm receiving port error. Hope you can
guide me if there are change made in the command. Thanks and Good Day
import serial ser = 0 def init_serial(): COMNUM = 1 global ser ser =
serial.Serial() ser.baudrate = 9600 ser.port = COMNUM - 1 ser.timeout = 10
ser.isOpen() if ser.isOpen(): print ('Open: ' + ser.portstr) init_serial()
temp = input('Enter SCL command, hit enter:\r\n') ser.write(temp) while 1:
bytes = ser.readline() print ('You sent: ' + bytes)
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Python 3.5.1 Joel Cotto <joelcotto23@gmail.com> - 2016-01-29 23:35 +0800
csiph-web