Antoine Pitrou added the comment: Well, if a proper type check is made later, then the assert can go. Also, the PyBytes_Size() result should be checked for error, which incidentally ensures the argument is a bytes object.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17106> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com