<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/stringobject.c, branch v2.4.4</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringobject.c?h=v2.4.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringobject.c?h=v2.4.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-10-06T19:26:14Z</updated>
<entry>
<title>[Backport r43695 | neal.norwitz]</title>
<updated>2006-10-06T19:26:14Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-06T19:26:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=78754c13ceb37117d94a0dc203ab914c4fd1c8c4'/>
<id>urn:sha1:78754c13ceb37117d94a0dc203ab914c4fd1c8c4</id>
<content type='text'>
Remove dead code (reported by HP compiler).

Can probably be backported if anyone cares.
</content>
</entry>
<entry>
<title>[Backport r51248 | neal.norwitz]</title>
<updated>2006-10-05T17:18:13Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T17:18:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1af9f68b4a6f8da34481670b9741854081344321'/>
<id>urn:sha1:1af9f68b4a6f8da34481670b9741854081344321</id>
<content type='text'>
Fix segfault when doing string formatting on subclasses of long if
__oct__, __hex__ don't return a string.

Klocwork 308
</content>
</entry>
<entry>
<title>A review of overflow-detecting code in the 2.4 branch.</title>
<updated>2006-10-04T10:13:32Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2006-10-04T10:13:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b2d0f342404de73905e4febb8c202f41fc0f654f'/>
<id>urn:sha1:b2d0f342404de73905e4febb8c202f41fc0f654f</id>
<content type='text'>
* unified the way intobject, longobject and mystrtoul handle
  values around -sys.maxint-1.

* in general, trying to entierely avoid overflows in any computation
  involving signed ints or longs is extremely involved.  Fixed a few
  simple cases where a compiler might be too clever (but that's all
  guesswork).

* more overflow checks against bad data in marshal.c.
</content>
</entry>
<entry>
<title>Backport r42894: SF #1444030 Fix several potential defects found</title>
<updated>2006-03-07T15:59:09Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2006-03-07T15:59:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=361cd4bd6c9c2d56ed154922e016c47d4bee9482'/>
<id>urn:sha1:361cd4bd6c9c2d56ed154922e016c47d4bee9482</id>
<content type='text'>
by Coverity.
</content>
</entry>
<entry>
<title>Backport: SF bug #1331563 ] string_subscript doesn't check for failed PyMem_Malloc.</title>
<updated>2005-10-20T04:16:45Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2005-10-20T04:16:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c2b4acf494ab433cff9b97a49f679dbd2fefc3ac'/>
<id>urn:sha1:c2b4acf494ab433cff9b97a49f679dbd2fefc3ac</id>
<content type='text'>
</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>SF Patch #1007087:  Return new string for single subclass joins (Bug #1001011)</title>
<updated>2004-08-23T23:23:54Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-08-23T23:23:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=674f241e9c5bd0f40418580d74e3c8e430f651cc'/>
<id>urn:sha1:674f241e9c5bd0f40418580d74e3c8e430f651cc</id>
<content type='text'>
(Patch contributed by Nick Coghlan.)

Now joining string subtypes will always return a string.
Formerly, if there were only one item, it was returned unchanged.
</content>
</entry>
<entry>
<title>This was quite a dark bug in my recent in-place string concatenation</title>
<updated>2004-08-07T20:58:32Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2004-08-07T20:58:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=618fbf5469ec6b8013b00989623763db21dd0ce5'/>
<id>urn:sha1:618fbf5469ec6b8013b00989623763db21dd0ce5</id>
<content type='text'>
hack: it would resize *interned* strings in-place!  This occurred because
their reference counts do not have their expected value -- stringobject.c
hacks them.  Mea culpa.
</content>
</entry>
<entry>
<title>Fixed some compiler warnings.</title>
<updated>2004-08-07T19:27:39Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2004-08-07T19:27:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=79f7ad228b0f7d5c4609e790d9a06345f36a5aaf'/>
<id>urn:sha1:79f7ad228b0f7d5c4609e790d9a06345f36a5aaf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Subclasses of string can no longer be interned.  The semantics of</title>
<updated>2004-08-07T19:20:05Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2004-08-07T19:20:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4c989ddc9c8bd38ab14c9f42511eb567ed219604'/>
<id>urn:sha1:4c989ddc9c8bd38ab14c9f42511eb567ed219604</id>
<content type='text'>
interning were not clear here -- a subclass could be mutable, for
example -- and had bugs.  Explicitly interning a subclass of string
via intern() will raise a TypeError.  Internal operations that attempt
to intern a string subclass will have no effect.

Added a few tests to test_builtin that includes the old buggy code and
verifies that calls like PyObject_SetAttr() don't fail.  Perhaps these
tests should have gone in test_string.
</content>
</entry>
</feed>
