home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / RANGEOBJECT.H < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-01  |  479 b   |  17 lines

  1.  
  2. /* Range object interface */
  3.  
  4. /*
  5. A range object represents an integer range.  This is an immutable object;
  6. a range cannot change its value after creation.
  7.  
  8. Range objects behave like the corresponding tuple objects except that
  9. they are represented by a start, stop, and step datamembers.
  10. */
  11.  
  12. extern DL_IMPORT(PyTypeObject) PyRange_Type;
  13.  
  14. #define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
  15.  
  16. extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
  17.