diff -r d75393f1eb8d src/org/python/core/PyXRange.java --- a/src/org/python/core/PyXRange.java Sat Jun 04 18:00:50 2011 -0700 +++ b/src/org/python/core/PyXRange.java Thu Jun 09 02:51:15 2011 +0200 @@ -127,8 +127,7 @@ @Override protected PyObject getslice(int start, int stop, int step) { - // not supported - return null; + throw Py.TypeError("xrange indices must be integers"); } @Override