Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'mrab': 0.05; 'subject:help': 0.07; 'identifier': 0.09; 'nameerror:': 0.09; 'language': 0.14; '"-"': 0.16; '66,': 0.16; 'identifier.': 0.16; 'lisp': 0.16; 'subject:user': 0.16; 'wrote:': 0.17; 'certainly': 0.17; 'tim': 0.18; '>>>': 0.18; 'variable': 0.20; 'names.': 0.22; 'permitted': 0.22; 'defined': 0.22; 'allows': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; '(most': 0.27; 'css': 0.27; 'there.': 0.28; 'received:10.0.0': 0.28; 'chase': 0.29; 'received:208.97': 0.29; 'received:208.97.132': 0.29; 'received:66.33': 0.29; 'received:66.33.216': 0.29; 'received:66.33.216.122': 0.29; 'received:dreamhost.com': 0.29; 'received:g.dreamhost.com': 0.29; 'received:hapkido.dreamhost.com': 0.29; 'file': 0.32; 'traceback': 0.33; 'received:10.0': 0.33; 'problem': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'languages': 0.33; 'pm,': 0.35; 'moment': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'john': 0.60; 'received:208': 0.63; 'believe': 0.69; 'cobol': 0.84 DomainKey-Signature: a=rsa-sha1; c=nofws; d=ramaciotti.com; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=ramaciotti.com ; b=i/fSPi4evkiPRq9aXRRok/aodHZvKYYWICHNAgil+6/T0ofAlJGL9elNp7aE L3tAZJagbc5NleQx6eLO4RdrjYRu0PX7tA5YSPirMrjwYMF1CCxwdGXnPx6j1TwO JT/SelwLtyolphdtBVMuz4rAxW0iLvWh+C9qjbW69R4U07I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ramaciotti.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s= ramaciotti.com; bh=BvNK7tu8PHITfqs0mN1+Bhw4k5Q=; b=rRqgKKtUKY5Cx MjWzo6xorZN3V2jtmseMGTArxV9fYMhwHtat53M1oADp0aovSUoJT4LeleI78kIC W0NF4nZZDeUG34Jb6YPhElG4CDbpbXiU+oT5juNGVXL8Fb06PqVMQGXgwSqn8ksw 7DGiub8dNMnzhEsvBa/PUPIpI0lkMw= Date: Sun, 05 Aug 2012 18:22:12 -0300 From: Andre Ramaciotti User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Intermediate Python user needed help References: <506eb405-eb07-4175-9efb-40475cabacf1@googlegroups.com> <501EDFB6.3050507@tim.thechases.com> <501EE1D4.4080809@mrabarnett.plus.com> In-Reply-To: <501EE1D4.4080809@mrabarnett.plus.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344201749 news.xs4all.nl 6857 [2001:888:2000:d::a6]:53330 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26569 On 08/05/2012 06:12 PM, MRAB wrote: > On 05/08/2012 22:03, Tim Chase wrote: >> On 08/05/12 15:52, John Mordecai Dildy wrote: >>> Current Problem at the moment >>> >>> Traceback (most recent call last): >>> File "ex26.py", line 66, in >>> beans, jars, crates = secret_formula(start-point) >>> NameError: name 'start' is not defined >>> >>> anyone know how to make start defined >> >> "start-point" is not a valid identifier as the "-" isn't permitted >> in a variable name. This is the case for just about every language >> out there. HTML/XML & CSS are the only languages that come to my >> mind in which the dash is considered a valid part of an identifier. >> > I believe that Cobol allows "-" in names. > Lisp certainly does.