Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(119575)

Side by Side Diff: Include/genobject.h

Issue 11682: PEP 380 reference implementation for 3.3
Patch Set: Created 7 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 /* Generator object interface */ 2 /* Generator object interface */
3 3
4 #ifndef Py_LIMITED_API 4 #ifndef Py_LIMITED_API
5 #ifndef Py_GENOBJECT_H 5 #ifndef Py_GENOBJECT_H
6 #define Py_GENOBJECT_H 6 #define Py_GENOBJECT_H
7 #ifdef __cplusplus 7 #ifdef __cplusplus
8 extern "C" { 8 extern "C" {
9 #endif 9 #endif
10 10
(...skipping 16 matching lines...) Expand all
27 PyObject *gi_weakreflist; 27 PyObject *gi_weakreflist;
28 } PyGenObject; 28 } PyGenObject;
29 29
30 PyAPI_DATA(PyTypeObject) PyGen_Type; 30 PyAPI_DATA(PyTypeObject) PyGen_Type;
31 31
32 #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type) 32 #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type)
33 #define PyGen_CheckExact(op) (Py_TYPE(op) == &PyGen_Type) 33 #define PyGen_CheckExact(op) (Py_TYPE(op) == &PyGen_Type)
34 34
35 PyAPI_FUNC(PyObject *) PyGen_New(struct _frame *); 35 PyAPI_FUNC(PyObject *) PyGen_New(struct _frame *);
36 PyAPI_FUNC(int) PyGen_NeedsFinalizing(PyGenObject *); 36 PyAPI_FUNC(int) PyGen_NeedsFinalizing(PyGenObject *);
37 PyAPI_FUNC(int) PyGen_FetchStopIterationValue(PyObject **);
37 38
38 #ifdef __cplusplus 39 #ifdef __cplusplus
39 } 40 }
40 #endif 41 #endif
41 #endif /* !Py_GENOBJECT_H */ 42 #endif /* !Py_GENOBJECT_H */
42 #endif /* Py_LIMITED_API */ 43 #endif /* Py_LIMITED_API */
OLDNEW
« no previous file with comments | « Include/frameobject.h ('k') | Include/graminit.h » ('j') | Modules/parsermodule.c » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+