Python checking for None/Null values

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Aug 11 06:25:42 EDT 2006


In <1155291204.446003.93760 at m73g2000cwd.googlegroups.com>, Fuzzydave
wrote:

> but regardless i am getting the error below and i can't seen to resolve
> this, what am i
> doing wrong?
> 
> Traceback (most recent call last): File
> "/home/phillipsd/work/medusa-new/htdocs/pricingrep.cgi", line 326, in ?
> if historyRep[8]==None: IndexError: list index out of range

`historyRep` seems to be shorter than you think it is.  Try printing it
too see what it actually contains.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list