[issue6600] MemoryError in AiX 64-bit build

Sridhar Ratnakumar report at bugs.python.org
Thu Jul 30 05:00:21 CEST 2009


Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

I localized the error to line 248 in http://svn.python.org/view/python/
branches/release26-maint/Objects/fileobject.c?annotate=68135#248 
(brandl's change made 3 years ago)

  static PyObject *
  open_the_file(PyFileObject *f, char *name, char *mode)
  {
  [...]
    /* probably need to replace 'U' by 'rb' */
    newmode = PyMem_MALLOC(strlen(mode) + 3);
    if (!newmode) {
      PyErr_NoMemory();
      return NULL;
    }

----------
nosy: +georg.brandl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6600>
_______________________________________


More information about the Python-bugs-list mailing list