Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 1 | |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 2 | /* Module object implementation */ |
| 3 | |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 4 | #include "Python.h" |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 5 | #include "structmember.h" |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 6 | |
| 7 | typedef struct { |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 8 | PyObject_HEAD |
| 9 | PyObject *md_dict; |
| 10 | } PyModuleObject; |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 11 | |
Neil Schemenauer | f23473f | 2001-10-21 22:28:58 +0000 | [diff] [blame] | 12 | static PyMemberDef module_members[] = { |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 13 | {"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY}, |
| 14 | {0} |
| 15 | }; |
| 16 | |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 17 | PyObject * |
Jeremy Hylton | af68c87 | 2005-12-10 18:50:16 +0000 | [diff] [blame] | 18 | PyModule_New(const char *name) |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 19 | { |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 20 | PyModuleObject *m; |
| 21 | PyObject *nameobj; |
Neil Schemenauer | e83c00e | 2001-08-29 23:54:21 +0000 | [diff] [blame] | 22 | m = PyObject_GC_New(PyModuleObject, &PyModule_Type); |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 23 | if (m == NULL) |
| 24 | return NULL; |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 25 | nameobj = PyString_FromString(name); |
| 26 | m->md_dict = PyDict_New(); |
Guido van Rossum | c45611d | 1993-11-17 22:58:56 +0000 | [diff] [blame] | 27 | if (m->md_dict == NULL || nameobj == NULL) |
| 28 | goto fail; |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 29 | if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) |
Guido van Rossum | c45611d | 1993-11-17 22:58:56 +0000 | [diff] [blame] | 30 | goto fail; |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 31 | if (PyDict_SetItemString(m->md_dict, "__doc__", Py_None) != 0) |
Guido van Rossum | 8b14b4c | 1995-01-07 11:59:29 +0000 | [diff] [blame] | 32 | goto fail; |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 33 | Py_DECREF(nameobj); |
Neil Schemenauer | e83c00e | 2001-08-29 23:54:21 +0000 | [diff] [blame] | 34 | PyObject_GC_Track(m); |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 35 | return (PyObject *)m; |
Guido van Rossum | c45611d | 1993-11-17 22:58:56 +0000 | [diff] [blame] | 36 | |
| 37 | fail: |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 38 | Py_XDECREF(nameobj); |
| 39 | Py_DECREF(m); |
Guido van Rossum | c45611d | 1993-11-17 22:58:56 +0000 | [diff] [blame] | 40 | return NULL; |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 41 | } |
| 42 | |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 43 | PyObject * |
Fred Drake | ee238b9 | 2000-07-09 06:03:25 +0000 | [diff] [blame] | 44 | PyModule_GetDict(PyObject *m) |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 45 | { |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 46 | PyObject *d; |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 47 | if (!PyModule_Check(m)) { |
| 48 | PyErr_BadInternalCall(); |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 49 | return NULL; |
| 50 | } |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 51 | d = ((PyModuleObject *)m) -> md_dict; |
| 52 | if (d == NULL) |
| 53 | ((PyModuleObject *)m) -> md_dict = d = PyDict_New(); |
| 54 | return d; |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 55 | } |
| 56 | |
Guido van Rossum | 0558a20 | 1990-10-26 15:00:11 +0000 | [diff] [blame] | 57 | char * |
Fred Drake | ee238b9 | 2000-07-09 06:03:25 +0000 | [diff] [blame] | 58 | PyModule_GetName(PyObject *m) |
Guido van Rossum | 0558a20 | 1990-10-26 15:00:11 +0000 | [diff] [blame] | 59 | { |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 60 | PyObject *d; |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 61 | PyObject *nameobj; |
| 62 | if (!PyModule_Check(m)) { |
| 63 | PyErr_BadArgument(); |
Guido van Rossum | 0558a20 | 1990-10-26 15:00:11 +0000 | [diff] [blame] | 64 | return NULL; |
| 65 | } |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 66 | d = ((PyModuleObject *)m)->md_dict; |
| 67 | if (d == NULL || |
| 68 | (nameobj = PyDict_GetItemString(d, "__name__")) == NULL || |
Guido van Rossum | 572dbf8 | 2007-04-27 23:53:51 +0000 | [diff] [blame] | 69 | !(PyString_Check(nameobj) || PyUnicode_Check(nameobj))) |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 70 | { |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 71 | PyErr_SetString(PyExc_SystemError, "nameless module"); |
Guido van Rossum | c45611d | 1993-11-17 22:58:56 +0000 | [diff] [blame] | 72 | return NULL; |
| 73 | } |
Guido van Rossum | f15a29f | 2007-05-04 00:41:39 +0000 | [diff] [blame] | 74 | if (PyUnicode_Check(nameobj)) { |
| 75 | nameobj = _PyUnicode_AsDefaultEncodedString(nameobj, NULL); |
| 76 | if (nameobj == NULL) |
| 77 | return NULL; |
| 78 | } |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 79 | return PyString_AsString(nameobj); |
Guido van Rossum | 0558a20 | 1990-10-26 15:00:11 +0000 | [diff] [blame] | 80 | } |
| 81 | |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 82 | char * |
Fred Drake | ee238b9 | 2000-07-09 06:03:25 +0000 | [diff] [blame] | 83 | PyModule_GetFilename(PyObject *m) |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 84 | { |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 85 | PyObject *d; |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 86 | PyObject *fileobj; |
| 87 | if (!PyModule_Check(m)) { |
| 88 | PyErr_BadArgument(); |
| 89 | return NULL; |
| 90 | } |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 91 | d = ((PyModuleObject *)m)->md_dict; |
| 92 | if (d == NULL || |
| 93 | (fileobj = PyDict_GetItemString(d, "__file__")) == NULL || |
| 94 | !PyString_Check(fileobj)) |
| 95 | { |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 96 | PyErr_SetString(PyExc_SystemError, "module filename missing"); |
| 97 | return NULL; |
| 98 | } |
| 99 | return PyString_AsString(fileobj); |
| 100 | } |
| 101 | |
Guido van Rossum | f1dc061 | 1998-02-19 20:51:52 +0000 | [diff] [blame] | 102 | void |
Fred Drake | ee238b9 | 2000-07-09 06:03:25 +0000 | [diff] [blame] | 103 | _PyModule_Clear(PyObject *m) |
Guido van Rossum | f1dc061 | 1998-02-19 20:51:52 +0000 | [diff] [blame] | 104 | { |
| 105 | /* To make the execution order of destructors for global |
| 106 | objects a bit more predictable, we first zap all objects |
| 107 | whose name starts with a single underscore, before we clear |
| 108 | the entire dictionary. We zap them by replacing them with |
| 109 | None, rather than deleting them from the dictionary, to |
| 110 | avoid rehashing the dictionary (to some extent). */ |
| 111 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 112 | Py_ssize_t pos; |
Guido van Rossum | f1dc061 | 1998-02-19 20:51:52 +0000 | [diff] [blame] | 113 | PyObject *key, *value; |
| 114 | PyObject *d; |
| 115 | |
| 116 | d = ((PyModuleObject *)m)->md_dict; |
Guido van Rossum | cd637aa | 2002-03-12 20:37:02 +0000 | [diff] [blame] | 117 | if (d == NULL) |
| 118 | return; |
Guido van Rossum | f1dc061 | 1998-02-19 20:51:52 +0000 | [diff] [blame] | 119 | |
| 120 | /* First, clear only names starting with a single underscore */ |
| 121 | pos = 0; |
| 122 | while (PyDict_Next(d, &pos, &key, &value)) { |
| 123 | if (value != Py_None && PyString_Check(key)) { |
| 124 | char *s = PyString_AsString(key); |
| 125 | if (s[0] == '_' && s[1] != '_') { |
| 126 | if (Py_VerboseFlag > 1) |
Guido van Rossum | 2f3667a | 1998-10-12 18:23:55 +0000 | [diff] [blame] | 127 | PySys_WriteStderr("# clear[1] %s\n", s); |
Guido van Rossum | f1dc061 | 1998-02-19 20:51:52 +0000 | [diff] [blame] | 128 | PyDict_SetItem(d, key, Py_None); |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | /* Next, clear all names except for __builtins__ */ |
| 134 | pos = 0; |
| 135 | while (PyDict_Next(d, &pos, &key, &value)) { |
| 136 | if (value != Py_None && PyString_Check(key)) { |
| 137 | char *s = PyString_AsString(key); |
| 138 | if (s[0] != '_' || strcmp(s, "__builtins__") != 0) { |
| 139 | if (Py_VerboseFlag > 1) |
Guido van Rossum | 2f3667a | 1998-10-12 18:23:55 +0000 | [diff] [blame] | 140 | PySys_WriteStderr("# clear[2] %s\n", s); |
Guido van Rossum | f1dc061 | 1998-02-19 20:51:52 +0000 | [diff] [blame] | 141 | PyDict_SetItem(d, key, Py_None); |
| 142 | } |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | /* Note: we leave __builtins__ in place, so that destructors |
| 147 | of non-global objects defined in this module can still use |
| 148 | builtins, in particularly 'None'. */ |
| 149 | |
| 150 | } |
| 151 | |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 152 | /* Methods */ |
| 153 | |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 154 | static int |
Guido van Rossum | c3a787e | 2002-06-04 05:52:47 +0000 | [diff] [blame] | 155 | module_init(PyModuleObject *m, PyObject *args, PyObject *kwds) |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 156 | { |
Martin v. Löwis | 15e6274 | 2006-02-27 16:46:16 +0000 | [diff] [blame] | 157 | static char *kwlist[] = {"name", "doc", NULL}; |
Guido van Rossum | c3a787e | 2002-06-04 05:52:47 +0000 | [diff] [blame] | 158 | PyObject *dict, *name = Py_None, *doc = Py_None; |
Jeremy Hylton | af68c87 | 2005-12-10 18:50:16 +0000 | [diff] [blame] | 159 | if (!PyArg_ParseTupleAndKeywords(args, kwds, "S|O:module.__init__", |
| 160 | kwlist, &name, &doc)) |
Guido van Rossum | c3a787e | 2002-06-04 05:52:47 +0000 | [diff] [blame] | 161 | return -1; |
| 162 | dict = m->md_dict; |
| 163 | if (dict == NULL) { |
| 164 | dict = PyDict_New(); |
| 165 | if (dict == NULL) |
| 166 | return -1; |
| 167 | m->md_dict = dict; |
| 168 | } |
| 169 | if (PyDict_SetItemString(dict, "__name__", name) < 0) |
| 170 | return -1; |
| 171 | if (PyDict_SetItemString(dict, "__doc__", doc) < 0) |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 172 | return -1; |
| 173 | return 0; |
| 174 | } |
| 175 | |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 176 | static void |
Fred Drake | ee238b9 | 2000-07-09 06:03:25 +0000 | [diff] [blame] | 177 | module_dealloc(PyModuleObject *m) |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 178 | { |
Neil Schemenauer | e83c00e | 2001-08-29 23:54:21 +0000 | [diff] [blame] | 179 | PyObject_GC_UnTrack(m); |
Guido van Rossum | 27e916f | 1995-01-26 00:39:00 +0000 | [diff] [blame] | 180 | if (m->md_dict != NULL) { |
Guido van Rossum | f1dc061 | 1998-02-19 20:51:52 +0000 | [diff] [blame] | 181 | _PyModule_Clear((PyObject *)m); |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 182 | Py_DECREF(m->md_dict); |
Guido van Rossum | 27e916f | 1995-01-26 00:39:00 +0000 | [diff] [blame] | 183 | } |
Guido van Rossum | 9475a23 | 2001-10-05 20:51:39 +0000 | [diff] [blame] | 184 | m->ob_type->tp_free((PyObject *)m); |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 185 | } |
| 186 | |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 187 | static PyObject * |
Fred Drake | ee238b9 | 2000-07-09 06:03:25 +0000 | [diff] [blame] | 188 | module_repr(PyModuleObject *m) |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 189 | { |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 190 | char *name; |
| 191 | char *filename; |
Barry Warsaw | 2907fe6 | 2001-08-16 20:39:24 +0000 | [diff] [blame] | 192 | |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 193 | name = PyModule_GetName((PyObject *)m); |
Guido van Rossum | c45611d | 1993-11-17 22:58:56 +0000 | [diff] [blame] | 194 | if (name == NULL) { |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 195 | PyErr_Clear(); |
Guido van Rossum | c45611d | 1993-11-17 22:58:56 +0000 | [diff] [blame] | 196 | name = "?"; |
| 197 | } |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 198 | filename = PyModule_GetFilename((PyObject *)m); |
| 199 | if (filename == NULL) { |
| 200 | PyErr_Clear(); |
Barry Warsaw | 7ce3694 | 2001-08-24 18:34:26 +0000 | [diff] [blame] | 201 | return PyString_FromFormat("<module '%s' (built-in)>", name); |
Guido van Rossum | 98cc19f | 1999-02-15 14:47:16 +0000 | [diff] [blame] | 202 | } |
Barry Warsaw | 7ce3694 | 2001-08-24 18:34:26 +0000 | [diff] [blame] | 203 | return PyString_FromFormat("<module '%s' from '%s'>", name, filename); |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 204 | } |
| 205 | |
Neil Schemenauer | 10e31cf | 2001-01-02 15:58:27 +0000 | [diff] [blame] | 206 | /* We only need a traverse function, no clear function: If the module |
| 207 | is in a cycle, md_dict will be cleared as well, which will break |
| 208 | the cycle. */ |
| 209 | static int |
| 210 | module_traverse(PyModuleObject *m, visitproc visit, void *arg) |
| 211 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 212 | Py_VISIT(m->md_dict); |
Neil Schemenauer | 10e31cf | 2001-01-02 15:58:27 +0000 | [diff] [blame] | 213 | return 0; |
| 214 | } |
| 215 | |
Martin v. Löwis | 14f8b4c | 2002-06-13 20:33:02 +0000 | [diff] [blame] | 216 | PyDoc_STRVAR(module_doc, |
Guido van Rossum | ed3e09f | 2002-06-04 06:02:35 +0000 | [diff] [blame] | 217 | "module(name[, doc])\n\ |
| 218 | \n\ |
| 219 | Create a module object.\n\ |
Martin v. Löwis | 14f8b4c | 2002-06-13 20:33:02 +0000 | [diff] [blame] | 220 | The name must be a string; the optional doc argument can have any type."); |
Guido van Rossum | ed3e09f | 2002-06-04 06:02:35 +0000 | [diff] [blame] | 221 | |
Guido van Rossum | c0b618a | 1997-05-02 03:12:38 +0000 | [diff] [blame] | 222 | PyTypeObject PyModule_Type = { |
| 223 | PyObject_HEAD_INIT(&PyType_Type) |
Tim Peters | d85e102 | 2001-05-11 21:51:48 +0000 | [diff] [blame] | 224 | 0, /* ob_size */ |
| 225 | "module", /* tp_name */ |
Neil Schemenauer | e83c00e | 2001-08-29 23:54:21 +0000 | [diff] [blame] | 226 | sizeof(PyModuleObject), /* tp_size */ |
Tim Peters | d85e102 | 2001-05-11 21:51:48 +0000 | [diff] [blame] | 227 | 0, /* tp_itemsize */ |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 228 | (destructor)module_dealloc, /* tp_dealloc */ |
Tim Peters | d85e102 | 2001-05-11 21:51:48 +0000 | [diff] [blame] | 229 | 0, /* tp_print */ |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 230 | 0, /* tp_getattr */ |
| 231 | 0, /* tp_setattr */ |
Tim Peters | d85e102 | 2001-05-11 21:51:48 +0000 | [diff] [blame] | 232 | 0, /* tp_compare */ |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 233 | (reprfunc)module_repr, /* tp_repr */ |
Tim Peters | d85e102 | 2001-05-11 21:51:48 +0000 | [diff] [blame] | 234 | 0, /* tp_as_number */ |
| 235 | 0, /* tp_as_sequence */ |
| 236 | 0, /* tp_as_mapping */ |
| 237 | 0, /* tp_hash */ |
| 238 | 0, /* tp_call */ |
| 239 | 0, /* tp_str */ |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 240 | PyObject_GenericGetAttr, /* tp_getattro */ |
Neil Schemenauer | 7555294 | 2003-07-16 22:04:11 +0000 | [diff] [blame] | 241 | PyObject_GenericSetAttr, /* tp_setattro */ |
Tim Peters | d85e102 | 2001-05-11 21:51:48 +0000 | [diff] [blame] | 242 | 0, /* tp_as_buffer */ |
Neil Schemenauer | e83c00e | 2001-08-29 23:54:21 +0000 | [diff] [blame] | 243 | Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 244 | Py_TPFLAGS_BASETYPE, /* tp_flags */ |
Guido van Rossum | ed3e09f | 2002-06-04 06:02:35 +0000 | [diff] [blame] | 245 | module_doc, /* tp_doc */ |
Tim Peters | d85e102 | 2001-05-11 21:51:48 +0000 | [diff] [blame] | 246 | (traverseproc)module_traverse, /* tp_traverse */ |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 247 | 0, /* tp_clear */ |
| 248 | 0, /* tp_richcompare */ |
| 249 | 0, /* tp_weaklistoffset */ |
| 250 | 0, /* tp_iter */ |
| 251 | 0, /* tp_iternext */ |
| 252 | 0, /* tp_methods */ |
| 253 | module_members, /* tp_members */ |
| 254 | 0, /* tp_getset */ |
| 255 | 0, /* tp_base */ |
| 256 | 0, /* tp_dict */ |
| 257 | 0, /* tp_descr_get */ |
| 258 | 0, /* tp_descr_set */ |
| 259 | offsetof(PyModuleObject, md_dict), /* tp_dictoffset */ |
| 260 | (initproc)module_init, /* tp_init */ |
| 261 | PyType_GenericAlloc, /* tp_alloc */ |
| 262 | PyType_GenericNew, /* tp_new */ |
Neil Schemenauer | 99b5d28 | 2002-04-12 02:44:22 +0000 | [diff] [blame] | 263 | PyObject_GC_Del, /* tp_free */ |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 264 | }; |