Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding() | Antoine Pitrou | 2010-09-01 | 1 | -11/+0 |
| | | | | | are now removed, since their effect was inexistent in 3.x (the default encoding is hardcoded to utf-8 and cannot be changed). | ||||
* | Issue #7415: PyUnicode_FromEncodedObject() now uses the new buffer API | Antoine Pitrou | 2010-09-01 | 1 | -27/+26 |
| | | | | properly. Patch by Stefan Behnel. | ||||
* | Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() become | Antoine Pitrou | 2010-09-01 | 2 | -14/+11 |
| | | | | _Py_add_one_to_C() and _Py_add_one_to_F(), respectively. | ||||
* | Issue #1868: Eliminate subtle timing issues in thread-local objects by | Antoine Pitrou | 2010-08-28 | 1 | -48/+65 |
| | | | | getting rid of the cached copy of thread-local attribute dictionary. | ||||
* | basicsize and itemsize are Py_ssize_t #9688 | Benjamin Peterson | 2010-08-25 | 1 | -2/+2 |
| | |||||
* | Issue 8781: On systems a signed 4-byte wchar_t and a 4-byte Py_UNICODE, use ↵ | Daniel Stutzbach | 2010-08-24 | 1 | -2/+2 |
| | | | | memcpy to convert between the two (as already done when wchar_t is unsigned) | ||||
* | reorder and save a comparison | Benjamin Peterson | 2010-08-23 | 1 | -5/+5 |
| | |||||
* | Fix PyUnicode_EncodeFSDefault() indentation | Victor Stinner | 2010-08-18 | 1 | -2/+2 |
| | |||||
* | #5127: Even on narrow unicode builds, the C functions that access the Unicode | Amaury Forgeot d'Arc | 2010-08-18 | 2 | -137/+27 |
| | | | | | | | | | | Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept and return characters from the full Unicode range (Py_UCS4). The differences from Python code are few: - unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit() now return the correct value for large code points - repr() may consider more characters as printable. | ||||
* | Issue #9425: Create PyModule_GetFilenameObject() function | Victor Stinner | 2010-08-17 | 1 | -7/+13 |
| | | | | | | ... to get the filename as a unicode object, instead of a byte string. Function needed to support unencodable filenames. Deprecate PyModule_GetFilename() in favor on the new function. | ||||
* | Issue #9612: The set object is now 64-bit clean under Windows. | Antoine Pitrou | 2010-08-17 | 1 | -10/+10 |
| | |||||
* | Issue #9425: Create Py_UNICODE_strncmp() function | Victor Stinner | 2010-08-16 | 1 | -0/+17 |
| | | | | | The code is based on strncmp() of the libiberty library, function in the public domain. | ||||
* | Issue #8983: Corrected docstrings. | Alexander Belopolsky | 2010-08-16 | 1 | -2/+2 |
| | |||||
* | Fix (harmless) warning with MSVC. | Antoine Pitrou | 2010-08-15 | 1 | -1/+1 |
| | |||||
* | Fix indentation and remove dead code. | Antoine Pitrou | 2010-08-15 | 1 | -132/+98 |
| | |||||
* | Fix some compilation warnings under 64-bit Windows (issue #9566). | Antoine Pitrou | 2010-08-15 | 2 | -8/+8 |
| | | | | | Some of these are genuine bugs with objects bigger than 2GB, but my system doesn't allow me to write tests for it. | ||||
* | Issue #9542: Create PyUnicode_FSDecoder() function | Victor Stinner | 2010-08-13 | 1 | -3/+41 |
| | | | | | | | | | | | | It's a ParseTuple converter: decode bytes objects to unicode using PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is. * Don't specify surrogateescape error handler in the comments nor the documentation, but PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_EncodeFSDefault() because these functions use strict error handler for the mbcs encoding (on Windows). * Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid inconsistency with unicodeobject.h. | ||||
* | Issue #9425: Create PyErr_WarnFormat() function | Victor Stinner | 2010-08-13 | 3 | -24/+19 |
| | | | | | | | Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning message. Strip also some trailing spaces. | ||||
* | Issue #9425: PyFile_FromFd() ignores the name argument | Victor Stinner | 2010-08-13 | 1 | -11/+3 |
| | | | | | This function is only by imp.find_module() which does return the filename in a separated variable. | ||||
* | Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99 | Alexander Belopolsky | 2010-08-11 | 7 | -64/+40 |
| | | | | | va_copy, but available on all python platforms. Untabified a few unrelated files. | ||||
* | Issue #9530: Fix undefined-behaviour-inducing overflow checks in bytes and ↵ | Mark Dickinson | 2010-08-10 | 2 | -66/+45 |
| | | | | bytearray implementations. | ||||
* | Issue #9425: create Py_UNICODE_strrchr() function | Victor Stinner | 2010-08-10 | 1 | -0/+13 |
| | |||||
* | spelling mistake. | Senthil Kumaran | 2010-08-09 | 1 | -1/+1 |
| | |||||
* | Fix Issue5416 - explain negative value for count in bytes object replace. | Senthil Kumaran | 2010-08-09 | 1 | -1/+2 |
| | |||||
* | Fix #8530: Prevent stringlib fastsearch from reading beyond the front of an ↵ | Florent Xicluna | 2010-08-08 | 1 | -2/+2 |
| | | | | array. | ||||
* | Fix nit (sentinel on lhs of comparison). | Raymond Hettinger | 2010-08-07 | 1 | -3/+1 |
| | |||||
* | Issue #9530: Fix a couple of places where undefined behaviour can | Mark Dickinson | 2010-08-06 | 1 | -2/+8 |
| | | | | occur, as a result of signed integer overflow. | ||||
* | In PySlice_IndicesEx, clip the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] ↵ | Mark Dickinson | 2010-08-06 | 1 | -1/+9 |
| | | | | rather than [PY_SSIZE_T_MIN, PY_SSIZE_T_MAX]. | ||||
* | Issue8757: Implicit set-to-frozenset conversion not thread-safe. | Raymond Hettinger | 2010-08-06 | 1 | -9/+3 |
| | |||||
* | Issue #9337: Make float.__str__ identical to float.__repr__. | Mark Dickinson | 2010-08-04 | 3 | -30/+17 |
| | | | | (And similarly for complex numbers.) | ||||
* | Revert r83395, it introduces test failures and is not necessary anyway since ↵ | Georg Brandl | 2010-08-01 | 1 | -2/+2 |
| | | | | we now have to nul-terminate the string anyway. | ||||
* | Issue #9416: Fix some issues with complex formatting where the | Mark Dickinson | 2010-08-01 | 1 | -4/+8 |
| | | | | | | | output with no type specifier failed to match the str output: - format(complex(-0.0, 2.0), '-') omitted the real part from the output, - format(complex(0.0, 2.0), '-') included a sign and parentheses. | ||||
* | #8821: do not rely on Unicode strings being terminated with a \u0000, rather ↵ | Georg Brandl | 2010-08-01 | 1 | -2/+2 |
| | | | | explicitly check range before looking for a second surrogate character. | ||||
* | Use Py_CLEAR(). | Georg Brandl | 2010-07-29 | 1 | -4/+2 |
| | |||||
* | Issue #9294: remove dead code in Objects/object.c. Patch by Grant Limberg. | Antoine Pitrou | 2010-07-27 | 1 | -13/+2 |
| | |||||
* | revert unintended changes | Benjamin Peterson | 2010-07-20 | 1 | -1/+0 |
| | |||||
* | move test_trace.py so as not to conflict with future tests for the trace module | Benjamin Peterson | 2010-07-20 | 1 | -0/+1 |
| | |||||
* | Sub-issue of #9036: Fix incorrect use of Py_CHARMASK. | Stefan Krah | 2010-07-19 | 1 | -1/+1 |
| | |||||
* | Issue #7616: Fix copying of overlapping memoryview slices with the Intel | Antoine Pitrou | 2010-07-11 | 1 | -11/+3 |
| | | | | compiler. | ||||
* | remove unneeded error check | Benjamin Peterson | 2010-07-11 | 1 | -8/+0 |
| | |||||
* | Silence gcc warning. (In function 'bytearray_init': warning: 'value' may be ↵ | Mark Dickinson | 2010-07-09 | 1 | -0/+2 |
| | | | | used uninitialized in this function). | ||||
* | fix repr of complicated structseqs #9206 | Benjamin Peterson | 2010-07-08 | 1 | -2/+20 |
| | |||||
* | make struct sequences subclass tuple; kill lots of code | Benjamin Peterson | 2010-07-07 | 1 | -207/+18 |
| | | | | This fixes #8413. | ||||
* | Style nit. | Mark Dickinson | 2010-07-06 | 1 | -1/+1 |
| | |||||
* | cleanup basicsize logic #3268 | Benjamin Peterson | 2010-07-05 | 1 | -4/+2 |
| | |||||
* | Fix the docstrings of the capitalize method. | Senthil Kumaran | 2010-07-05 | 2 | -2/+3 |
| | |||||
* | Update comment about surrogates. | Ezio Melotti | 2010-07-03 | 1 | -5/+5 |
| | |||||
* | Merged revisions 82447 via svnmerge from | Benjamin Peterson | 2010-07-02 | 1 | -1/+1 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82447 | benjamin.peterson | 2010-07-02 14:41:39 -0500 (Fri, 02 Jul 2010) | 1 line add space ........ | ||||
* | Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629. | Ezio Melotti | 2010-07-01 | 1 | -56/+56 |
| | | | | | | | | | | | | | 1) #8271: when a byte sequence is invalid, only the start byte and all the valid continuation bytes are now replaced by U+FFFD, instead of replacing the number of bytes specified by the start byte. See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (pages 94-95); 2) 5- and 6-bytes-long UTF-8 sequences are now considered invalid (no changes in behavior); 3) Change the error messages "unexpected code byte" to "invalid start byte" and "invalid data" to "invalid continuation byte"; 4) Add an extensive set of tests in test_unicode; 5) Fix test_codeccallbacks because it was failing after this change. | ||||
* | update error message | Benjamin Peterson | 2010-06-28 | 1 | -2/+1 |
| |