Staging
v0.5.1
https://github.com/python/cpython
Revision 30ea2f223f5c0a85a13bd893063555a9f587cd6d authored by Michael W. Hudson on 07 July 2004, 17:44:12 UTC, committed by Michael W. Hudson on 07 July 2004, 17:44:12 UTC
[ 960406 ] unblock signals in threads

although the changes do not correspond exactly to any patch attached to
that report.

Non-main threads no longer have all signals masked.

A different interface to readline is used.

The handling of signals inside calls to PyOS_Readline is now rather
different.

These changes are all a bit scary!  Review and cross-platform testing
much appreciated.
1 parent e3c330b
Raw File
Tip revision: 30ea2f223f5c0a85a13bd893063555a9f587cd6d authored by Michael W. Hudson on 07 July 2004, 17:44:12 UTC
This closes patch:
Tip revision: 30ea2f2
genobject.h

/* Generator object interface */

#ifndef Py_GENOBJECT_H
#define Py_GENOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

struct _frame; /* Avoid including frameobject.h */

typedef struct {
	PyObject_HEAD
	/* The gi_ prefix is intended to remind of generator-iterator. */

	struct _frame *gi_frame;

	/* True if generator is being executed. */
	int gi_running;

	/* List of weak reference. */
	PyObject *gi_weakreflist;
} PyGenObject;

PyAPI_DATA(PyTypeObject) PyGen_Type;

#define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type)
#define PyGen_CheckExact(op) ((op)->ob_type == &PyGen_Type)

PyAPI_FUNC(PyObject *) PyGen_New(struct _frame *);

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