Bugs item #1306449, was opened at 2005-09-28 03:37 Message generated for change (Settings changed) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1306449&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: Python 2.4 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Gregory Bond (gnbond) >Assigned to: Georg Brandl (gbrandl) Summary: PyString_AsStringAndSize() return value documented wrong Initial Comment: The C/C++ API document (latest version from docs.python.org) has: int PyString_AsStringAndSize( PyObject *obj, char **buffer, int *length) [snip] If string is not a string object at all, PyString_AsString() returns NULL and raises TypeError. But the code returns -1 (Objects/stringobject.c line 728ff in my 2.3.4 source): { PyErr_Format(PyExc_TypeError, "expected string or Unicode object, " "%.200s found", obj->ob_type->tp_name); return -1; } ---------------------------------------------------------------------- Comment By: Georg Brandl (birkenfeld) Date: 2005-09-28 12:53 Message: Logged In: YES user_id=1188172 Thanks for the report, fixed in Doc/api/concrete.tex r1.67, 1.58.2.4. ---------------------------------------------------------------------- Comment By: Gregory Bond (gnbond) Date: 2005-09-28 06:05 Message: Logged In: YES user_id=293157 Fix the summary! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1306449&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com