diff Python/bltinmodule.c @ 18436:9653272f036f legacy-trunk

Re-add 'advanced' xrange features, adding DeprecationWarnings as discussed on python-dev. The features will still vanish, however, just one release later.
author Thomas Wouters <thomas@python.org>
date Mon, 09 Jul 2001 12:30:54 +0000
parents 74b3c4e3f486
children fdb36a0c7e6e
line wrap: on
line diff
--- a/Python/bltinmodule.c	Mon Jul 09 10:45:31 2001 +0000
+++ b/Python/bltinmodule.c	Mon Jul 09 12:30:54 2001 +0000
@@ -1763,7 +1763,7 @@
 				"xrange() result has too many items");
 		return NULL;
 	}
-	return PyRange_New(ilow, n, istep);
+	return PyRange_New(ilow, n, istep, 1);
 }
 
 static char xrange_doc[] =