<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/string_tests.py, branch v2.5a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/string_tests.py?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/string_tests.py?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-02-15T17:27:45Z</updated>
<entry>
<title>Merge ssize_t branch.</title>
<updated>2006-02-15T17:27:45Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-15T17:27:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18e165558b24d29e7e0ca501842b9236589b012a'/>
<id>urn:sha1:18e165558b24d29e7e0ca501842b9236589b012a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix bug:</title>
<updated>2005-10-21T11:45:01Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2005-10-21T11:45:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b2308bb9be492937764a99007f5fd49b75fbefee'/>
<id>urn:sha1:b2308bb9be492937764a99007f5fd49b75fbefee</id>
<content type='text'>
[ 1327110 ] wrong TypeError traceback in generator expressions

by removing the code that can stomp on the users' TypeError raised by the
iterable argument to ''.join() -- PySequence_Fast (now?) gives a perfectly
reasonable message itself.  Also, a couple of tests.
</content>
</entry>
<entry>
<title>Disable encoding/decoding test, if unicode is disabled.</title>
<updated>2005-07-28T16:49:15Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-07-28T16:49:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6eea789fd2ab75c14b02e23713ad380498be0a06'/>
<id>urn:sha1:6eea789fd2ab75c14b02e23713ad380498be0a06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Beef-up tests for str.count().</title>
<updated>2005-02-20T09:54:53Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-02-20T09:54:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=57e7447c447249a33a13da853f8c1bfec546842a'/>
<id>urn:sha1:57e7447c447249a33a13da853f8c1bfec546842a</id>
<content type='text'>
* Speed-up str.count() by using memchr() to fly between first char matches.
</content>
</entry>
<entry>
<title>* Beef-up testing of str.__contains__() and str.find().</title>
<updated>2005-02-20T04:07:08Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-02-20T04:07:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7cbf1bcb3e55c61617352ec1b20176603dacbafe'/>
<id>urn:sha1:7cbf1bcb3e55c61617352ec1b20176603dacbafe</id>
<content type='text'>
* Speed-up "x in y" where x has more than one character.

The existing code made excessive calls to the expensive memcmp() function.
The new code uses memchr() to rapidly find a start point for memcmp().
In addition to knowing that the first character is a match, the new code
also checks that the last character is a match.  This significantly reduces
the incidence of false starts (saving memcmp() calls and making quadratic
behavior less likely).

Improves the timings on:
    python -m timeit -r7 -s"x='a'*1000" "'ab' in x"
    python -m timeit -r7 -s"x='a'*1000" "'bc' in x"

Once this code has proven itself, then string_find_internal() should refer
to it rather than running its own version.  Also, something similar may
apply to unicode objects.
</content>
</entry>
<entry>
<title>SF bug #1054139:  serious string hashing error in 2.4b1</title>
<updated>2004-10-26T01:52:37Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-10-26T01:52:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=561fbf138d30896af3e7afe33f9bc602dda5f2b7'/>
<id>urn:sha1:561fbf138d30896af3e7afe33f9bc602dda5f2b7</id>
<content type='text'>
_PyString_Resize() readied strings for mutation but did not invalidate
the cached hash value.
</content>
</entry>
<entry>
<title>test_bug1001011():  Verify that</title>
<updated>2004-08-27T05:36:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-27T05:36:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=108f13751999f63c20fa9067f3fc0feb6a87718e'/>
<id>urn:sha1:108f13751999f63c20fa9067f3fc0feb6a87718e</id>
<content type='text'>
    s.join([t]) is t

for (s, t) in (str, str), (unicode, unicode), and (str, unicode).
For (unicode, str), verify that it's *not* t (the result is promoted
to unicode instead).  Also verify that when t is a subclass of str or
unicode that "the right thing" happens.
</content>
</entry>
<entry>
<title>Move test_bug1001011() to string_tests.MixinStrUnicodeTest so that</title>
<updated>2004-08-26T16:53:04Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2004-08-26T16:53:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=57d88e5abd06cefcc8d52d62765c36214b1c1956'/>
<id>urn:sha1:57d88e5abd06cefcc8d52d62765c36214b1c1956</id>
<content type='text'>
it can be used for str and unicode. Drop the test for
   "".join([s]) is s
because this is an implementation detail (and doesn't work for unicode)
</content>
</entry>
<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>Add iswide() and width() method for UserString according as the</title>
<updated>2004-06-04T03:18:12Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2004-06-04T03:18:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5f5125997beba34f79faa0751c6fa1fa74d97ae2'/>
<id>urn:sha1:5f5125997beba34f79faa0751c6fa1fa74d97ae2</id>
<content type='text'>
addition to unicode objects.
</content>
</entry>
</feed>
