summaryrefslogtreecommitdiffstats
path: root/Include/rangeobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-17 16:01:01 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-17 16:01:01 (GMT)
commit938178283c29cdc2c8f5004d58dff110ac907883 (patch)
tree7d38251f32f2bb35f58e40aed465785f6f7039f4 /Include/rangeobject.h
parent8e8a525f229ef6a9e1b881e9b71eda72dabd5007 (diff)
downloadcpython-938178283c29cdc2c8f5004d58dff110ac907883.zip
cpython-938178283c29cdc2c8f5004d58dff110ac907883.tar.gz
cpython-938178283c29cdc2c8f5004d58dff110ac907883.tar.bz2
new names for lots of new functions
Diffstat (limited to 'Include/rangeobject.h')
-rw-r--r--Include/rangeobject.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/Include/rangeobject.h b/Include/rangeobject.h
index f7ed0f1..f8b466c 100644
--- a/Include/rangeobject.h
+++ b/Include/rangeobject.h
@@ -25,17 +25,15 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Range object interface */
/*
-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
-
-rangeobject represents an integer range. This is an immutable object;
+A range object represents an integer range. This is an immutable object;
a range cannot change its value after creation.
Range objects behave like the corresponding tuple objects except that
they are represented by a start, stop, and step datamembers.
*/
-extern DL_IMPORT PyTypeObject Rangetype;
+extern DL_IMPORT PyTypeObject PyRange_Type;
-#define is_rangeobject(op) ((op)->ob_type == &Rangetype)
+#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
-extern PyObject *newrangeobject Py_PROTO((long, long, long, int));
+extern PyObject *PyRange_New Py_PROTO((long, long, long, int));