|
Last change
on this file since 1538 was 2, checked in by Yuri Dario, 15 years ago |
|
Initial import for vendor code.
|
-
Property svn:eol-style
set to
native
|
|
File size:
646 bytes
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | /* Range object interface */
|
|---|
| 3 |
|
|---|
| 4 | #ifndef Py_RANGEOBJECT_H
|
|---|
| 5 | #define Py_RANGEOBJECT_H
|
|---|
| 6 | #ifdef __cplusplus
|
|---|
| 7 | extern "C" {
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | /* This is about the type 'xrange', not the built-in function range(), which
|
|---|
| 11 | returns regular lists. */
|
|---|
| 12 |
|
|---|
| 13 | /*
|
|---|
| 14 | A range object represents an integer range. This is an immutable object;
|
|---|
| 15 | a range cannot change its value after creation.
|
|---|
| 16 |
|
|---|
| 17 | Range objects behave like the corresponding tuple objects except that
|
|---|
| 18 | they are represented by a start, stop, and step datamembers.
|
|---|
| 19 | */
|
|---|
| 20 |
|
|---|
| 21 | PyAPI_DATA(PyTypeObject) PyRange_Type;
|
|---|
| 22 |
|
|---|
| 23 | #define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type)
|
|---|
| 24 |
|
|---|
| 25 | #ifdef __cplusplus
|
|---|
| 26 | }
|
|---|
| 27 | #endif
|
|---|
| 28 | #endif /* !Py_RANGEOBJECT_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.