<br><br><div class="gmail_quote">On Dec 13, 2007 4:57 AM, katie smith <<a href="mailto:iceboy127@yahoo.com">iceboy127@yahoo.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font style="background-color: rgb(255, 0, 0);">Traceback (most recent call last):<br>  File "C:\Python25\empire\Empire Strategy.pyw
", line 322<br>    Maty = Searched(number)<br>TypeError: 'list' object is not callable</font></div></div></blockquote><div><br>This is the error message. The first line basically says "This is what happened:"
<br><br>The second shows the file, and the line number. <br><br>The third is the actual line.<br><br>Then the error message: you had a list object, and you tried to call it.<br><br>Well, looking at that line, we see Searched(number). Search is apparently a list, and you used ( ) on it, which tries to call it, but that's not possible.
<br>So that's the mistake - you meant to use [ ], but used ( ).<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>so Maty Searched(number is supposed to give me 0 when</div>
<div>        Search = "NewMap"</div>
<div>        number = 0<br>        bignum = 1<br>        bignumer = repr(bignum)<br>        Searching = Search+bignumer<br>        Searched = eval(Searching)<br>        Maty = Searched[number]</div></div></div></blockquote>
<div><br>This isn't the actual code that gave the error message - here you used  [ ]. </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div></div>
</div></div></blockquote></div><br><br>Anyway, doing it like this is really bad and likely to go wrong, but that's not your question.<br><br>Remco Gerlich<br><br>