annotate Include/rangeobject.h @ 64209:dfd0229748ef 2.7

Merged revisions 84239 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84239 | antoine.pitrou | 2010-08-21 21:09:32 +0200 (sam., 21 août 2010) | 4 lines Issue #9617: Signals received during a low-level write operation aren't ignored by the buffered IO layer anymore. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 21 Aug 2010 19:17:25 +0000
parents 26384b8180c7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1369
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
1
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 /* Range object interface */
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
3
18039
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
4 #ifndef Py_RANGEOBJECT_H
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
5 #define Py_RANGEOBJECT_H
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
6 #ifdef __cplusplus
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
7 extern "C" {
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
8 #endif
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
9
33856
60c60dc75c77 Wrote down the invariants of some common objects whose structure is
Armin Rigo <arigo@tunes.org>
parents: 24752
diff changeset
10 /* This is about the type 'xrange', not the built-in function range(), which
60c60dc75c77 Wrote down the invariants of some common objects whose structure is
Armin Rigo <arigo@tunes.org>
parents: 24752
diff changeset
11 returns regular lists. */
60c60dc75c77 Wrote down the invariants of some common objects whose structure is
Armin Rigo <arigo@tunes.org>
parents: 24752
diff changeset
12
1369
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 /*
2146
9afdbf944c2a new names for lots of new functions
Guido van Rossum <guido@python.org>
parents: 2129
diff changeset
14 A range object represents an integer range. This is an immutable object;
1369
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
15 a range cannot change its value after creation.
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
16
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
17 Range objects behave like the corresponding tuple objects except that
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
18 they are represented by a start, stop, and step datamembers.
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
19 */
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
20
24752
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 18436
diff changeset
21 PyAPI_DATA(PyTypeObject) PyRange_Type;
1369
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
22
44350
26384b8180c7 #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
Christian Heimes <christian@cheimes.de>
parents: 42333
diff changeset
23 #define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type)
1369
89e1e5d9ccbf * compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
diff changeset
24
18039
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
25 #ifdef __cplusplus
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
26 }
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
27 #endif
91619d7df58b Wrap with extern "C". Fixes bug #428419.
Martin v. Löwis <martin@v.loewis.de>
parents: 14375
diff changeset
28 #endif /* !Py_RANGEOBJECT_H */