<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/stringobject.c, branch v2.1c2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringobject.c?h=v2.1c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringobject.c?h=v2.1c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-04-12T18:38:48Z</updated>
<entry>
<title>Bug 415514 reported that e.g.</title>
<updated>2001-04-12T18:38:48Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-04-12T18:38:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fff53250789c3879e5f63d4dde80d17e0b9c4dbb'/>
<id>urn:sha1:fff53250789c3879e5f63d4dde80d17e0b9c4dbb</id>
<content type='text'>
    "%#x" % 0
blew up, at heart because C sprintf supplies a base marker if and only if
the value is not 0.  I then fixed that, by tolerating C's inconsistency
when it does %#x, and taking away that *Python* produced 0x0 when
formatting 0L (the "long" flavor of 0) under %#x itself.  But after talking
with Guido, we agreed it would be better to supply 0x for the short int
case too, despite that it's inconsistent with C, because C is inconsistent
with itself and with Python's hex(0) (plus, while "%#x" % 0 didn't work
before, "%#x" % 0L *did*, and returned "0x0").  Similarly for %#X conversion.
</content>
</entry>
<entry>
<title>Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort.</title>
<updated>2001-04-12T00:35:51Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-04-12T00:35:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=711088d9b8c6898aad571fb251cb40a8b7d42f64'/>
<id>urn:sha1:711088d9b8c6898aad571fb251cb40a8b7d42f64</id>
<content type='text'>
http://sourceforge.net/tracker/index.php?func=detail&amp;aid=415514&amp;group_id=5470&amp;atid=105470
For short ints, Python defers to the platform C library to figure out what
%#x should do.  The code asserted that the platform C returned a string
beginning with "0x".  However, that's not true when-- and only when --the
*value* being formatted is 0.  Changed the code to live with C's inconsistency
here.  In the meantime, the problem does not arise if you format a long 0 (0L)
instead.  However, that's because the code *we* wrote to do %#x conversions on
longs produces a leading "0x" regardless of value.  That's probably wrong too:
we should drop leading "0x", for consistency with C, when (&amp; only when) formatting
0L.  So I changed the long formatting code to do that too.
</content>
</entry>
<entry>
<title>_Py_ReleaseInternedStrings(): Private API function to decref and</title>
<updated>2001-02-23T16:40:48Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2001-02-23T16:40:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a903ad9855947ae885c4407be8d10ef8d5521010'/>
<id>urn:sha1:a903ad9855947ae885c4407be8d10ef8d5521010</id>
<content type='text'>
release the interned string dictionary.  This is useful for memory
use debugging because it eliminates a huge source of noise from the
reports.  Only defined when INTERN_STRINGS is defined.
</content>
</entry>
<entry>
<title>Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.</title>
<updated>2001-01-24T17:19:08Z</updated>
<author>
<name>Ka-Ping Yee</name>
<email>ping@zesty.ca</email>
</author>
<published>2001-01-24T17:19:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fa004ad36c86f4af406cfa3a84ec8b6cb391e6dd'/>
<id>urn:sha1:fa004ad36c86f4af406cfa3a84ec8b6cb391e6dd</id>
<content type='text'>
Switch from octal escapes to hex escapes for other nonprintable characters.
</content>
</entry>
<entry>
<title>Derivative of patch #102549, "simpler, faster(!) implementation of string.join".</title>
<updated>2001-01-19T03:03:47Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-19T03:03:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=19fe14e76ac3619e633b10c0e31effc2dad3c543'/>
<id>urn:sha1:19fe14e76ac3619e633b10c0e31effc2dad3c543</id>
<content type='text'>
Also fixes two long-standing bugs (present in 2.0):
1. .join() didn't check that the result size fit in an int.
2. string.join(s) when len(s)==1 returned s[0] regardless of s[0]'s
   type; e.g., "".join([3]) returned 3 (overly optimistic optimization).
I resisted a keen temptation to make .join() apply str() automagically.
</content>
</entry>
<entry>
<title>Added checks to prevent PyUnicode_Count() from dumping core</title>
<updated>2001-01-16T11:54:12Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-01-16T11:54:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3a645e4dd4eebbfbbfad8443558bb3b879e23896'/>
<id>urn:sha1:3a645e4dd4eebbfbbfad8443558bb3b879e23896</id>
<content type='text'>
in case the parameters are out of bounds and fixes error handling
for .count(), .startswith() and .endswith() for the case of
mixed string/Unicode objects.

This patch adds Python style index semantics to PyUnicode_Count()
indices (including the special handling of negative indices).

The patch is an extended version of patch #103249 submitted
by Michael Hudson (mwh) on SF. It also includes new test cases.
</content>
</entry>
<entry>
<title>[ Patch #102852 ] Make % error a bit more informative by indicates the</title>
<updated>2000-12-15T13:07:46Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2000-12-15T13:07:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6ca8917758c90bb8de4d3698f9c6ba84167035f5'/>
<id>urn:sha1:6ca8917758c90bb8de4d3698f9c6ba84167035f5</id>
<content type='text'>
index at which an unknown %-escape was found
</content>
</entry>
<entry>
<title>Jeffrey D. Collins &lt;tokeneater@users.sourceforge.net&gt;:</title>
<updated>2000-12-06T14:27:49Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-12-06T14:27:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=49312a52ece5819990e870ad75ed8422934fb2cc'/>
<id>urn:sha1:49312a52ece5819990e870ad75ed8422934fb2cc</id>
<content type='text'>
Fix type of the self parameter to some string object methods.

This closes patch #102670.
</content>
</entry>
<entry>
<title>Fox for SF bug #123859: %[duxXo] long formats inconsistent.</title>
<updated>2000-11-30T05:22:44Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2000-11-30T05:22:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a3a3a030af8579bdd0d3a8d293ee60a1ec8107dc'/>
<id>urn:sha1:a3a3a030af8579bdd0d3a8d293ee60a1ec8107dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch #102548, fix for bug #121013, by mwh@users.sourceforge.net.</title>
<updated>2000-11-27T18:46:26Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-11-27T18:46:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2ccda8a7c4b983c0b8776db570383911af26ee91'/>
<id>urn:sha1:2ccda8a7c4b983c0b8776db570383911af26ee91</id>
<content type='text'>
Fixes a typo that caused "".join(u"this is a test") to dump core.
</content>
</entry>
</feed>
