Mercurial > cpython-lru_cache-weakref
annotate Include/cellobject.h @ 25135:0f0016632be4 legacy-trunk
_formatparam(), set_param(): RFC 2231 encoding support by Oleg
Broytmann in SF patch #600096. Specifically, the former function now
encodes the triplets, while the latter adds optional charset and
language arguments.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 06 Sep 2002 03:55:04 +0000 |
| parents | c1eb668525e1 |
| children | 60c60dc75c77 |
| rev | line source |
|---|---|
| 16256 | 1 /* Cell object interface */ |
| 2 | |
| 3 #ifndef Py_CELLOBJECT_H | |
| 4 #define Py_CELLOBJECT_H | |
| 5 #ifdef __cplusplus | |
| 6 extern "C" { | |
| 7 #endif | |
| 8 | |
| 9 typedef struct { | |
|
22293
24af842030a0
backport jhylton's checkin of
Michael W. Hudson <mwh@python.net>
parents:
16256
diff
changeset
|
10 PyObject_HEAD |
| 16256 | 11 PyObject *ob_ref; |
| 12 } PyCellObject; | |
| 13 | |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
22293
diff
changeset
|
14 PyAPI_DATA(PyTypeObject) PyCell_Type; |
| 16256 | 15 |
| 16 #define PyCell_Check(op) ((op)->ob_type == &PyCell_Type) | |
| 17 | |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
22293
diff
changeset
|
18 PyAPI_FUNC(PyObject *) PyCell_New(PyObject *); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
22293
diff
changeset
|
19 PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
22293
diff
changeset
|
20 PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *); |
| 16256 | 21 |
| 22 #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref) | |
| 23 #define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v) | |
| 24 | |
| 25 #ifdef __cplusplus | |
| 26 } | |
| 27 #endif | |
| 28 #endif /* !Py_TUPLEOBJECT_H */ |
