daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

ResultSet.__getitem__ raises AssertionError instead of IndexError #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
According to Python reference documentation 
http://docs.python.org/reference/datamodel.html#object.__getitem__ we should 
raise 
IndexError if we doesn't support negative indexes. For now an AssertionError is 
raised for the case.

Original issue reported on code.google.com by esizi...@gmail.com on 17 Feb 2010 at 5:56

GoogleCodeExporter commented 9 years ago
Done in r335

Original comment by daevaorn on 18 Feb 2010 at 9:45