Staging
v0.5.1
https://github.com/python/cpython
Revision d23ee5d652ba69a32504dac43131be782b6afdc7 authored by Miss Islington (bot) on 28 May 2020, 01:41:38 UTC, committed by GitHub on 28 May 2020, 01:41:38 UTC

* Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit eaca2aa117d663acf8160a0b4543ee2c7006fcc7)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
1 parent de6b684
Raw File
Tip revision: d23ee5d652ba69a32504dac43131be782b6afdc7 authored by Miss Islington (bot) on 28 May 2020, 01:41:38 UTC
Improve IO tutorial's "Old string formatting" section (GH-16251)
Tip revision: d23ee5d
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_IS_TYPE(op, &PyRange_Type)

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