Staging
v0.5.1
https://github.com/python/cpython
Revision c90cda9300ddee21f1cdae1cd857da3a3c71dda3 authored by Fred Drake on 11 June 2002, 02:58:26 UTC, committed by Fred Drake on 11 June 2002, 02:58:26 UTC
the semantics and presentation used in the library reference.
Added an explanation of the use of [...] to denote optional arguments, since
this is the only use of this in a signature line.
Closes SF bug #567127.
1 parent 63ab3e2
Raw File
Tip revision: c90cda9300ddee21f1cdae1cd857da3a3c71dda3 authored by Fred Drake on 11 June 2002, 02:58:26 UTC
Completely revise markup for the list of list methods; the new markup matches
Tip revision: c90cda9
rangeobject.h

/* Range object interface */

#ifndef Py_RANGEOBJECT_H
#define Py_RANGEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

/*
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) PyRange_Type;

#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)

extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);

#ifdef __cplusplus
}
#endif
#endif /* !Py_RANGEOBJECT_H */
back to top