<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython.git/Lib/string.py, branch v2.7</title>
<subtitle>
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/'/>
<entry>
<title>#7000: document "sep" in capwords. Add a few tests</title>
<updated>2009-09-26T11:20:53+00:00</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2009-09-26T11:20:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=612a3936aed13666aae4c5a3211b24934526c256'/>
<id>612a3936aed13666aae4c5a3211b24934526c256</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix comment</title>
<updated>2008-11-09T01:52:32+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2008-11-09T01:52:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=d2acfbd2e54a7a9b93f66495f26b5f167c129365'/>
<id>d2acfbd2e54a7a9b93f66495f26b5f167c129365</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace all map(None, a) with list(a).</title>
<updated>2008-07-18T19:06:13+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2008-07-18T19:06:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=42f84ca601f41f900aa20b910b0dc7929325f280'/>
<id>42f84ca601f41f900aa20b910b0dc7929325f280</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport of PEP 3101, Advanced String Formatting, from py3k.</title>
<updated>2008-02-17T19:46:49+00:00</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-02-17T19:46:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=0167521c8df4649088b90ad582060e85649b54dc'/>
<id>0167521c8df4649088b90ad582060e85649b54dc</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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).
</pre>
</div>
</content>
</entry>
<entry>
<title>SF 1193128:  Let str.translate(None) be an identity transformation</title>
<updated>2007-04-12T04:10:00+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2007-04-12T04:10:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=ae61c036d9a8cbf2776823ba66c2c15cb423b140'/>
<id>ae61c036d9a8cbf2776823ba66c2c15cb423b140</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a type.__init__() method that enforces the same signature as</title>
<updated>2007-03-23T18:53:03+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-03-23T18:53:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=fc6107c857eece00252c44d37751926b1f66828e'/>
<id>fc6107c857eece00252c44d37751926b1f66828e</id>
<content type='text'>
type.__new__(), and then calls object.__init__(cls), just to be anal.

This allows us to restore the code in string.py's _TemplateMetaclass
that called super(...).__init__(name, bases, dct), which I commented
out yesterday since it broke due to the stricter argument checking
added to object.__init__().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
type.__new__(), and then calls object.__init__(cls), just to be anal.

This allows us to restore the code in string.py's _TemplateMetaclass
that called super(...).__init__(name, bases, dct), which I commented
out yesterday since it broke due to the stricter argument checking
added to object.__init__().
</pre>
</div>
</content>
</entry>
<entry>
<title>- Bug #1683368: The object.__init__() and object.__new__() methods are</title>
<updated>2007-03-23T04:58:42+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-03-23T04:58:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=55791862a694b98ea4ba0d645e64eedf082d23a1'/>
<id>55791862a694b98ea4ba0d645e64eedf082d23a1</id>
<content type='text'>
  now stricter in rejecting excess arguments.  The only time when
  either allows excess arguments is when it is not overridden and the
  other one is.  For backwards compatibility, when both are
  overridden, it is a deprecation warning (for now; maybe a Py3k
  warning later).

When merging this into 3.0, the warnings should become errors.

Note: without the change to string.py, lots of spurious warnings happen.
What's going on there?
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  now stricter in rejecting excess arguments.  The only time when
  either allows excess arguments is when it is not overridden and the
  other one is.  For backwards compatibility, when both are
  overridden, it is a deprecation warning (for now; maybe a Py3k
  warning later).

When merging this into 3.0, the warnings should become errors.

Note: without the change to string.py, lots of spurious warnings happen.
What's going on there?
</pre>
</div>
</content>
</entry>
<entry>
<title>Cookie.py shouldn't "bogusly" use string._idmap.</title>
<updated>2006-08-14T22:01:24+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2006-08-14T22:01:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=530c1058e7d21895d4e033e45509ae3caa9fcfd8'/>
<id>530c1058e7d21895d4e033e45509ae3caa9fcfd8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug in passing tuples to string.Template. All other values (with working</title>
<updated>2006-07-05T11:03:49+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-07-05T11:03:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=285c3c551bcf23e2f86dca677311679bbb602c6e'/>
<id>285c3c551bcf23e2f86dca677311679bbb602c6e</id>
<content type='text'>
str() or repr()) would work, just not multi-value tuples. Probably not a
backport candidate, since it changes the behaviour of passing a
single-element tuple:

&gt;&gt;&gt; string.Template("$foo").substitute(dict(foo=(1,)))

'(1,)'

versus

'1'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
str() or repr()) would work, just not multi-value tuples. Probably not a
backport candidate, since it changes the behaviour of passing a
single-element tuple:

&gt;&gt;&gt; string.Template("$foo").substitute(dict(foo=(1,)))

'(1,)'

versus

'1'
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove outdated references to the regsub module.</title>
<updated>2004-12-07T07:55:07+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-12-07T07:55:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=9e32da160f07a19b3ce1a986e5fd33ac09fc617b'/>
<id>9e32da160f07a19b3ce1a986e5fd33ac09fc617b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
