<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/stringlib/unicodedefs.h, branch v3.1</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/unicodedefs.h?h=v3.1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/unicodedefs.h?h=v3.1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2009-04-03T14:45:06Z</updated>
<entry>
<title>Added ',' thousands grouping to int.__format__. See PEP 378.</title>
<updated>2009-04-03T14:45:06Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2009-04-03T14:45:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a3b1ac8dca5afa01d9d542e125052014a9af56eb'/>
<id>urn:sha1:a3b1ac8dca5afa01d9d542e125052014a9af56eb</id>
<content type='text'>
This is incomplete, but I want to get some version into the next alpha. I am still working on:
Documentation.
More tests.
Implement for floats.

In addition, there's an existing bug with 'n' formatting that carries forward to thousands grouping (issue 5515).
</content>
</entry>
<entry>
<title>#2630: Implement PEP 3138.</title>
<updated>2008-06-11T18:37:52Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2008-06-11T18:37:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=559e5d7f4d1155e95fb6f925c927a263f9196935'/>
<id>urn:sha1:559e5d7f4d1155e95fb6f925c927a263f9196935</id>
<content type='text'>
The repr() of a string now contains printable Unicode characters unescaped.
The new ascii() builtin can be used to get a repr() with only ASCII characters in it.

PEP and patch were written by Atsuo Ishimoto.
</content>
</entry>
<entry>
<title>Merged revisions 63078 via svnmerge from</title>
<updated>2008-05-11T21:00:57Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-05-11T21:00:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5807c415c5b16b9119895cdc80c4608f37c8c30b'/>
<id>urn:sha1:5807c415c5b16b9119895cdc80c4608f37c8c30b</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

When forward porting this, I added _PyUnicode_InsertThousandsGrouping.

........
  r63078 | eric.smith | 2008-05-11 15:52:48 -0400 (Sun, 11 May 2008) | 14 lines

  Addresses issue 2802: 'n' formatting for integers.

  Adds 'n' as a format specifier for integers, to mirror the same
  specifier which is already available for floats.  'n' is the same as
  'd', but inserts the current locale-specific thousands grouping.

  I added this as a stringlib function, but it's only used by str type,
  not unicode.  This is because of an implementation detail in
  unicode.format(), which does its own str-&gt;unicode conversion.  But the
  unicode version will be needed in 3.0, and it may be needed by other
  code eventually in 2.6 (maybe decimal?), so I left it as a stringlib
  implementation.  As long as the unicode version isn't instantiated,
  there's no overhead for this.
........
</content>
</entry>
<entry>
<title>Fixes for shared 2.6 code that implements PEP 3101, advanced string</title>
<updated>2008-02-17T19:48:00Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-02-17T19:48:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8fd3eba0501a77eec463179f529f56025ff4b40b'/>
<id>urn:sha1:8fd3eba0501a77eec463179f529f56025ff4b40b</id>
<content type='text'>
formatting.

Includes:
 - Modifying tests for basic types to use __format__ methods, instead
   of builtin "format".
 - Adding PyObject_Format.
 - General str/unicode cleanup discovered when backporting to 2.6.
 - Removing datetimemodule.c's time_format, since it was identical
   to date_format.

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>
<entry>
<title>Replace PyObject_Unicode with PyObject_Str everywhere, and remove the</title>
<updated>2007-11-15T20:48:54Z</updated>
<author>
<name>Thomas Heller</name>
<email>theller@ctypes.org</email>
</author>
<published>2007-11-15T20:48:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=519a042c7c248e3ae23cf2a3c1152f91a5bd2791'/>
<id>urn:sha1:519a042c7c248e3ae23cf2a3c1152f91a5bd2791</id>
<content type='text'>
#define for PyObject_Unicode in object.h.
</content>
</entry>
<entry>
<title>For PEP3137: Adds missing methods to the mutable PyBytes object (soon</title>
<updated>2007-10-16T06:31:30Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2007-10-16T06:31:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=60d241f135f10312f5a638846659d7e471f6cac9'/>
<id>urn:sha1:60d241f135f10312f5a638846659d7e471f6cac9</id>
<content type='text'>
to be called a buffer).  Shares code with stringobject when possible.
Adds unit tests with common code that should be usable to test the PEPs
mutable buffer() and immutable bytes() types.

 http://bugs.python.org/issue1261
</content>
</entry>
<entry>
<title>Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects.</title>
<updated>2007-09-01T10:56:01Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2007-09-01T10:56:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=37f10386f1bedb992f3d9770b2f71b5edda2abbe'/>
<id>urn:sha1:37f10386f1bedb992f3d9770b2f71b5edda2abbe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Changed STRINGLIB_CMP from an inline function to a macro in order to avoid a 'defined but not used' warning.</title>
<updated>2007-08-28T09:45:15Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2007-08-28T09:45:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=79710cdea1975c633c63bb25b25f92ac61a976e2'/>
<id>urn:sha1:79710cdea1975c633c63bb25b25f92ac61a976e2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implementation of PEP 3101, Advanced String Formatting.</title>
<updated>2007-08-25T02:26:07Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2007-08-25T02:26:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8c6632636807c35bee40210ed8483c1eca82664f'/>
<id>urn:sha1:8c6632636807c35bee40210ed8483c1eca82664f</id>
<content type='text'>
Known issues:

The string.Formatter class, as discussed in the PEP, is incomplete.

Error handling needs to conform to the PEP.

Need to fix this warning that I introduced in Python/formatter_unicode.c:
Objects/stringlib/unicodedefs.h:26: warning: `STRINGLIB_CMP' defined but not used

Need to make sure sign formatting is correct, more tests needed.

Need to remove '()' sign formatting, left over from an earlier version of the PEP.
</content>
</entry>
</feed>
