Velocity Reviews

Velocity Reviews (
-   Python (
-   -   Re: Puzzling error msg. (

Dave Angel 12-04-2012 03:43 AM

Re: Puzzling error msg.
On 12/03/2012 10:28 PM, Chris Angelico wrote:
> On Tue, Dec 4, 2012 at 1:28 PM, Dave Angel <> 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.

Quite right. I missed that part of the context. Sorry.



All times are GMT. The time now is 08:05 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.