Exemple #1
0
static PyObject *
IO_StringIO(PyObject *self, PyObject *args) {
  PyObject *s=0;

  if (!PyArg_UnpackTuple(args, "StringIO", 0, 1, &s)) return NULL;

  if (s) return newIobject(s);
  return newOobject(128);
}
Exemple #2
0
static PyObject *
IO_StringIO(PyObject *self, PyObject *s) {
  if (s) return newIobject(s);
  return newOobject(128);
}