Hrvoje Nikšić added the comment: Barun, Serhiy, thanks for picking this up so quickly.
I would further suggest to avoid using a fixed buffer in abspath (_getfullpathname, but only abspath seems to call it). Other filesystem calls are using the interface where PyArg_ParseTuple allocates the buffer. This makes it easier to handling errors from the native layer by catching OSError or similar, instead of the very generic TypeError (or ValueError). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26198> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com