Staging
v0.5.1
https://github.com/python/cpython
Revision a52cce7ee8bf8bed274e0c222462ac5497fc7938 authored by Alexander Belopolsky on 11 November 2010, 14:28:12 UTC, committed by Alexander Belopolsky on 11 November 2010, 14:28:12 UTC
........
  r86410 | alexander.belopolsky | 2010-11-11 09:07:41 -0500 (Thu, 11 Nov 2010) | 4 lines

  Issue #10386: Added __all__ to token module; this simplifies importing
  in tokenize module and prevents leaking of private names through
  import *.
........
1 parent 38c1a4d
Raw File
Tip revision: a52cce7ee8bf8bed274e0c222462ac5497fc7938 authored by Alexander Belopolsky on 11 November 2010, 14:28:12 UTC
Blocked revisions 86410 via svnmerge
Tip revision: a52cce7
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.
*/

PyAPI_DATA(PyTypeObject) PyRange_Type;
PyAPI_DATA(PyTypeObject) PyRangeIter_Type;
PyAPI_DATA(PyTypeObject) PyLongRangeIter_Type;

#define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type)

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