<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/stringobject.h, branch 2.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/stringobject.h?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/stringobject.h?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-10-23T02:21:22Z</updated>
<entry>
<title>Add function attributes that allow GCC to check the arguments of printf-like</title>
<updated>2001-10-23T02:21:22Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2001-10-23T02:21:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=90b689076a6dcb55dcac6c5efbc9e4aa793e6c72'/>
<id>urn:sha1:90b689076a6dcb55dcac6c5efbc9e4aa793e6c72</id>
<content type='text'>
functions.
</content>
</entry>
<entry>
<title>More on SF bug [#460020] bug or feature: unicode() and subclasses.</title>
<updated>2001-09-11T01:41:59Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-11T01:41:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5a49ade70e19a76aa252cd596accf79930765f31'/>
<id>urn:sha1:5a49ade70e19a76aa252cd596accf79930765f31</id>
<content type='text'>
Repaired str(i) to return a genuine string when i is an instance of a str
subclass.  New PyString_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>PyString_FromFormat() and PyString_FromFormatV(): Largely ripped from</title>
<updated>2001-08-24T18:32:06Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2001-08-24T18:32:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dadace004b4b94dcc4437bafc9c8407fbb1bed74'/>
<id>urn:sha1:dadace004b4b94dcc4437bafc9c8407fbb1bed74</id>
<content type='text'>
    PyErr_Format() these new C API methods can be used instead of
    sprintf()'s into hardcoded char* buffers.  This allows us to fix
    many situation where long package, module, or class names get
    truncated in reprs.

    PyString_FromFormat() is the varargs variety.
    PyString_FromFormatV() is the va_list variety

    Original PyErr_Format() code was modified to allow %p and %ld
    expansions.

    Many reprs were converted to this, checkins coming soo.  Not
    changed: complex_repr(), float_repr(), float_print(), float_str(),
    int_repr().  There may be other candidates not yet converted.

    Closes patch #454743.
</content>
</entry>
<entry>
<title>SF bug 433228: repr(list) woes when len(list) big.</title>
<updated>2001-06-16T05:11:17Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-16T05:11:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a7259597f1f9ef389012010d7b8a02ebcf7396e7'/>
<id>urn:sha1:a7259597f1f9ef389012010d7b8a02ebcf7396e7</id>
<content type='text'>
Gave Python linear-time repr() implementations for dicts, lists, strings.
This means, e.g., that repr(range(50000)) is no longer 50x slower than
pprint.pprint() in 2.2 &lt;wink&gt;.

I don't consider this a bugfix candidate, as it's a performance boost.

Added _PyString_Join() to the internal string API.  If we want that in the
public API, fine, but then it requires runtime error checks instead of
asserts.
</content>
</entry>
<entry>
<title>Patch #424335: Implement string_richcompare, remove string_compare.</title>
<updated>2001-05-24T16:56:35Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-05-24T16:56:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cd35306a25ef4a7c67edc50f0cec0af5a4b7ea41'/>
<id>urn:sha1:cd35306a25ef4a7c67edc50f0cec0af5a4b7ea41</id>
<content type='text'>
               Use new _PyString_Eq in lookdict_string.
</content>
</entry>
<entry>
<title>This patch changes the way the string .encode() method works slightly</title>
<updated>2001-05-15T12:00:02Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-05-15T12:00:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2d9204199fe8913cca9890f1822413d981587ee5'/>
<id>urn:sha1:2d9204199fe8913cca9890f1822413d981587ee5</id>
<content type='text'>
and introduces a new method .decode().

The major change is that strg.encode() will no longer try to convert
Unicode returns from the codec into a string, but instead pass along
the Unicode object as-is. The same is now true for all other codec
return types. The underlying C APIs were changed accordingly.

Note that even though this does have the potential of breaking
existing code, the chances are low since conversion from Unicode
previously took place using the default encoding which is normally
set to ASCII rendering this auto-conversion mechanism useless for
most Unicode encodings.

The good news is that you can now use .encode() and .decode() with
much greater ease and that the door was opened for better accessibility
of the builtin codecs.

As demonstration of the new feature, the patch includes a few new
codecs which allow string to string encoding and decoding (rot13,
hex, zip, uu, base64).

Written by Marc-Andre Lemburg. Copyright assigned to the PSF.
</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>Derived from Martin's SF patch 110609:  support unbounded ints in %d,i,u,x,X,o formats.</title>
<updated>2000-09-21T05:43:11Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2000-09-21T05:43:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=38fd5b641366eedc74e4be3a0e4d2210f3bcdb5a'/>
<id>urn:sha1:38fd5b641366eedc74e4be3a0e4d2210f3bcdb5a</id>
<content type='text'>
Note a curious extension to the std C rules:  x, X and o formatting can never produce
a sign character in C, so the '+' and ' ' flags are meaningless for them.  But
unbounded ints *can* produce a sign character under these conversions (no fixed-
width bitstring is wide enough to hold all negative values in 2's-comp form).  So
these flags become meaningful in Python when formatting a Python long which is too
big to fit in a C long.  This required shuffling around existing code, which hacked
x and X conversions to death when both the '#' and '0' flags were specified:  the
hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or
'+' flags too, since signs were always meaningless before for x and X conversions.
Isomorphic shuffling was required in unicodeobject.c.
Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
</content>
</entry>
<entry>
<title>This patch adds a new Python C API called PyString_AsStringAndSize()</title>
<updated>2000-09-19T21:04:18Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2000-09-19T21:04:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d1ba443206b535f41154f10b9d56d4fc76a1a9d8'/>
<id>urn:sha1:d1ba443206b535f41154f10b9d56d4fc76a1a9d8</id>
<content type='text'>
which implements the automatic conversion from Unicode to a string
object using the default encoding.

The new API is then put to use to have eval() and exec accept
Unicode objects as code parameter. This closes bugs #110924
and #113890.

As side-effect, the traditional C APIs PyString_Size() and
PyString_AsString() will also accept Unicode objects as
parameters.
</content>
</entry>
</feed>
