diff Objects/rangeobject.c @ 26097:e526365ddccd legacy-trunk

Restore attribute access so that the following work again: dir(xrange(10)) xrange(10).__getitem__(4)
author Raymond Hettinger <python@rcn.com>
date Thu, 07 Nov 2002 16:55:54 +0000
parents 2490cf7e68a4
children 0c646baeec58
line wrap: on
line diff
--- a/Objects/rangeobject.c	Thu Nov 07 16:46:19 2002 +0000
+++ b/Objects/rangeobject.c	Thu Nov 07 16:55:54 2002 +0000
@@ -190,7 +190,7 @@
 	0,				/* tp_hash */
 	0,				/* tp_call */
 	0,				/* tp_str */
-	0,				/* tp_getattro */
+	PyObject_GenericGetAttr,	/* tp_getattro */
 	0,				/* tp_setattro */
 	0,				/* tp_as_buffer */
 	Py_TPFLAGS_DEFAULT,		/* tp_flags */