New submission from STINNER Victor: Currently, functions of the faulthandler module require a file-like object (with a fileno() method). It would be nice to accept also file descriptors (int).
Example of code using faulthandler which creates an useless file object just to pass a file descriptor: https://github.com/nicoddemus/pytest-faulthandler/blob/master/pytest_faulthandler.py#L13 ---------- keywords: easy messages: 237091 nosy: haypo priority: normal severity: normal status: open title: RFE: faulthandler.register() should support file descriptors versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23566> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com