Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85446
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.012 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'subject:not': 0.03; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'happily': 0.16; 'superfluous': 0.16; 'tuple': 0.16; 'tuple,': 0.16; 'tuple.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; "doesn't": 0.30; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'received:209.85': 0.35; 'anywhere': 0.35; 'received:google.com': 0.35; "i'll": 0.36; 'received:209': 0.37; 'dave': 0.60; 'show': 0.63; '2015': 0.84; 'angel': 0.91; 'to:none': 0.92; 'choice.': 0.93 |
| 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:cc :content-type; bh=ilXC1+U7qzkN8cVEV/e3pWjwV/t7hXNw6T4G7mMtBRk=; b=J1Zy739mgqsQAhF6pC6wA9zta85gDNYTJM+hPZMslRC4ZcA37btPW6sSk4y/VRH0qk zpbnZCLzGtrsrSuCvE4X0EKTGK/c0izOOTQizV4wLal5GVVAGfBkAI7H8kV1T333ANGV sNegUYEbjE/xcuiKOz2tzpZJEHCA+cKXCSLRyjN3ilb99KSwj57ct1eY3uiVnlEeXrSi pupw14G2iBi1ScG+zTxPTjpBzPS0fa5Qk5kbBk0DkiEgg3lrCQJNsFxe/rsez///OKXa 8rW2h8eueAXq6p77KcpQnXavho5F/KzTaJjGvmVKvclpgDNzxQB8g5B4++6s6WWl31qO apQw== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.171.201 with SMTP id aw9mr23744518igc.2.1423578818289; Tue, 10 Feb 2015 06:33:38 -0800 (PST) |
| In-Reply-To | <54DA1573.1030804@davea.name> |
| References | <dcae1673-8fe1-4734-90ce-682b8d4e6063@googlegroups.com> <CAM8kh5sJ4Hiu08pn5xcLP1SQm2rpy+dvtUZWU9LGaYQfh4RdFQ@mail.gmail.com> <mbcqe1$7ik$1@ger.gmane.org> <54DA1573.1030804@davea.name> |
| Date | Wed, 11 Feb 2015 01:33:38 +1100 |
| Subject | Re: TypeError: list indices must be integers, not tuple |
| From | Chris Angelico <rosuav@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.15 |
| 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.18609.1423578820.18130.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1423578820 news.xs4all.nl 2844 [2001:888:2000:d::a6]:53008 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:85446 |
Show key headers only | View raw
On Wed, Feb 11, 2015 at 1:28 AM, Dave Angel <davea@davea.name> wrote:
>> If you can show me a one tuple anywhere in the original code I'll
>> happily buy you a tipple of your choice.
>
>
> print Menu[fav,RandomNum]
>
> was in the original code
That's not a one-tuple (as in, a tuple with one element), it's a
two-element tuple. The point is that ("3") doesn't create a tuple,
it's just superfluous parentheses.
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
TypeError: list indices must be integers, not tuple james8booker@hotmail.com - 2015-02-09 15:52 -0800 Re: TypeError: list indices must be integers, not tuple Ethan Furman <ethan@stoneleaf.us> - 2015-02-09 16:02 -0800 Re: TypeError: list indices must be integers, not tuple Dave Angel <davea@davea.name> - 2015-02-09 22:05 -0500 Re: TypeError: list indices must be integers, not tuple Dave Angel <davea@davea.name> - 2015-02-09 23:48 -0500 Re: TypeError: list indices must be integers, not tuple Terry Reedy <tjreedy@udel.edu> - 2015-02-10 00:57 -0500 Re: TypeError: list indices must be integers, not tuple Ryan Stuart <ryan.stuart.85@gmail.com> - 2015-02-10 00:05 +0000 Re: TypeError: list indices must be integers, not tuple Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-10 11:35 +0000 Re: TypeError: list indices must be integers, not tuple Dave Angel <davea@davea.name> - 2015-02-10 09:28 -0500 Re: TypeError: list indices must be integers, not tuple Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-10 14:32 +0000 Re: TypeError: list indices must be integers, not tuple Chris Angelico <rosuav@gmail.com> - 2015-02-11 01:33 +1100 Re: TypeError: list indices must be integers, not tuple Dave Angel <davea@davea.name> - 2015-02-10 10:51 -0500 Re: TypeError: list indices must be integers, not tuple Chris Angelico <rosuav@gmail.com> - 2015-02-11 05:48 +1100 Re: TypeError: list indices must be integers, not tuple Dave Angel <davea@davea.name> - 2015-02-10 15:38 -0500
csiph-web