diff options
author | Guido van Rossum <guido@python.org> | 1995-01-17 16:01:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-17 16:01:01 (GMT) |
commit | 938178283c29cdc2c8f5004d58dff110ac907883 (patch) | |
tree | 7d38251f32f2bb35f58e40aed465785f6f7039f4 /Include/rangeobject.h | |
parent | 8e8a525f229ef6a9e1b881e9b71eda72dabd5007 (diff) | |
download | cpython-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.h | 10 |
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)); |