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


Groups > comp.lang.python > #85444

Re: TypeError: list indices must be integers, not tuple

Path csiph.com!usenet.pasdenom.info!news.franciliens.net!fdn.fr!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.048
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'subject:not': 0.03; 'lawrence': 0.09; 'happily': 0.16; 'stuart': 0.16; 'tuple': 0.16; 'wrote:': 0.18; 'print': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:list': 0.30; 'code': 0.31; 'anywhere': 0.35; 'ryan': 0.36; "i'll": 0.36; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'show': 0.63; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; 'choice.': 0.93
Date Tue, 10 Feb 2015 09:28:03 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version 1.0
To python-list@python.org
Subject Re: TypeError: list indices must be integers, not tuple
References <dcae1673-8fe1-4734-90ce-682b8d4e6063@googlegroups.com> <CAM8kh5sJ4Hiu08pn5xcLP1SQm2rpy+dvtUZWU9LGaYQfh4RdFQ@mail.gmail.com> <mbcqe1$7ik$1@ger.gmane.org>
In-Reply-To <mbcqe1$7ik$1@ger.gmane.org>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:LMZeHi41WeYUqCsSQOg657V97LrKiOYuKMzeph3RZ1P wHe1gftscqObuezzjuXtksl0QXUYnXpj8OCG4y+A7AQdacAkgR lLyO7XHSqqiXzvaJw0QPhPR1ivjGiyYkO50DO/CkCr88GV4Rep JcCVAFpav0mxR1tp4ZY1FTEfRJOBFBTnVdiNYHcWtqef+ApYl8 XK161/R01J23OiFdP4rixOCgicJ8Gv1BcjGJrfI3Lup0y2XhNl qougEWlMcyr2Xr4AGJ/nWrLOEv46b2JvXut6vBdea5p8p7i7aX uNNd9XOiUnuil115KRicsSXJun4j/NOxGc9auu9+f/xiULPBGY BXxGTsKiAyVo5FzqFAk8=
X-UI-Out-Filterresults notjunk:1;
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.18607.1423578489.18130.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1423578489 news.xs4all.nl 2871 [2001:888:2000:d::a6]:46744
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:85444

Show key headers only | View raw


On 02/10/2015 06:35 AM, Mark Lawrence wrote:
> On 10/02/2015 00:05, Ryan Stuart wrote:
>> Hi,
>>

>
> 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



-- 
DaveA

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


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