Changeset 391 for python/trunk/Doc/c-api/gen.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/c-api/gen.rst
r2 r391 8 8 Generator objects are what Python uses to implement generator iterators. They 9 9 are normally created by iterating over a function that yields values, rather 10 than explicitly calling :c func:`PyGen_New`.10 than explicitly calling :c:func:`PyGen_New`. 11 11 12 12 13 .. c type:: PyGenObject13 .. c:type:: PyGenObject 14 14 15 15 The C structure used for generator objects. 16 16 17 17 18 .. c var:: PyTypeObject PyGen_Type18 .. c:var:: PyTypeObject PyGen_Type 19 19 20 20 The type object corresponding to generator objects 21 21 22 22 23 .. c function:: int PyGen_Check(ob)23 .. c:function:: int PyGen_Check(ob) 24 24 25 25 Return true if *ob* is a generator object; *ob* must not be *NULL*. 26 26 27 27 28 .. c function:: int PyGen_CheckExact(ob)28 .. c:function:: int PyGen_CheckExact(ob) 29 29 30 30 Return true if *ob*'s type is *PyGen_Type* is a generator object; *ob* must not … … 32 32 33 33 34 .. c function:: PyObject* PyGen_New(PyFrameObject *frame)34 .. c:function:: PyObject* PyGen_New(PyFrameObject *frame) 35 35 36 36 Create and return a new generator object based on the *frame* object. A
Note:
See TracChangeset
for help on using the changeset viewer.