commit | 7d1df6c9b1a7e075c03c4790f47bc83e0104579f | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Aug 29 13:53:23 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Aug 29 13:53:23 2007 +0000 |
tree | 6dceba59593ca682c88dd1a699fec2fc51f78129 | |
parent | 9befa93b04ee0c485615d87e4b34dcfe5e811194 [diff] |
Add PyUnicode_AsStringAndSize(), which is like PyUnicode_AsString() but has an extra (optional) output parameter through which it returns the size. Use this in a few places where I used PyUnicode_AsString() + strlen(), and in one new place (which fixes test_pep263).