Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment: > Modifying convert_to_unicode is incorrect; this function is not an O& > converter. Instead, PyUnicode_FSConverter needs to change.
Well, convert_to_unicode used to use O& before, and I fixed memory leak with O formatter in current way. I used this function because I know about it more than PyUnicode_FSConverter. Sorry for confusion. ;-) > Attached is a patch that does that, and also uses the O& approach. It > also adjusts the patch to use capsules. Oh, this is how to use new capsule functions.... I noticed capsule.c was added, but I didn't know how to use it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6012> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com