Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'syntax': 0.03; 'error:': 0.05; 'python': 0.09; 'cc:addr:python-list': 0.10; '>>': 0.16; '.py': 0.16; 'last)': 0.16; 'luck,': 0.16; '\xa0this': 0.16; 'wrote:': 0.17; 'subject:request': 0.17; 'feb': 0.19; 'module': 0.19; 'import': 0.21; '"",': 0.22; 'help.': 0.22; 'cc:2**0': 0.23; '>': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'subject:information': 0.27; 'message-id:@mail.gmail.com': 0.27; 'there.': 0.28; 'post': 0.28; 'skip:& 10': 0.29; 'skip:& 30': 0.30; 'function': 0.30; 'error': 0.30; 'figure': 0.30; 'file': 0.32; 'mac': 0.32; 'says': 0.33; 'skip:& 20': 0.33; 'version': 0.34; "can't": 0.34; 'received:google.com': 0.34; 'wrong': 0.34; 'list': 0.35; 'jason': 0.35; 'saved': 0.35; 'pm,': 0.35; 'there': 0.35; 'created': 0.36; 'subject:: ': 0.38; 'store': 0.38; 'save': 0.61; 'first': 0.61; "you'll": 0.62; 'circle': 0.65; 'benefit': 0.70; 'yourself': 0.77; '2013': 0.84; '1:47': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=aqHKm9XB1nbKiU9JC90+adjs1KUp2KRmqKYXo2q9S+w=; b=nck0IjND4EY3RvvGxNbKpLbrDg0DalKOxqHBOtFmNaccrh/MQUKuNWYtn9nn+0uz9f 1oAbzeQRIZm5gm7WsQSRsVMaNkKXnN4zoOPlO+qeLNeh//Wh3BNkgGc73xRTGtUxFVIn K1n0vTD+SALnUT8NDstLN+3i1NL51XlNt9MVBs7ClN/MhdyXzR5YPqQ1lsECKB8Wl/QO vBFc8eY2bTBNpOwwz5UU2NL+G8vxUjicG4oBZxTUeJlXEoJQKZ6H/Xt3rKrCxdZZeS15 Lq/zupmEkLcUAFuATA02IMdVQL235mjiGsVDABoXSmiX16P8et3RX9zhZpxIKwQnH+VH FE/w== MIME-Version: 1.0 X-Received: by 10.50.216.231 with SMTP id ot7mr6458456igc.2.1361132320072; Sun, 17 Feb 2013 12:18:40 -0800 (PST) In-Reply-To: References: Date: Sun, 17 Feb 2013 15:18:39 -0500 Subject: Re: request of information From: Jason Swails To: leonardo selmi Content-Type: multipart/alternative; boundary=14dae93406cd6e25a904d5f1505c Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 70 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361132328 news.xs4all.nl 6930 [2001:888:2000:d::a6]:40462 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39036 --14dae93406cd6e25a904d5f1505c Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 17, 2013 at 1:47 PM, leonardo selmi wrote: > > > > > > > > > > >> gentlemen: > >> > >> i am reading a book about python and now i am blocked, i can't store > functions in modules: i have a mac and am using version 2.7.3, i have > created a function and want to save it as a file using "idle", i have saved > it with .py , when i try to import the module i get an error: > traceback(most recent call last) file > >> "", line 1, in > >> import circle > >> file "circle.py", line 1 > >> syntax error: invalid syntax > Look at the first line of circle.py. This error says there is a syntax error there. If you can't figure out what is wrong with that line, you'll have to post that to the list in order to get help. (You'll benefit greatly if you can figure it out yourself -- that's the best way to learn). Good luck, Jason --14dae93406cd6e25a904d5f1505c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, F= eb 17, 2013 at 1:47 PM, leonardo selmi <l.selmi@icloud.com>= wrote:

>
>
>
>
>> gentlemen:
>>
>> i am reading a book about python and now i am blocked, i can't= store functions in modules: i have a mac and am using version 2.7.3, i hav= e created a function and want to save it as a file using "idle", = i have saved =A0it with .py , when i try to import the module i get an erro= r: traceback(most recent call last) file
>> "<pyshell#0>", line 1, in <module>
>> import circle
>> file "circle.py", line 1
>> syntax error: invalid syntax

L= ook at the first line of circle.py. =A0This error says there is a syntax er= ror there.

If you can't figure out what is wro= ng with that line, you'll have to post that to the list in order to get= help.

(You'll benefit greatly if you can figure it out yo= urself -- that's the best way to learn).

Good = luck,
Jason

--14dae93406cd6e25a904d5f1505c--