| | |
Error of some kind
Thread Solved |
•
•
Join Date: Jul 2005
Posts: 10
Reputation:
Solved Threads: 0
All there is to the client line is this : if ar[2]!="client":
Thats it there is nothing else there, i have asked my friend and he reckons it works for him. I have tried some examples i found on the net and if they have any "ar" in them they don't seem to work. I have tried uninstalling all my python stuff and doing a fresh install and that doesn't seem to make any difference either.
Thats it there is nothing else there, i have asked my friend and he reckons it works for him. I have tried some examples i found on the net and if they have any "ar" in them they don't seem to work. I have tried uninstalling all my python stuff and doing a fresh install and that doesn't seem to make any difference either.
You need to put some elements into the ar list ...
python Syntax (Toggle Plain Text)
ar = [] # empty list gives IndexError: list index out of range #ar = ["cl", "cli", "clien"] # properly loaded list will work if ar[2]!="client": print "not client"
Last edited by vegaseat; Oct 25th, 2009 at 2:16 pm. Reason: updated old [php] code tags
May 'the Google' be with you!
![]() |
Similar Threads
- segmentation fault: causes. (C++)
- scanf reacts strangly (C++)
- Error while compiling (C)
- winrmc32.dll Virus in WinXP Pro SP2 (Viruses, Spyware and other Nasties)
- CPU Fan question... (Cases, Fans and Power Supplies)
- Help me with this kind of error.. pls.. (ASP)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Data Error: cyclic redundancy check (Windows 95 / 98 / Me)
- Error message when creating PDF (OS X)
- Error in Wrox Book (Perl)
Other Threads in the Python Forum
- Previous Thread: Wondering about new windows in Tkinter
- Next Thread: Python Tutorial Release 2.4.1
| Thread Tools | Search this Thread |
accessdenied advanced aliased argv beginner bits calling casino change command convert count csv cturtle cursor def dictionary digital dynamic dynamically enter event examples external file float format frange function google gui hints homework i/o iframe import input jaunty java keyboard lapse line linux list lists loop microphone mouse movingimageswithpygame multiple newb number numbers obexftp output parameters parsing path port prime programming projects py py2exe pygame pygtk pyopengl python random recursion remote return reverse scrolledtext session signal simple skinning sprite string strings syntax terminal text threading time tkinter tlapse tuple tutorial ubuntu unicode unit urllib urllib2 variable voip web-scrape whileloop wxpython






