summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Document utf8_length and wstr_length statesVictor Stinner2011-10-042-47/+56
| | | | Ensure these states with assertions in _PyUnicode_CheckConsistency().
* resize_inplace() sets utf8_length to zero if the utf8 is not shared8Victor Stinner2011-10-041-23/+28
| | | | Cleanup also the code.
* PyUnicode_New() sets utf8_length to zero for latin1Victor Stinner2011-10-041-2/+5
|
* Unicode: raise SystemError instead of ValueError or RuntimeError on invalidVictor Stinner2011-10-041-6/+6
| | | | state
* Unicode: document when the wstr pointer is shared with dataVictor Stinner2011-10-042-2/+30
| | | | Add also related assertions to _PyUnicode_CheckConsistency().
* Add _PyUnicode_HAS_WSTR_MEMORY() macroVictor Stinner2011-10-031-5/+10
|
* PyUnicode_Join() checks output length in debug modeVictor Stinner2011-10-031-9/+21
| | | | | | | | 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.
* Fix a compiler warning in PyUnicode_Append()Victor Stinner2011-10-031-8/+14
| | | | | Don't check PyUnicode_CopyCharacters() in release mode. Rename also some variables.
* Improve string forms and PyUnicode_Resize() documentationVictor Stinner2011-10-032-15/+24
| | | | | 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.
* Simplify unicode_resizable(): singletons reference count is at least 2Victor Stinner2011-10-031-13/+7
|
* Issue #13001: Fix test_socket.testRecvmsgTrunc failure on FreeBSD < 8, whichCharles-François Natali2011-10-031-0/+4
| | | | doesn't always set the MSG_TRUNC flag when a truncated datagram is received.
* Introduce support.requires_freebsd_version decorator.Charles-François Natali2011-10-031-12/+28
|
* _PyUnicode_CheckConsistency() checks utf8 field consistencyVictor Stinner2011-10-032-0/+8
|
* unicode_subtype_new() copies also the ascii flagVictor Stinner2011-10-031-1/+1
|
* unicode_kind_name() doesn't check consistency anymoreVictor Stinner2011-10-031-1/+2
| | | | It is is called from _PyUnicode_Dump() and so must not fail.
* PyUnicode_Ready() now sets ascii=1 if maxchar < 128Victor Stinner2011-10-033-33/+42
| | | | | ascii=1 is no more reserved to PyASCIIObject. Use PyUnicode_IS_COMPACT_ASCII(obj) to check if obj is a PyASCIIObject (as before).
* Create _PyUnicode_READY_REPLACE() to reuse singletonVictor Stinner2011-10-031-22/+72
| | | | Only use _PyUnicode_READY_REPLACE() on just created strings.
* Fix resize_compact() and resize_inplace(); reenable full resize optimizationsVictor Stinner2011-10-031-10/+21
| | | | | | * 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
* resize_inplace() has been fixed: reenable this optimizationVictor Stinner2011-10-031-3/+0
|
* _PyUnicode_Dump() indicates if wstr and/or utf8 are sharedVictor Stinner2011-10-031-15/+16
|
* Fix resize_inplace(): update shared utf8 pointerVictor Stinner2011-10-031-1/+4
|
* Disable unicode_resize() optimization on Windows (16-bit wchar_t)Victor Stinner2011-10-031-0/+4
|
* _PyUnicode_Ready() for 16-bit wchar_tVictor Stinner2011-10-031-0/+2
|
* Fix compilation error on WindowsVictor Stinner2011-10-031-2/+3
| | | | Fix also a compiler warning.
* ceval.c: restore str+=str optimizationVictor Stinner2011-10-021-3/+73
|
* Use PyUnicode_WCHAR_KIND to check if a string is a wstr stringVictor Stinner2011-10-031-9/+11
| | | | Simplify the test in wstr pointer in unicode_sizeof().
* Add _PyUnicode_CheckConsistency() macro to help debuggingVictor Stinner2011-10-032-37/+144
| | | | | | * Document Unicode string states * Use _PyUnicode_CheckConsistency() to ensure that objects are always consistent.
* In release mode, PyUnicode_InternInPlace() does nothing if the input is NULL orVictor Stinner2011-10-031-3/+7
| | | | | | not a unicode, instead of failing with a fatal error. Use assertions in debug mode (provide better error messages).
* PyUnicode_Append() now works in-place when it's possibleVictor Stinner2011-10-031-10/+71
|
* Rewrite PyUnicode_Resize()Victor Stinner2011-10-031-95/+207
| | | | | | | | * 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()
* Add _PyUnicode_HAS_UTF8_MEMORY() macroVictor Stinner2011-10-031-6/+11
|
* PyUnicode_READ_CHAR() ensures that the string is readyVictor Stinner2011-10-021-8/+10
|
* Write _PyUnicode_Dump() to help debuggingVictor Stinner2011-10-031-0/+23
|
* PyUnicode_CopyCharacters() fails when copying latin1 into asciiVictor Stinner2011-10-021-7/+56
|
* unicode_convert_wchar_to_ucs4() cannot failVictor Stinner2011-10-021-10/+4
|
* Add _PyUnicode_DATA_ANY(op) private macroVictor Stinner2011-10-021-17/+17
|
* unicode_empty and unicode_latin1 are PyObject* objects, not PyUnicodeObject*Victor Stinner2011-10-021-15/+15
|
* Check error when calling PyUnicode_AppendAndDel()Victor Stinner2011-10-022-5/+7
|
* PyCodec_ReplaceErrors() uses "C" format instead of "u#" to build resultVictor Stinner2011-10-021-2/+3
|
* merge from 3.2 - Document message_body arg in HTTPConnection.endheadersSenthil Kumaran2011-10-031-2/+6
|\
| * Document message_body arg in HTTPConnection.endheadersSenthil Kumaran2011-10-031-2/+6
| |
* | Fix ResourceWarnings in the TIPC socket tests.Antoine Pitrou2011-10-021-2/+7
|\ \ | |/
| * Fix ResourceWarnings in the TIPC socket tests.Antoine Pitrou2011-10-021-2/+7
| |
* | merge headsBenjamin Peterson2011-10-021-8/+6
|\ \
| * | Issue #13084: Fix a test_signal failure: the delivery order is only defined forCharles-François Natali2011-10-021-8/+6
| | | | | | | | | | | | real-time signals.
* | | remove unused labelBenjamin Peterson2011-10-021-1/+0
|/ /
* | #13076: merge with 3.2.Ezio Melotti2011-10-021-76/+76
|\ \ | |/
| * #13076: fix links to datetime.time and datetime.datetime.Ezio Melotti2011-10-021-76/+76
| |
* | PyUnicode_FindChar() raises a IndexError on invalid indexVictor Stinner2011-10-021-0/+4
| |
* | Optimize _PyUnicode_AsKind() for UCS1->UCS4 and UCS2->UCS4Victor Stinner2011-10-021-25/+43
| | | | | | | | | | * Ensure that the input string is ready * Raise a ValueError instead of of a fatal error