Path: csiph.com!news.mixmin.net!news.unit0.net!news.netfront.net!not-for-mail From: Petr Messner Newsgroups: cz.comp.lang.python Subject: Re: [python] =?utf-8?q?pros=C3=ADm_o_radu?= Date: Tue, 26 Jul 2016 21:56:28 +0200 Organization: Netfront http://www.netfront.net/ Lines: 47 Message-ID: References: <3ad0c1bf-de0f-4645-8a59-8991787bf11a@googlegroups.com> NNTP-Posting-Host: 194.228.3.217 Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: adenine.netfront.net 1469592359 73807 194.228.3.217 (27 Jul 2016 04:05:59 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Wed, 27 Jul 2016 04:05:59 +0000 (UTC) To: Konference PyCZ Received-SPF: pass (Address passes the Sender Policy Framework) SPF=MAILFROM; sender=petr.messner@gmail.com; remoteip=::ffff:74.125.82.45; remotehost=; helo=mail-wm0-f45.google.com; receiver=hugo.zagamma.cz; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:mime-version:subject:message-id:date :references:in-reply-to:to; bh=91+0lGE51uMI9jKE+bs51zxMBfpB5zIPOoNjN5w9Ny0=; b=A2DoIIvxkKRImFSX/AsGEuT0yS0vTdBK7IrUQva6MHzg8/VqBmRFXdtqpogYF6gt4f KOPuSSD30rBprBFQrAiZmLX8+Q1xBvE991NAwYWPCFtO9pjtaDyRQS1JPSunHydqHm/r YzfHIwQUkThoqZhzm9UIxp3DUfDDfpWCZhjqxO/gWfmnXy2p9wx19Cbk2z9vrvHA/BbF q4EwCjAPV6/0EvH1CExkSQYeLh5+hVdB+uVHR7H0RKma7xpm1OKVsvX8FY5HopIXomcY 7BE6+4FHArj3y9306PalCuiEZaF2iF/IrmrVtJCCeS/IcernV1a21mkfuAzCWBtCBI06 oL5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:references:in-reply-to:to; bh=91+0lGE51uMI9jKE+bs51zxMBfpB5zIPOoNjN5w9Ny0=; b=D6kBmfWbUBoeE2Ald2a2zbdQpC/j/52hYJqKEahfabCPqHbW435iqOGuIZSwV7bTJ0 UEJ1vs1Vn22oQ4ftWZ/hSqtVQCVU3BgfSimjagEDNfm5fSaPo/iUOXaOESlFNzWERpKD x7WKXUPW714VQMlfarPFi/eFkEDb4YmyGi0FgI8SwCAemdXBN/TOGPd2ItZOBz6bN4de x8aapNlmvBJpEOS2CoUaVkiSr52vTXMNFnBX0iSEdilaNLTRCLyLWTucSVhxlwK+IbPp 7vFjVpaID0mmjt/fdgVX5j6dmGqjynGdEKxWxp2UAsGGI/1i/vGVAhGiEbiAb1uGndWQ dhww== X-Gm-Message-State: AEkooutAj6wW/2LYOsztanVCwQHCjJagYdII1yGO+IQZSyJlc6QMckIf+Rajum43p3IbSA== X-Received: by 10.194.16.65 with SMTP id e1mr24862873wjd.143.1469562991014; Tue, 26 Jul 2016 12:56:31 -0700 (PDT) Old-Return-Path: In-Reply-To: X-Mailer: iPhone Mail (13F69) X-BeenThere: python@py.cz X-Mailman-Version: 2.1.20 Precedence: list List-Id: Konference PyCZ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com cz.comp.lang.python:3100 To except pat=C5=99=C3=AD k tomu try, ne k tomu if-else. Tak to odsa=C4=8F j= e=C5=A1t=C4=9B o =C3=BArove=C5=88 vlevo.=20 Petr Messner 26. 7. 2016 v 21:54, Ale=C5=A1 Hrub=C3=BD : > oprava=20 > #!/usr/bin/env python >=20 > import RPi.GPIO as GPIO > import time >=20 > promena=3D3 > GPIO.setmode(GPIO.BCM) > GPIO.setup(4, GPIO.OUT) > i=3D0 > while True: >=20 >=20 > time.sleep(1) >=20 > try: > if i =3D=3D 1: > GPIO.output(4, False) > i=3D0 > else: > GPIO.output(4, True) > i=3D1 > except: > pass >=20 > ./test.py=20 > File "./test.py", line 22 > except: > ^ > SyntaxError: invalid syntax >=20 >=20 > _______________________________________________ > Python mailing list > python@py.cz > http://www.py.cz/mailman/listinfo/python >=20 > Visit: http://www.py.cz --- news://freenews.netfront.net/ - complaints: news@netfront.net ---