<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/unicodeobject.h, branch v2.4a2</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.4a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/unicodeobject.h?h=v2.4a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-08-04T07:38:35Z</updated>
<entry>
<title>SF #989185: Drop unicode.iswide() and unicode.width() and add</title>
<updated>2004-08-04T07:38:35Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2004-08-04T07:38:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e9ddfbb41207328d5c89061067f3431e00711fda'/>
<id>urn:sha1:e9ddfbb41207328d5c89061067f3431e00711fda</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Allow string and unicode return types from .encode()/.decode()</title>
<updated>2004-07-08T17:57:32Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2004-07-08T17:57:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d2d4598ec2e33e73efcbf295e630296b24a1b70b'/>
<id>urn:sha1:d2d4598ec2e33e73efcbf295e630296b24a1b70b</id>
<content type='text'>
methods on string and unicode objects. Added unicode.decode()
which was missing for no apparent reason.
</content>
</entry>
<entry>
<title>- SF #962502: Add two more methods for unicode type; width() and</title>
<updated>2004-06-02T16:49:17Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2004-06-02T16:49:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=974ed7cfa50b666c9ab91f7a3f8f26049d387107'/>
<id>urn:sha1:974ed7cfa50b666c9ab91f7a3f8f26049d387107</id>
<content type='text'>
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)
</content>
</entry>
<entry>
<title>Add rsplit method for str and unicode builtin types.</title>
<updated>2003-12-15T18:49:53Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2003-12-15T18:49:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3ae811b57d227a220f207869487fd9251e278608'/>
<id>urn:sha1:3ae811b57d227a220f207869487fd9251e278608</id>
<content type='text'>
SF feature request #801847.
Original patch is written by Sean Reifschneider.
</content>
</entry>
<entry>
<title>Add name mangling for new PyUnicode_FromOrdinal() and fix declaration</title>
<updated>2002-08-12T08:19:10Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2002-08-12T08:19:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c329de47e552bb0be7880350233448123eebb1f'/>
<id>urn:sha1:9c329de47e552bb0be7880350233448123eebb1f</id>
<content type='text'>
to use new extern macro.
</content>
</entry>
<entry>
<title>Excise DL_EXPORT from Include.</title>
<updated>2002-08-12T07:21:58Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2002-08-12T07:21:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=91a681debf9ffec155d0aff8a0bb5f965f592e16'/>
<id>urn:sha1:91a681debf9ffec155d0aff8a0bb5f965f592e16</id>
<content type='text'>
Thanks to Skip Montanaro and Kalle Svensson for the patches.
</content>
</entry>
<entry>
<title>Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level.</title>
<updated>2002-08-11T12:23:04Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2002-08-11T12:23:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc8764ca9dc3fceb9dc283163a89c9bb649b5392'/>
<id>urn:sha1:cc8764ca9dc3fceb9dc283163a89c9bb649b5392</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Fix for bug [ 561796 ] string.find causes lazy error</title>
<updated>2002-05-29T11:33:13Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2002-05-29T11:33:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4da6fd63bc431468e9622341ac410c55a54c7b9b'/>
<id>urn:sha1:4da6fd63bc431468e9622341ac410c55a54c7b9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply patch diff.txt from SF feature request</title>
<updated>2002-04-22T17:42:37Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2002-04-22T17:42:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=de02bcb2659af6acb1d44ba61c0bcf7b2d53a6ed'/>
<id>urn:sha1:de02bcb2659af6acb1d44ba61c0bcf7b2d53a6ed</id>
<content type='text'>
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.
</content>
</entry>
<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>
</feed>
