Jelle Zijlstra added the comment: This patch adds the C implementation (copied from the PEP).
Some notes: - I added a new .h file in Include/ because there didn't seem to be an obvious existing place to put it. - There was some uncertainty about whether we should Py_INCREF the string or bytes returned when a string/bytes is passed in. Running test -l and -L works with the Py_INCREF in and we're adding a new reference to the module, so I think this is correct. ---------- nosy: +Jelle Zijlstra Added file: http://bugs.python.org/file43125/issue27186.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27186> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com