Staging
v0.5.1
https://github.com/python/cpython
Revision abacccc50c891f32c83dcf9ae38fe310ecf87409 authored by Steven Bethard on 01 November 2010, 14:09:21 UTC, committed by Steven Bethard on 01 November 2010, 14:09:21 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86080 | steven.bethard | 2010-11-01 14:56:09 +0100 (Mon, 01 Nov 2010) | 1 line

  Unset COLUMNS for test_argparse (and restore afterwards) (issue 9553)
........
1 parent 87d86e0
Raw File
Tip revision: abacccc50c891f32c83dcf9ae38fe310ecf87409 authored by Steven Bethard on 01 November 2010, 14:09:21 UTC
Merged revisions 86080 via svnmerge from
Tip revision: abacccc
cellobject.h
/* Cell object interface */

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

typedef struct {
	PyObject_HEAD
	PyObject *ob_ref;	/* Content of the cell or NULL when empty */
} PyCellObject;

PyAPI_DATA(PyTypeObject) PyCell_Type;

#define PyCell_Check(op) (Py_TYPE(op) == &PyCell_Type)

PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);

#define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
#define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)

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