python - be: Throw IndexError when subscript is out of bounds.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - be: Throw IndexError when subscript is out of bounds.
Date: 2006-04-02 20:18:30
Message-ID: 20060402201830.B7EBC103384F@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Throw IndexError when subscript is out of bounds.

Not doing this in subscript caused the default iterator to return None
forever--well, until MemoryError got raised.

Modified Files:
--------------
be/src/type:
array.c (r1.6 -> r1.7)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/type/array.c.diff?r1=1.6&r2=1.7)

Browse pgsql-committers by date

  From Date Subject
Next Message User Gsmet 2006-04-02 21:32:21 pgfouine - pgfouine: minor fix
Previous Message Neil Conway 2006-04-02 20:08:23 pgsql: Rewrite much of psql's \connect code, for the sake of code