ca56dd4767617a2f5e946130de4beb06442a5cd5 |
|
17-Sep-2016 |
Martin Panter <vadmium+py@gmail.com> |
Issue #28139: Fix messed up indentation Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
/external/python/cpython2/Include/unicodeobject.h
|
3d36f0f712e8a720e66808e2b634aace11c6bb88 |
|
28-Jul-2016 |
Martin Panter <vadmium+py@gmail.com> |
Spelling and grammar fixes in code comments and documentation
/external/python/cpython2/Include/unicodeobject.h
|
6a8163a928f9ff04242580c09216431ddd39cdbc |
|
15-Apr-2016 |
Martin Panter <vadmium+py@gmail.com> |
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc This affects documentation and code comments.
/external/python/cpython2/Include/unicodeobject.h
|
3c38dccf221d1bebb5711470a4641afa20a97294 |
|
05-Apr-2016 |
Martin Panter <vadmium+py@gmail.com> |
Fix typos in documentation and comments
/external/python/cpython2/Include/unicodeobject.h
|
c72e66a0489ee53aaf89c677c5b709d30b359532 |
|
02-Nov-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #25523: Backported a-to-an corrections.
/external/python/cpython2/Include/unicodeobject.h
|
c83ea137d7e717f764e2f31fc2544f522de7d857 |
|
09-May-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Untabify C files. Will watch buildbots.
/external/python/cpython2/Include/unicodeobject.h
|
653dece278ca0e836651de290aaf22335dd476b0 |
|
04-May-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal sequences. Patch by Nick Barnes and Victor Stinner.
/external/python/cpython2/Include/unicodeobject.h
|
3741bfdd3c789704f95b7969afa52f1053660e90 |
|
05-Jan-2009 |
Marc-André Lemburg <mal@egenix.com> |
Fix #4846 (Py_UNICODE_ISSPACE causes linker error) by moving the declaration into the extern "C" section. Add a few more comments and apply some minor edits to make the file contents fit the original structure again.
/external/python/cpython2/Include/unicodeobject.h
|
a925bed208a2f8179e72cd40163798cf8f90494f |
|
28-Dec-2008 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Sort UCS-2/UCS-4 name mangling list.
/external/python/cpython2/Include/unicodeobject.h
|
d8f8ee4af82f6d0b83c2706e92307ee358ba7173 |
|
28-Dec-2008 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Fix name mangling of PyUnicode_ClearFreeList.
/external/python/cpython2/Include/unicodeobject.h
|
07d539d08bb54628d20978e97eb6e0ba263ac581 |
|
14-Oct-2008 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
#4122: On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module: compilation fails with "undefined reference to _Py_ascii_whitespace" Will backport to 2.6.
/external/python/cpython2/Include/unicodeobject.h
|
dc13b79a384691ed966f760a58d73a1b835e7d6b |
|
30-May-2008 |
Eric Smith <eric@trueblade.com> |
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
/external/python/cpython2/Include/unicodeobject.h
|
3b718a79af900fdacaf0b825137f69eadc753765 |
|
14-Feb-2008 |
Christian Heimes <christian@cheimes.de> |
Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation.
/external/python/cpython2/Include/unicodeobject.h
|
4d4f27094162642bac7e953260ad5b366849bec1 |
|
30-Jan-2008 |
Christian Heimes <christian@cheimes.de> |
Patch #1970 by Antoine Pitrou: Speedup unicode whitespace and linebreak detection. The speedup is about 25% for split() (571 / 457 usec) and 35% (175 / 127 usec )for splitlines()
/external/python/cpython2/Include/unicodeobject.h
|
cfb41c4985e8fe5f2044c703160e5195044235df |
|
27-Jan-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Add stdarg include for va_list to get this to compile on cygwin
/external/python/cpython2/Include/unicodeobject.h
|
7f39c9fcbba0cc59293d80a7bbcbb8bca62790ee |
|
25-Jan-2008 |
Christian Heimes <christian@cheimes.de> |
Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0. First chapter of the Python 3.0 io framework back port: _fileio The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
/external/python/cpython2/Include/unicodeobject.h
|
e93237dfcc4ee4feee62adafb4e7899487ca864b |
|
19-Dec-2007 |
Christian Heimes <christian@cheimes.de> |
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
/external/python/cpython2/Include/unicodeobject.h
|
5087980c1e7e6733983245cd0f209d8770f9686e |
|
21-Nov-2007 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
The incremental decoder for utf-7 must preserve its state between calls. Solves issue1460. Might not be a backport candidate: a new API function was added, and some code may rely on details in utf-7.py.
/external/python/cpython2/Include/unicodeobject.h
|
6e390806495cf30c836615996b94e5ffa258cbef |
|
17-Aug-2007 |
Walter Dörwald <walter@livinglogic.de> |
Backport r57105 and r57145 from the py3k branch: UTF-32 codecs.
/external/python/cpython2/Include/unicodeobject.h
|
6819210b9e4e5719a6f7f9c1725f8fa70a8936f6 |
|
21-Jul-2007 |
Martin v. Löwis <martin@v.loewis.de> |
PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
/external/python/cpython2/Include/unicodeobject.h
|
ee3a1b5244e60566c5d5c8f6a1ea4b381de99f1c |
|
25-Feb-2007 |
Neal Norwitz <nnorwitz@gmail.com> |
Variation of patch # 1624059 to speed up checking if an object is a subclass of some of the common builtin types. Use a bit in tp_flags for each common builtin type. Check the bit to determine if any instance is a subclass of these common types. The check avoids a function call and O(n) search of the base classes. The check is done in the various Py*_Check macros rather than calling PyType_IsSubtype(). All the bits are set in tp_flags when the type is declared in the Objects/*object.c files because PyType_Ready() is not called for all the types. Should PyType_Ready() be called for all types? If so and the change is made, the changes to the Objects/*object.c files can be reverted (remove setting the tp_flags). Objects/typeobject.c would also have to be modified to add conditions for Py*_CheckExact() in addition to each the PyType_IsSubtype check.
/external/python/cpython2/Include/unicodeobject.h
|
040f76b79c0ce86dc33b9c525fbcd84b2254e559 |
|
14-Aug-2006 |
Marc-André Lemburg <mal@egenix.com> |
Slightly revised version of patch #1538956: Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched.
/external/python/cpython2/Include/unicodeobject.h
|
d825143be1118ba7e320661b3a71d8822ae5d600 |
|
14-Jun-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #1455898: Incremental mode for "mbcs" codec.
/external/python/cpython2/Include/unicodeobject.h
|
3f767795f6784ca6bf797b055be67fce5bf2fa06 |
|
04-Jun-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #1359618: Speed-up charmap encoder.
/external/python/cpython2/Include/unicodeobject.h
|
80f8e80c15a784a84f77f4895318d13b831b017e |
|
28-May-2006 |
Fredrik Lundh <fredrik@pythonware.com> |
needforspeed: added Py_MEMCPY macro (currently tuned for Visual C only), and use it for string copy operations. this gives a 20% speedup on some string benchmarks.
/external/python/cpython2/Include/unicodeobject.h
|
b3167cbcd76652f9f5f64196ce371562bcd8d42c |
|
26-May-2006 |
Fredrik Lundh <fredrik@pythonware.com> |
needforspeed: added rpartition implementation
/external/python/cpython2/Include/unicodeobject.h
|
06a69dd8ffcbac16e7f5c81b457c40ca4ce94c00 |
|
26-May-2006 |
Fredrik Lundh <fredrik@pythonware.com> |
needforspeed: partition implementation, part two. feel free to improve the documentation and the docstrings.
/external/python/cpython2/Include/unicodeobject.h
|
3d885e0195531cd6ea0d8cd22897b4ea978f98a2 |
|
23-May-2006 |
Fredrik Lundh <fredrik@pythonware.com> |
needforspeed: check first *and* last character before doing a full memcmp
/external/python/cpython2/Include/unicodeobject.h
|
8a8e05a2b9c629827827295a7bd76494aed41b72 |
|
22-May-2006 |
Fredrik Lundh <fredrik@pythonware.com> |
needforspeed: use memcpy for "long" strings; use a better algorithm for long repeats.
/external/python/cpython2/Include/unicodeobject.h
|
f1d60a53845d2efeccdb61bebf6ee8df94df16d4 |
|
22-May-2006 |
Fredrik Lundh <fredrik@pythonware.com> |
needforspeed: speed up unicode repeat, unicode string copy
/external/python/cpython2/Include/unicodeobject.h
|
18e165558b24d29e7e0ca501842b9236589b012a |
|
15-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Merge ssize_t branch.
/external/python/cpython2/Include/unicodeobject.h
|
2576c97f529009514501e53eae9351487dd7c149 |
|
29-Oct-2005 |
Tim Peters <tim.peters@gmail.com> |
_PyUnicode_IsWhitespace(), _PyUnicode_IsLinebreak(): Changed the declarations to match the definitions. Don't know why they differed; MSVC warned about it; don't know why only these two functions use "const". Someone who does may want to do something saner ;-).
/external/python/cpython2/Include/unicodeobject.h
|
a47d1c08d0911f2f49d92b8c6035593a672af436 |
|
30-Aug-2005 |
Walter Dörwald <walter@livinglogic.de> |
SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain about illegal code points. The codec now supports PEP 293 style error handlers. (This is a variant of the Nik Haldimann's patch that detects truncated data)
/external/python/cpython2/Include/unicodeobject.h
|
a9cadcd41b27fd045626c4e3b98315aaa257ca75 |
|
22-Nov-2004 |
Marc-André Lemburg <mal@egenix.com> |
Correct the handling of 0-termination of PyUnicode_AsWideChar() and its usage in PyLocale_strcoll(). Clarify the documentation on this. Thanks to Andreas Degert for pointing this out.
/external/python/cpython2/Include/unicodeobject.h
|
57341c37c910ea0fc31f0576be74e9ad4c49a4cf |
|
31-Oct-2004 |
Raymond Hettinger <python@rcn.com> |
SF patch #1056231: typo in comment (unicodeobject.h)
/external/python/cpython2/Include/unicodeobject.h
|
69652035bc2cf22b0326bb00824f4b7e2674cc8b |
|
07-Sep-2004 |
Walter Dörwald <walter@livinglogic.de> |
SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support decoding incomplete input (when the input stream is temporarily exhausted). codecs.StreamReader now implements buffering, which enables proper readline support for the UTF-16 decoders. codecs.StreamReader.read() has a new argument chars which specifies the number of characters to return. codecs.StreamReader.readline() and codecs.StreamReader.readlines() have a new argument keepends. Trailing "\n"s will be stripped from the lines if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and PyUnicode_DecodeUTF16Stateful.
/external/python/cpython2/Include/unicodeobject.h
|
e9ddfbb41207328d5c89061067f3431e00711fda |
|
04-Aug-2004 |
Hye-Shik Chang <hyeshik@gmail.com> |
SF #989185: Drop unicode.iswide() and unicode.width() and add unicodedata.east_asian_width(). You can still implement your own simple width() function using it like this: def width(u): w = 0 for c in unicodedata.normalize('NFC', u): cwidth = unicodedata.east_asian_width(c) if cwidth in ('W', 'F'): w += 2 else: w += 1 return w
/external/python/cpython2/Include/unicodeobject.h
|
d2d4598ec2e33e73efcbf295e630296b24a1b70b |
|
08-Jul-2004 |
Marc-André Lemburg <mal@egenix.com> |
Allow string and unicode return types from .encode()/.decode() methods on string and unicode objects. Added unicode.decode() which was missing for no apparent reason.
/external/python/cpython2/Include/unicodeobject.h
|
974ed7cfa50b666c9ab91f7a3f8f26049d387107 |
|
02-Jun-2004 |
Hye-Shik Chang <hyeshik@gmail.com> |
- SF #962502: Add two more methods for unicode type; width() and iswide() for east asian width manipulation. (Inspired by David Goodger, Reviewed by Martin v. Loewis) - Move _PyUnicode_TypeRecord.flags to the end of the struct so that no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)
/external/python/cpython2/Include/unicodeobject.h
|
3ae811b57d227a220f207869487fd9251e278608 |
|
15-Dec-2003 |
Hye-Shik Chang <hyeshik@gmail.com> |
Add rsplit method for str and unicode builtin types. SF feature request #801847. Original patch is written by Sean Reifschneider.
/external/python/cpython2/Include/unicodeobject.h
|
9c329de47e552bb0be7880350233448123eebb1f |
|
12-Aug-2002 |
Marc-André Lemburg <mal@egenix.com> |
Add name mangling for new PyUnicode_FromOrdinal() and fix declaration to use new extern macro.
/external/python/cpython2/Include/unicodeobject.h
|
91a681debf9ffec155d0aff8a0bb5f965f592e16 |
|
12-Aug-2002 |
Mark Hammond <mhammond@skippinet.com.au> |
Excise DL_EXPORT from Include. Thanks to Skip Montanaro and Kalle Svensson for the patches.
/external/python/cpython2/Include/unicodeobject.h
|
cc8764ca9dc3fceb9dc283163a89c9bb649b5392 |
|
11-Aug-2002 |
Marc-André Lemburg <mal@egenix.com> |
Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level. u'%c' will now raise a ValueError in case the argument is an integer outside the valid range of Unicode code point ordinals. Closes SF bug #593581.
/external/python/cpython2/Include/unicodeobject.h
|
4da6fd63bc431468e9622341ac410c55a54c7b9b |
|
29-May-2002 |
Marc-André Lemburg <mal@egenix.com> |
Fix for bug [ 561796 ] string.find causes lazy error
/external/python/cpython2/Include/unicodeobject.h
|
de02bcb2659af6acb1d44ba61c0bcf7b2d53a6ed |
|
22-Apr-2002 |
Walter Dörwald <walter@livinglogic.de> |
Apply patch diff.txt from SF feature request http://www.python.org/sf/444708 This adds the optional argument for str.strip to unicode.strip too and makes it possible to call str.strip with a unicode argument and unicode.strip with a str argument.
/external/python/cpython2/Include/unicodeobject.h
|
b8c65bc27ffc61c659180c351d3cc283abd1be45 |
|
19-Oct-2001 |
Guido van Rossum <guido@python.org> |
SF patch #470578: Fixes to synchronize unicode() and str() This patch implements what we have discussed on python-dev late in September: str(obj) and unicode(obj) should behave similar, while the old behaviour is retained for unicode(obj, encoding, errors). The patch also adds a new feature with which objects can provide unicode(obj) with input data: the __unicode__ method. Currently no new tp_unicode slot is implemented; this is left as option for the future. Note that PyUnicode_FromEncodedObject() no longer accepts Unicode objects as input. The API name already suggests that Unicode objects do not belong in the list of acceptable objects and the functionality was only needed because PyUnicode_FromEncodedObject() was being used directly by unicode(). The latter was changed in the discussed way: * unicode(obj) calls PyObject_Unicode() * unicode(obj, encoding, errors) calls PyUnicode_FromEncodedObject() One thing left open to discussion is whether to leave the PyUnicode_FromObject() API as a thin API extension on top of PyUnicode_FromEncodedObject() or to turn it into a (macro) alias for PyObject_Unicode() and deprecate it. Doing so would have some surprising consequences though, e.g. u"abc" + 123 would turn out as u"abc123"... [Marc-Andre didn't have time to check this in before the deadline. I hope this is OK, Marc-Andre! You can still make changes and commit them on the trunk after the branch has been made, but then please mail Barry a context diff if you want the change to be merged into the 2.2b1 release branch. GvR]
/external/python/cpython2/Include/unicodeobject.h
|
c60e6f777114f43c64f1b83f9ad2b6e4efd220e7 |
|
20-Sep-2001 |
Marc-André Lemburg <mal@egenix.com> |
Patch #435971: UTF-7 codec by Brian Quinlan.
/external/python/cpython2/Include/unicodeobject.h
|
5e6007c5dbb14a6c64d4b7ee95793465f544bca6 |
|
19-Sep-2001 |
Marc-André Lemburg <mal@egenix.com> |
Fix for bug #462737.
/external/python/cpython2/Include/unicodeobject.h
|
78e0fc74bce026ddf67d029030a90c9b8faffcb5 |
|
11-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
Possibly the end of SF [#460020] bug or feature: unicode() and subclasses. Changed unicode(i) to return a true Unicode object when i is an instance of a unicode subclass. Added PyUnicode_CheckExact macro.
/external/python/cpython2/Include/unicodeobject.h
|
5eef77a21be8a7895419cc84e8bf5554ca908b54 |
|
30-Aug-2001 |
Guido van Rossum <guido@python.org> |
Make the Py<type>_Check() macro use PyObject_TypeCheck().
/external/python/cpython2/Include/unicodeobject.h
|
339d0f720e86dc34837547c90d3003a4a68d7d46 |
|
17-Aug-2001 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #445762: Support --disable-unicode - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
/external/python/cpython2/Include/unicodeobject.h
|
772747b3f1f4d6a70c025a7368ed25f039ccff1d |
|
10-Aug-2001 |
Tim Peters <tim.peters@gmail.com> |
SF patch #438013 Remove 2-byte Py_UCS2 assumptions Removed all instances of Py_UCS2 from the codebase, and so also (I hope) the last remaining reliance on the platform having an integral type with exactly 16 bits. PyUnicode_DecodeUTF16() and PyUnicode_EncodeUTF16() now read and write one byte at a time.
/external/python/cpython2/Include/unicodeobject.h
|
b5ac6f62c7a934de582bab0e9c547791e8e80007 |
|
31-Jul-2001 |
Marc-André Lemburg <mal@egenix.com> |
As discussed on python-dev: this patch adds name mangling to assure that extensions and interpreters using the Unicode APIs were compiled using the same Unicode width.
/external/python/cpython2/Include/unicodeobject.h
|
3ce45389bd929296863e26586fa6963ba307e6fb |
|
31-Jul-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add _PyUnicode_AsDefaultEncodedString to unicodeobject.h. And remove all the extern decls in the middle of .c files. Apparently, it was excluded from the header file because it is intended for internal use by the interpreter. It's still intended for internal use and documented as such in the header file.
/external/python/cpython2/Include/unicodeobject.h
|
72b068566ace24bb49c935ba4c539f021212249a |
|
28-Jun-2001 |
Fredrik Lundh <fredrik@pythonware.com> |
removed "register const" from scalar arguments to the unicode predicates
/external/python/cpython2/Include/unicodeobject.h
|
8f4558583f3b7e2d98e13baec06c2f43c9e6a723 |
|
27-Jun-2001 |
Fredrik Lundh <fredrik@pythonware.com> |
use Py_UNICODE_WIDE instead of USE_UCS4_STORAGE and Py_UNICODE_SIZE tests.
/external/python/cpython2/Include/unicodeobject.h
|
ce9b5a55e164f1128756478b6a2bb548abec1980 |
|
27-Jun-2001 |
Martin v. Löwis <martin@v.loewis.de> |
Encode surrogates in UTF-8 even for a wide Py_UNICODE. Implement sys.maxunicode. Explicitly wrap around upper/lower computations for wide Py_UNICODE. When decoding large characters with UTF-8, represent expected test results using the \U notation.
/external/python/cpython2/Include/unicodeobject.h
|
9b14ab367a2e6de589593be6b9bea6f688c17d60 |
|
27-Jun-2001 |
Fredrik Lundh <fredrik@pythonware.com> |
Make Unicode work a bit better on Windows...
/external/python/cpython2/Include/unicodeobject.h
|
0ba70cc3c893f70cc9deb09447277539d7625403 |
|
27-Jun-2001 |
Martin v. Löwis <martin@v.loewis.de> |
Support using UCS-4 as the Py_UNICODE type: Add configure option --enable-unicode. Add config.h macros Py_USING_UNICODE, PY_UNICODE_TYPE, Py_UNICODE_SIZE, SIZEOF_WCHAR_T. Define Py_UCS2. Encode and decode large UTF-8 characters into single Py_UNICODE values for wide Unicode types; likewise for UTF-16. Remove test whether sizeof Py_UNICODE is two.
/external/python/cpython2/Include/unicodeobject.h
|
1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e |
|
26-Jun-2001 |
Fredrik Lundh <fredrik@pythonware.com> |
experimental UCS-4 support: added USE_UCS4_STORAGE define to unicodeobject.h, which forces sizeof(Py_UNICODE) == sizeof(Py_UCS4). (this may be good enough for platforms that doesn't have a 16-bit type. the UTF-16 codecs don't work, though)
/external/python/cpython2/Include/unicodeobject.h
|
489b56e04480b8ca3f2d1676265e67c65bae788d |
|
21-May-2001 |
Marc-André Lemburg <mal@egenix.com> |
This patch changes the behaviour of the UTF-16 codec family. Only the UTF-16 codec will now interpret and remove a *leading* BOM mark. Sub- sequent BOM characters are no longer interpreted and removed. UTF-16-LE and -BE pass through all BOM mark characters. These changes should get the UTF-16 codec more in line with what the Unicode FAQ recommends w/r to BOM marks.
/external/python/cpython2/Include/unicodeobject.h
|
8155e0e54176c6f13067eb0e09ce5eb64c09afba |
|
23-Apr-2001 |
Marc-André Lemburg <mal@egenix.com> |
This patch originated from an idea by Martin v. Loewis who submitted a patch for sharing single character Unicode objects. Martin's patch had to be reworked in a number of ways to take Unicode resizing into consideration as well. Here's what the updated patch implements: * Single character Unicode strings in the Latin-1 range are shared (not only ASCII chars as in Martin's original patch). * The ASCII and Latin-1 codecs make use of this optimization, providing a noticable speedup for single character strings. Most Unicode methods can use the optimization as well (by virtue of using PyUnicode_FromUnicode()). * Some code cleanup was done (replacing memcpy with Py_UNICODE_COPY) * The PyUnicode_Resize() can now also handle the case of resizing unicode_empty which previously resulted in an error. * Modified the internal API _PyUnicode_Resize() and the public PyUnicode_Resize() API to handle references to shared objects correctly. The _PyUnicode_Resize() signature changed due to this. * Callers of PyUnicode_FromUnicode() may now only modify the Unicode object contents of the returned object in case they called the API with NULL as content template. Note that even though this patch passes the regression tests, there may still be subtle bugs in the sharing code.
/external/python/cpython2/Include/unicodeobject.h
|
1a731c60a3e70a2516eebc32b8988eab996bbc88 |
|
11-Aug-2000 |
Marc-André Lemburg <mal@egenix.com> |
Added #fndef's to avoid compiler errors.
/external/python/cpython2/Include/unicodeobject.h
|
bff879cabba567f1c57ae41c3c69bb1ac275860a |
|
03-Aug-2000 |
Marc-André Lemburg <mal@egenix.com> |
This patch finalizes the move from UTF-8 to a default encoding in the Python Unicode implementation. The internal buffer used for implementing the buffer protocol is renamed to defenc to make this change visible. It now holds the default encoded version of the Unicode object and is calculated on demand (NULL otherwise). Since the default encoding defaults to ASCII, this will mean that Unicode objects which hold non-ASCII characters will no longer work on C APIs using the "s" or "t" parser markers. C APIs must now explicitly provide Unicode support via the "u", "U" or "es"/"es#" parser markers in order to work with non-ASCII Unicode strings. (Note: this patch will also have to be applied to the 1.6 branch of the CVS tree.)
/external/python/cpython2/Include/unicodeobject.h
|
16b1ad9c7d431975353c06ad952237281e743b39 |
|
03-Aug-2000 |
Guido van Rossum <guido@python.org> |
Changing the CNRI copyright notice according to CNRI's instructions. This is a notice without a date, which apparently is not a claim to copyright but only advice to the reader. IANAL. :-)
/external/python/cpython2/Include/unicodeobject.h
|
5f37591a164672ec25c389e646a763d40403cd79 |
|
23-Jul-2000 |
Thomas Wouters <thomas@python.org> |
ANSIfications: fix empty arglists, and remove the checks for 'HAVE_STDARG_PROTOTYPES' (consider it true, remove false branch)
/external/python/cpython2/Include/unicodeobject.h
|
7e47402264cf87b9bbb61fc9ff610af08add7c7b |
|
16-Jul-2000 |
Thomas Wouters <thomas@python.org> |
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
/external/python/cpython2/Include/unicodeobject.h
|
5a5c81a0e9550eaab92c9817259dee5a52f69871 |
|
07-Jul-2000 |
Marc-André Lemburg <mal@egenix.com> |
Added new API PyUnicode_FromEncodedObject() which supports decoding objects including instance objects. The old API PyUnicode_FromObject() is still available as shortcut.
/external/python/cpython2/Include/unicodeobject.h
|
43279100f4b0dda7f2f444ae09d22a71ec2c5183 |
|
07-Jul-2000 |
Marc-André Lemburg <mal@egenix.com> |
Bill Tutt: Added Py_UCS4 typedef to hold UCS4 values (these need at least 32 bits as opposed to Py_UNICODE which rely on having 16 bits).
/external/python/cpython2/Include/unicodeobject.h
|
f03e74126e5702edab33148140e84d21471424ce |
|
05-Jul-2000 |
Marc-André Lemburg <mal@egenix.com> |
Modified the ISALPHA and ISALNUM macros to use the new lookup APIs from unicodectype.c
/external/python/cpython2/Include/unicodeobject.h
|
a9c103bc09bbad19c001eaf170e27fc09e34e152 |
|
03-Jul-2000 |
Marc-André Lemburg <mal@egenix.com> |
Added new Py_UNICODE_ISALPHA() and Py_UNICODE_ISALNUM() macros which are true for alphabetic and alphanumeric characters resp. The macros are currently implemented using the existing is* tables but will have to be updated to meet the Unicode standard definitions (add tables for non-cased letters and letter modifiers).
/external/python/cpython2/Include/unicodeobject.h
|
2f4d0e9bb6a1988b59274bd6db980b214fb17d23 |
|
19-Jun-2000 |
Marc-André Lemburg <mal@egenix.com> |
Marc-Andre Lemburg <mal@lemburg.com>: Added optimization proposed by Andrew Kuchling to the Unicode matching macro.
/external/python/cpython2/Include/unicodeobject.h
|
cb093fe8909146f02ac02b218a7b46800f87a76f |
|
09-May-2000 |
Fred Drake <fdrake@acm.org> |
M.-A. Lemburg <mal@lemburg.com>: Added PyUnicode_GetDefaultEncoding() and PyUnicode_GetDefaultEncoding() APIs.
/external/python/cpython2/Include/unicodeobject.h
|
004d64f362eb0bd0d3e2f257b2b7721fecba87af |
|
11-Apr-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre Lemburg: Changed PyUnicode_Splitlines() maxsplit argument to keepends. The maxsplit functionality was replaced by the keepends functionality which allows keeping the line end markers together with the string.
/external/python/cpython2/Include/unicodeobject.h
|
52c2359a590c7d96fc6b077a29df0f0840cdf90b |
|
10-Apr-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre Lemburg: New exported API PyUnicode_Resize().
/external/python/cpython2/Include/unicodeobject.h
|
9e896b37c7a554250d7d832566cc4fe7d30d034c |
|
05-Apr-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre's third try at this bulk patch seems to work (except that his copy of test_contains.py seems to be broken -- the lines he deleted were already absent). Checkin messages: New Unicode support for int(), float(), complex() and long(). - new APIs PyInt_FromUnicode() and PyLong_FromUnicode() - added support for Unicode to PyFloat_FromString() - new encoding API PyUnicode_EncodeDecimal() which converts Unicode to a decimal char* string (used in the above new APIs) - shortcuts for calls like int(<int object>) and float(<float obj>) - tests for all of the above Unicode compares and contains checks: - comparing Unicode and non-string types now works; TypeErrors are masked, all other errors such as ValueError during Unicode coercion are passed through (note that PyUnicode_Compare does not implement the masking -- PyObject_Compare does this) - contains now works for non-string types too; TypeErrors are masked and 0 returned; all other errors are passed through Better testing support for the standard codecs. Misc minor enhancements, such as an alias dbcs for the mbcs codec. Changes: - PyLong_FromString() now applies the same error checks as does PyInt_FromString(): trailing garbage is reported as error and not longer silently ignored. The only characters which may be trailing the digits are 'L' and 'l' -- these are still silently ignored. - string.ato?() now directly interface to int(), long() and float(). The error strings are now a little different, but the type still remains the same. These functions are now ready to get declared obsolete ;-) - PyNumber_Int() now also does a check for embedded NULL chars in the input string; PyNumber_Long() already did this (and still does) Followed by: Looks like I've gone a step too far there... (and test_contains.py seem to have a bug too). I've changed back to reporting all errors in PyUnicode_Contains() and added a few more test cases to test_contains.py (plus corrected the join() NameError).
/external/python/cpython2/Include/unicodeobject.h
|
24bdb0474fca186da95dc045f157074e4d57c6b6 |
|
28-Mar-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre Lemburg: The attached patch set includes a workaround to get Python with Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause is a bug in the BSDI wchar.h header file) and Python interfaces for the MBCS codec donated by Mark Hammond. Also included are some minor corrections w/r to the docs of the new "es" and "es#" parser markers (use PyMem_Free() instead of free(); thanks to Mark Hammond for finding these). The unicodedata tests are now in a separate file (test_unicodedata.py) to avoid problems if the module cannot be found.
/external/python/cpython2/Include/unicodeobject.h
|
efec1158c1a5cbd4a1b9679fc218915676f69dd0 |
|
28-Mar-2000 |
Guido van Rossum <guido@python.org> |
Prototypes added for MBCS codecs. (Win32 only.)
/external/python/cpython2/Include/unicodeobject.h
|
51ac58039f62ef9d605974dae32a6ada9c26039b |
|
20-Mar-2000 |
Barry Warsaw <barry@python.org> |
On 17-Mar-2000, Marc-Andre Lemburg said: Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
/external/python/cpython2/Include/unicodeobject.h
|
d0d366b5e6505b485ea3a56ddac55be72aa9af14 |
|
14-Mar-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre Lemburg: add declaration for PyUnicode_Contains().
/external/python/cpython2/Include/unicodeobject.h
|
d822518fa87b79a6775bafe67fe124d93ac39d58 |
|
10-Mar-2000 |
Guido van Rossum <guido@python.org> |
Unicode implementation by Marc-Andre Lemburg based on original code by Fredrik Lundh.
/external/python/cpython2/Include/unicodeobject.h
|