- 03 Oct, 2011 29 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
Ensure these states with assertions in _PyUnicode_CheckConsistency().
-
Victor Stinner authored
Cleanup also the code.
-
Victor Stinner authored
-
Victor Stinner authored
state
-
Victor Stinner authored
Add also related assertions to _PyUnicode_CheckConsistency().
-
Victor Stinner authored
-
Victor Stinner authored
PyUnicode_CopyCharacters() may copies less character than requested size, if the input string is smaller than the argument. (This is very unlikely, but who knows!?) Avoid also calling PyUnicode_CopyCharacters() if the string is empty.
-
Victor Stinner authored
Don't check PyUnicode_CopyCharacters() in release mode. Rename also some variables.
-
Victor Stinner authored
Remove also the FIXME for resize_copy(): as discussed with Martin, copy the string on resize if the string is not resizable is just fine.
-
Victor Stinner authored
-
Charles-François Natali authored
doesn't always set the MSG_TRUNC flag when a truncated datagram is received.
-
Charles-François Natali authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
It is is called from _PyUnicode_Dump() and so must not fail.
-
Victor Stinner authored
ascii=1 is no more reserved to PyASCIIObject. Use PyUnicode_IS_COMPACT_ASCII(obj) to check if obj is a PyASCIIObject (as before).
-
Victor Stinner authored
Only use _PyUnicode_READY_REPLACE() on just created strings.
-
Victor Stinner authored
* resize_compact() updates also wstr_len for non-ascii strings sharing wstr * resize_inplace() updates also utf8_len/wstr_len for strings sharing utf8/wstr
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
Fix also a compiler warning.
-
- 02 Oct, 2011 1 commit
-
-
Victor Stinner authored
-
- 03 Oct, 2011 5 commits
-
-
Victor Stinner authored
Simplify the test in wstr pointer in unicode_sizeof().
-
Victor Stinner authored
* Document Unicode string states * Use _PyUnicode_CheckConsistency() to ensure that objects are always consistent.
-
Victor Stinner authored
not a unicode, instead of failing with a fatal error. Use assertions in debug mode (provide better error messages).
-
Victor Stinner authored
-
Victor Stinner authored
* Rename _PyUnicode_Resize() to unicode_resize() * unicode_resize() creates a copy if the string cannot be resized instead of failing * Optimize resize_copy() for wstr strings * Disable temporary resize_inplace()
-
- 02 Oct, 2011 2 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
-
- 03 Oct, 2011 1 commit
-
-
Victor Stinner authored
-
- 02 Oct, 2011 2 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
-