Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91625
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dpalao.python@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.030 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; "subject:' ": 0.07; 'nameerror:': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'def': 0.14; 'thanks,': 0.19; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; '"",': 0.22; 'defined': 0.23; 'header :In-Reply-To:1': 0.24; '(most': 0.24; 'error': 0.27; 'checking': 0.27; 'message-id:@mail.gmail.com': 0.28; 'online:': 0.29; 'function': 0.30; "skip:' 10": 0.30; 'url:mailman': 0.31; 'url:python': 0.33; 'traceback': 0.33; 'word.': 0.33; 'subject:?': 0.34; 'file': 0.34; 'received:google.com': 0.34; 'url:listinfo': 0.35; 'url:org': 0.36; 'hi,': 0.37; 'subject:: ': 0.37; 'thought': 0.37; 'does': 0.39; 'why': 0.40; 'show': 0.62; 'reverse': 0.66; 'special': 0.72; 'subject:Where': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6oYgdigVWddNBc5GTGKp+3maswq5nDofbzBwy3sam3U=; b=FRSF8VzDRYXFEThuUlMMyO/qFGJvRej/fsCNOde+VRbFyjg2Xlz/8RM1sdrh+EKhq+ cDf74Hc6JDuP/ZLfHCe6PkL8mPTIlyZFe8oMb+3hnJj2r9ntKLXYJ6WWWOnj5Az29I2/ sMQcE0INons4MphZWptkly4X42fzT4geHmAFDY03XRHjqtnEkS+yKOQCFMFE0ji0z4vB CW2cZIk48/oa2UXFZqJwiS2+wBMY5PWBw0xeyOdgX/3Leyv0t/QYR9zIzQ43Si3ghMWh Ba5wdW4pq5+rqq7Xh6ZzJ2YStBcRiyeJi/AuGwkKLLBay3mdwT/BEscU8vOQCBMTUgIM T4Hg== |
| MIME-Version | 1.0 |
| X-Received | by 10.180.96.196 with SMTP id du4mr17699587wib.77.1433141890232; Sun, 31 May 2015 23:58:10 -0700 (PDT) |
| In-Reply-To | <83a279a3-133d-4a50-9af3-054233bcc6af@googlegroups.com> |
| References | <83a279a3-133d-4a50-9af3-054233bcc6af@googlegroups.com> |
| Date | Mon, 1 Jun 2015 08:58:10 +0200 |
| Subject | Re: Where is 'palindrome' defined? |
| From | David Palao <dpalao.python@gmail.com> |
| To | fl <rxjwg98@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.267.1433141892.5151.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1433141892 news.xs4all.nl 2840 [2001:888:2000:d::a6]:51201 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:91625 |
Show key headers only | View raw
Hi, Because "palindrome" != "parlindrome"? Have you read the error message? Did you try to understand it? Best 2015-06-01 6:46 GMT+02:00 fl <rxjwg98@gmail.com>: > Hi, > > When I search solution of reverse a string/number, I came across a short > function online: > >>>> def palindrome(num): > return str(num) == str(num)[::-1] > > I thought that it is a general function. And with the following variable: > >>>> a > '1234_5555' > >>>> parlindrome(a) > > Traceback (most recent call last): > File "<pyshell#126>", line 1, in <module> > parlindrome(a) > NameError: name 'parlindrome' is not defined > > > Then, I find that parlindrome is a special checking mirrored word. > I use Python 2.7.9. Why does the error message show > > name 'parlindrome' is not defined > > > > Thanks, > -- > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Where is 'palindrome' defined? fl <rxjwg98@gmail.com> - 2015-05-31 21:46 -0700
Re: Where is 'palindrome' defined? Gary Herron <gherron@digipen.edu> - 2015-05-31 23:55 -0700
Re: Where is 'palindrome' defined? Grant Edwards <invalid@invalid.invalid> - 2015-06-01 15:02 +0000
Re: Where is 'palindrome' defined? Larry Hudson <orgnut@yahoo.com> - 2015-05-31 23:56 -0700
Re: Where is 'palindrome' defined? David Palao <dpalao.python@gmail.com> - 2015-06-01 08:58 +0200
Re: Where is 'palindrome' defined? Marko Rauhamaa <marko@pacujo.net> - 2015-06-01 12:21 +0300
Re: Where is 'palindrome' defined? David Palao <dpalao.python@gmail.com> - 2015-06-01 11:41 +0200
Re: Where is 'palindrome' defined? John Ladasky <john_ladasky@sbcglobal.net> - 2015-06-02 14:14 -0700
Re: Where is 'palindrome' defined? Marko Rauhamaa <marko@pacujo.net> - 2015-06-03 01:30 +0300
Re: Where is 'palindrome' defined? Omar Abou Mrad <omar.aboumrad@gmail.com> - 2015-06-01 10:00 +0300
Re: Where is 'palindrome' defined? Denis McMahon <denismfmcmahon@gmail.com> - 2015-06-01 15:17 +0000
Re: Where is 'palindrome' defined? fl <rxjwg98@gmail.com> - 2015-06-01 17:55 -0700
Re: Where is 'palindrome' defined? sohcahtoa82@gmail.com - 2015-06-01 18:07 -0700
Re: Where is 'palindrome' defined? MRAB <python@mrabarnett.plus.com> - 2015-06-02 02:10 +0100
csiph-web