Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39037

Re: request of information

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <hermanmu@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.019
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'syntax': 0.03; 'error:': 0.05; 'python': 0.09; 'cc:addr:python-list': 0.10; '&gt;&gt;': 0.16; '.py': 0.16; 'last)': 0.16; 'wrote:': 0.17; 'subject:request': 0.17; 'feb': 0.19; 'module': 0.19; 'import': 0.21; '"",': 0.22; 'cc:2**0': 0.23; '&gt;': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'thanks!': 0.26; 'am,': 0.27; 'subject:information': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'post': 0.28; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'skip:& 30': 0.30; 'function': 0.30; 'error': 0.30; 'figure': 0.30; 'code': 0.31; 'url:python': 0.32; 'file': 0.32; 'mac': 0.32; 'running': 0.32; 'url:listinfo': 0.32; 'me?': 0.33; 'skip:& 20': 0.33; 'version': 0.34; "can't": 0.34; 'received:google.com': 0.34; 'saved': 0.35; 'received:209.85': 0.35; 'created': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'store': 0.38; 'url:docs': 0.38; 'help': 0.40; 'url:mail': 0.40; 'your': 0.60; 'save': 0.61; "you'll": 0.62; 'information': 0.63; 'more': 0.63; 'circle': 0.65; 'kindly': 0.67; '2013': 0.84; 'url:tutorial': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=NWBhjh2uImHg9jjfmU/iP9qKwuyWRRW+7phJbA+mHn4=; b=dJHxP51g3Y1L90eAAKdJ+J66Cd2JsVrm3LtkR/hx+wxlrwkWU38tdontrMlXf/sm91 aKETOjpI6VecqUJW4GrB6aYpgrWjclW6k5xswXptSzJLWd1+2RXff112oHRjcNitEc5V ZhQa6P6Ha+Nguqwwxap1CFk+TIGrqn+9Ce0j2nhG0RJOC+wbdo4zhW6vBxyB8W6L2EF0 d9vpvHIVk/zsx1GrAKPFxyGoIMa3wtwwsKFazB23kdyfpxpojbr5qbjDLf1e2SAwtGCY DAnOy3Zzjk+MKK0tQaTzjRSYY7en7niJ6saSS7SRttwF3lBoTYxWCQRWGyIvPR0CC/GN ajKw==
X-Received by 10.58.106.35 with SMTP id gr3mr12743572veb.51.1361132635897; Sun, 17 Feb 2013 12:23:55 -0800 (PST)
MIME-Version 1.0
In-Reply-To <AA2818A2-956F-40EE-8F85-802C28F91572@icloud.com>
References <B4AF6361-A77D-477D-876E-466756630D0E@icloud.com> <AA2818A2-956F-40EE-8F85-802C28F91572@icloud.com>
From Michael Herman <hermanmu@gmail.com>
Date Sun, 17 Feb 2013 12:23:34 -0800
Subject Re: request of information
To leonardo selmi <l.selmi@icloud.com>
Content-Type multipart/alternative; boundary=047d7b677ee6413fe404d5f1638d
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1904.1361132639.2939.python-list@python.org> (permalink)
Lines 84
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361132639 news.xs4all.nl 6842 [2001:888:2000:d::a6]:43222
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39037

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

There's a syntax error at line 1 of circle.py. Try running circle.py,
you'll get more information about the error -
http://docs.python.org/2/tutorial/errors.html

If you can't figure it out, post your code for circle.py.

On Sun, Feb 17, 2013 at 10:47 AM, 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 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
> >> "<pyshell#0>", line 1, in <module>
> >> import circle
> >> file "circle.py", line 1
> >> syntax error: invalid syntax
> >>
> >> can you kindly help me?
> >> thanks!
> >>
> >> best regards
> >
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: request of information Michael Herman <hermanmu@gmail.com> - 2013-02-17 12:23 -0800

csiph-web