<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/unicodeobject.h, branch v2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/unicodeobject.h?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/unicodeobject.h?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-10-19T02:01:31Z</updated>
<entry>
<title>SF patch #470578: Fixes to synchronize unicode() and str()</title>
<updated>2001-10-19T02:01:31Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-19T02:01:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b8c65bc27ffc61c659180c351d3cc283abd1be45'/>
<id>urn:sha1:b8c65bc27ffc61c659180c351d3cc283abd1be45</id>
<content type='text'>
    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]
</content>
</entry>
<entry>
<title>Patch #435971: UTF-7 codec by Brian Quinlan.</title>
<updated>2001-09-20T10:35:46Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-09-20T10:35:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c60e6f777114f43c64f1b83f9ad2b6e4efd220e7'/>
<id>urn:sha1:c60e6f777114f43c64f1b83f9ad2b6e4efd220e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix for bug #462737.</title>
<updated>2001-09-19T11:21:03Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-09-19T11:21:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5e6007c5dbb14a6c64d4b7ee95793465f544bca6'/>
<id>urn:sha1:5e6007c5dbb14a6c64d4b7ee95793465f544bca6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Possibly the end of SF [#460020] bug or feature: unicode() and subclasses.</title>
<updated>2001-09-11T03:07:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-11T03:07:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=78e0fc74bce026ddf67d029030a90c9b8faffcb5'/>
<id>urn:sha1:78e0fc74bce026ddf67d029030a90c9b8faffcb5</id>
<content type='text'>
Changed unicode(i) to return a true Unicode object when i is an instance of
a unicode subclass.  Added PyUnicode_CheckExact macro.
</content>
</entry>
<entry>
<title>Make the Py&lt;type&gt;_Check() macro use PyObject_TypeCheck().</title>
<updated>2001-08-30T03:08:07Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-30T03:08:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5eef77a21be8a7895419cc84e8bf5554ca908b54'/>
<id>urn:sha1:5eef77a21be8a7895419cc84e8bf5554ca908b54</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch #445762: Support --disable-unicode</title>
<updated>2001-08-17T18:39:25Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-17T18:39:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=339d0f720e86dc34837547c90d3003a4a68d7d46'/>
<id>urn:sha1:339d0f720e86dc34837547c90d3003a4a68d7d46</id>
<content type='text'>
- 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.
</content>
</entry>
<entry>
<title>SF patch #438013 Remove 2-byte Py_UCS2 assumptions</title>
<updated>2001-08-09T22:21:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-09T22:21:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=772747b3f1f4d6a70c025a7368ed25f039ccff1d'/>
<id>urn:sha1:772747b3f1f4d6a70c025a7368ed25f039ccff1d</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>As discussed on python-dev: this patch adds name mangling to</title>
<updated>2001-07-31T14:30:16Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-07-31T14:30:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b5ac6f62c7a934de582bab0e9c547791e8e80007'/>
<id>urn:sha1:b5ac6f62c7a934de582bab0e9c547791e8e80007</id>
<content type='text'>
assure that extensions and interpreters using the Unicode APIs
were compiled using the same Unicode width.
</content>
</entry>
<entry>
<title>Add _PyUnicode_AsDefaultEncodedString to unicodeobject.h.</title>
<updated>2001-07-30T22:34:24Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-07-30T22:34:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3ce45389bd929296863e26586fa6963ba307e6fb'/>
<id>urn:sha1:3ce45389bd929296863e26586fa6963ba307e6fb</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>removed "register const" from scalar arguments to the unicode</title>
<updated>2001-06-27T22:08:26Z</updated>
<author>
<name>Fredrik Lundh</name>
<email>fredrik@pythonware.com</email>
</author>
<published>2001-06-27T22:08:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=72b068566ace24bb49c935ba4c539f021212249a'/>
<id>urn:sha1:72b068566ace24bb49c935ba4c539f021212249a</id>
<content type='text'>
predicates
</content>
</entry>
</feed>
