Martin v. Löwis <[EMAIL PROTECTED]> added the comment: IIUC, another error return value (besides -1) is PATH_MAX, meaning that the buffer would overrun; correct me if I'm wrong. If I'm not, I propose that they get handles similarly.
In addition, it might be safer to compare to (size_t)-1 (I keep forgetting whether this is the default when comparing signed and unsigned - some compilers warn about comparisong with mixed signs). _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3626> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com