Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Puzzling error msg.

Reply
Thread Tools

Re: Puzzling error msg.

 
 
Chris Angelico
Guest
Posts: n/a
 
      12-04-2012
On Tue, Dec 4, 2012 at 1:28 PM, Dave Angel <(E-Mail Removed)> wrote:
> On 12/03/2012 03:33 PM, Chris Angelico wrote:
>> <snip>
>> Is it possible that the error actually came from further up (with a
>> faulty line number) and was actually because communicate() somehow
>> returned an empty list? That's the only place in the code quoted that
>> I'm seeing indexing, but communicate() is supposed to return a tuple,
>> not a list. ChrisA

> Tuples can also be empty. Try j = () for example, and look at its type
> and length.
>
> No idea if this is the problem, but just wanted to nitpick.


They can, yes, but the error said *list* index out of range. That
shouldn't happen off an empty tuple.

ChrisA
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Puzzling error msg. Steven D'Aprano Python 0 12-03-2012 06:12 PM
puzzling error Bill Cunningham C Programming 49 05-11-2011 06:30 PM
Puzzling JNI error message Roedy Green Java 9 10-12-2008 12:31 AM
puzzling error from GCC 3.4.4 drn@nadler.com C++ 6 10-08-2007 01:39 PM
puzzling error in script that copies files before processing them Ted Perl Misc 0 07-12-2006 03:25 PM



Advertisments