Exception after upgrading to 0.85

I get the following exception after upgrading from 0.84 to

    > 0.85. My server is running on ubuntu with python 2.4:

Try replacing that bit of code with

    if iterable(o) and len(o): o = o[0]

JDH

    > I get the following exception after upgrading
    from 0.84 to
    > 0.85. My server is running on ubuntu with python 2.4:

Try replacing that bit of code with
    if iterable(o) and len(o): o = o[0]

Recall a Python 2.4 oddity:

x=[1,2,3,4]
o=iter(x)
len(o)

4

o[0]

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unindexable object

I understand iterables will return to their 2.3 behavior,
but for now we have this oddity.

Cheers,
Alan Isaac

···

On Wed, 07 Dec 2005 07:57:23 -0600 John Hunter apparently wrote:

Thanks John, That fixed the problem.

VJ

···

----- Original Message ----
From: Alan G Isaac <aisaac@...310...>
To: matplotlib-users@lists.sourceforge.net
Sent: Wednesday, December 07, 2005 10:38:54 AM
Subject: Re[2]: [Matplotlib-users] Exception after upgrading to 0.85

    > I get the following exception after upgrading
    from 0.84 to
    > 0.85. My server is running on ubuntu with python 2.4:

On Wed, 07 Dec 2005 07:57:23 -0600 John Hunter apparently wrote:

Try replacing that bit of code with
    if iterable(o) and len(o): o = o[0]

Recall a Python 2.4 oddity:

x=[1,2,3,4]
o=iter(x)
len(o)

4

o[0]

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unindexable object

I understand iterables will return to their 2.3 behavior,
but for now we have this oddity.

Cheers,
Alan Isaac

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net