Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98107
| X-Received | by 10.50.50.201 with SMTP id e9mr11417408igo.3.1446477550037; Mon, 02 Nov 2015 07:19:10 -0800 (PST) |
|---|---|
| X-Received | by 10.50.78.138 with SMTP id b10mr74720igx.10.1446477549997; Mon, 02 Nov 2015 07:19:09 -0800 (PST) |
| Path | csiph.com!xmission!news.glorb.com!i2no1692844igv.0!news-out.google.com!fs1ni5847igb.0!nntp.google.com!i2no1692840igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Mon, 2 Nov 2015 07:19:09 -0800 (PST) |
| In-Reply-To | <5qKZx.1282$u_1.105@fx05.am1> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=198.133.214.10; posting-account=QnRR_woAAABCN3o9NKfJV3oj6njOg5Qm |
| NNTP-Posting-Host | 198.133.214.10 |
| References | <197fe872-0501-4ce8-a273-5220d4527c1f@googlegroups.com> <5qKZx.1282$u_1.105@fx05.am1> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <e4e11fd6-01b2-4b86-9fc9-13c50b25342f@googlegroups.com> (permalink) |
| Subject | Re: GoPiGo script |
| From | hakugin.gin@gmail.com |
| Injection-Date | Mon, 02 Nov 2015 15:19:10 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.lang.python:98107 |
Show key headers only | View raw
On Monday, November 2, 2015 at 9:28:35 AM UTC-5, input/ld...@casema.nl wrote: > He mike, > > Thank you or making this script. > Only I get errors for sleep. > I also tried to change it to time.sleep() but that also gives errors. > > File "test05.py", line 23 > sleep(2) > ^ > SyntaxError: invalid syntax > ------------------------------------------------------------------------------- > And this is why I shouldn't code while tired hahaha... I reviewed the code I submitted and found a couple of other errors. If you are changing the "sleep()" lines to "time.sleep()" you will need to change the line "from time import sleep" to "import time", otherwise you will most likely encounter something like: Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'time' is not defined Since you are just beginning with Python I would suggest reading various entry level books such as Python 101 by Mike Driscoll, which I have read and own. I am not Mike Driscoll, but his book and blog, http://www.blog.pythonlibrary.org/ have been extremely helpful. There are MANY resources available for learning the Python programming language out there, including https://wiki.python.org/moin/BeginnersGuide
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
GoPiGo script input/ldompeling@casema.nl - 2015-10-30 16:58 +0000
Re: GoPiGo script Peter Pearson <pkpearson@nowhere.invalid> - 2015-10-30 17:27 +0000
Re: GoPiGo script input/ldompeling@casema.nl - 2015-11-02 13:29 +0000
Re: GoPiGo script hakugin.gin@gmail.com - 2015-11-02 05:45 -0800
Re: GoPiGo script hakugin.gin@gmail.com - 2015-11-02 05:49 -0800
Re: GoPiGo script input/ldompeling@casema.nl - 2015-11-02 14:28 +0000
Re: GoPiGo script hakugin.gin@gmail.com - 2015-11-02 07:19 -0800
Re: GoPiGo script MRAB <python@mrabarnett.plus.com> - 2015-11-02 15:21 +0000
Re: GoPiGo script hakugin.gin@gmail.com - 2015-11-02 07:30 -0800
Re: GoPiGo script Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-11-02 09:10 -0500
Re: GoPiGo script input/ldompeling@casema.nl - 2015-11-02 14:32 +0000
Re: GoPiGo script Robin Koch <robin.koch@t-online.de> - 2015-11-02 20:31 +0100
Re: GoPiGo script Larry Hudson <orgnut@yahoo.com> - 2015-11-02 13:06 -0800
Re: GoPiGo script Robin Koch <robin.koch@t-online.de> - 2015-11-03 01:45 +0100
Re: GoPiGo script hakugin.gin@gmail.com - 2015-10-30 10:32 -0700
Re: GoPiGo script input/ldompeling@casema.nl - 2015-10-30 18:18 +0000
Re: GoPiGo script hakugin.gin@gmail.com - 2015-10-30 12:59 -0700
Re: GoPiGo script input/ldompeling@casema.nl - 2015-10-31 10:28 +0000
Re: GoPiGo script MRAB <python@mrabarnett.plus.com> - 2015-10-31 17:42 +0000
Re: GoPiGo script input/ldompeling@casema.nl - 2015-10-31 18:59 +0000
Re: GoPiGo script MRAB <python@mrabarnett.plus.com> - 2015-10-31 19:42 +0000
Re: GoPiGo script input/ldompeling@casema.nl - 2015-10-31 20:18 +0000
Re: GoPiGo script MRAB <python@mrabarnett.plus.com> - 2015-10-31 21:12 +0000
csiph-web