<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/stringlib/string_format.h, branch v2.7a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/string_format.h?h=v2.7a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/string_format.h?h=v2.7a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2009-05-23T13:56:13Z</updated>
<entry>
<title>Issue 6089: str.format raises SystemError.</title>
<updated>2009-05-23T13:56:13Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2009-05-23T13:56:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4b94b192ff38f37b99f04605fd6515d7fb97ffea'/>
<id>urn:sha1:4b94b192ff38f37b99f04605fd6515d7fb97ffea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>#5889: remove comma at the end of a list that some C compilers don't like.</title>
<updated>2009-05-01T08:51:37Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2009-05-01T08:51:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ca87fa5a5b650de2d4b5cb04fb5847cf631e75eb'/>
<id>urn:sha1:ca87fa5a5b650de2d4b5cb04fb5847cf631e75eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue 5237, Allow auto-numbered replacement fields in str.format() strings.</title>
<updated>2009-03-14T11:57:26Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2009-03-14T11:57:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f42edb6821462c9ce02c6c4e2f57731b43956ad'/>
<id>urn:sha1:6f42edb6821462c9ce02c6c4e2f57731b43956ad</id>
<content type='text'>
For simple uses for str.format(), this makes the typing easier. Hopfully this
will help in the adoption of str.format().

For example:
'The {} is {}'.format('sky', 'blue')

You can mix and matcth auto-numbering and named replacement fields:
'The {} is {color}'.format('sky', color='blue')

But you can't mix and match auto-numbering and specified numbering:
'The {0} is {}'.format('sky', 'blue')
ValueError: cannot switch from manual field specification to automatic field numbering

Will port to 3.1.
</content>
</entry>
<entry>
<title>Backport of r63826.</title>
<updated>2008-08-18T14:27:38Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-08-18T14:27:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e5bdccc77b2a0da0b72f4a6ebbc2d9a1a9680dcd'/>
<id>urn:sha1:e5bdccc77b2a0da0b72f4a6ebbc2d9a1a9680dcd</id>
<content type='text'>
Optimization of str.format() for cases with str, unicode, int, long,
and float arguments.  This gives about 30% speed improvement for the
simplest (but most common) cases.  This patch skips the __format__
dispatch, and also avoids creating an object to hold the format_spec.

Unfortunately there's a complication in 2.6 with int, long, and float
because they always expect str format_specs.  So in the unicode
version of this optimization, just check for unicode objects.  int,
float, long, and str can be added later, if needed.
</content>
</entry>
<entry>
<title>This reverts r63675 based on the discussion in this thread:</title>
<updated>2008-06-09T04:58:54Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-06-09T04:58:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd96db63f689e2f0d8ae5a1436b3b3395eec7de5'/>
<id>urn:sha1:dd96db63f689e2f0d8ae5a1436b3b3395eec7de5</id>
<content type='text'>
 http://mail.python.org/pipermail/python-dev/2008-June/079988.html

Python 2.6 should stick with PyString_* in its codebase.  The PyBytes_* names
in the spirit of 3.0 are available via a #define only.  See the email thread.
</content>
</entry>
<entry>
<title>Renamed PyString to PyBytes</title>
<updated>2008-05-26T12:51:38Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2008-05-26T12:51:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=593daf545bd9b7e7bcb27b498ecc6f36db9ae395'/>
<id>urn:sha1:593daf545bd9b7e7bcb27b498ecc6f36db9ae395</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bug #2388: Fix gcc warnings when compiling with --enable-unicode=ucs4.</title>
<updated>2008-04-07T03:08:28Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2008-04-07T03:08:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d918e4e068f22c3e79c771c27be3c8f91a9e0446'/>
<id>urn:sha1:d918e4e068f22c3e79c771c27be3c8f91a9e0446</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Corrected assert to check for correct type in py3k.</title>
<updated>2008-02-24T21:41:49Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-02-24T21:41:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4b051eecb94ec927d0b5bda90609562e0772788a'/>
<id>urn:sha1:4b051eecb94ec927d0b5bda90609562e0772788a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added code to correct combining str and unicode in ''.format().  Added test case.</title>
<updated>2008-02-18T18:02:34Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-02-18T18:02:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bc32fee0291cc8ff4085ad805c0f4dca97345863'/>
<id>urn:sha1:bc32fee0291cc8ff4085ad805c0f4dca97345863</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backport of PEP 3101, Advanced String Formatting, from py3k.</title>
<updated>2008-02-17T19:46:49Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-02-17T19:46:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a9f7d6248032c9572b4d2024a1be8bd2823af09f'/>
<id>urn:sha1:a9f7d6248032c9572b4d2024a1be8bd2823af09f</id>
<content type='text'>
Highlights:
 - Adding PyObject_Format.
 - Adding string.Format class.
 - Adding __format__ for str, unicode, int, long, float, datetime.
 - Adding builtin format.
 - Adding ''.format and u''.format.
 - str/unicode fixups for formatters.

The files in Objects/stringlib that implement PEP 3101 (stringdefs.h,
unicodedefs.h, formatter.h, string_format.h) are identical in trunk
and py3k.  Any changes from here on should be made to trunk, and
changes will propogate to py3k).
</content>
</entry>
</feed>
