<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/string.py, branch 2.3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/string.py?h=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/string.py?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-04-10T22:35:32Z</updated>
<entry>
<title>Attempt to make all the various string *strip methods the same.</title>
<updated>2003-04-10T22:35:32Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-04-10T22:35:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ffe33b7f2416132d2e5b64683dbcc2aaf0596937'/>
<id>urn:sha1:ffe33b7f2416132d2e5b64683dbcc2aaf0596937</id>
<content type='text'>
 * Doc - add doc for when functions were added
 * UserString
 * string object methods
 * string module functions
'chars' is used for the last parameter everywhere.

These changes will be backported, since part of the changes
have already been made, but they were inconsistent.
</content>
</entry>
<entry>
<title>Update the docstring to match the code.  Will backport.</title>
<updated>2002-11-14T03:31:32Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-11-14T03:31:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a4864a24646185b336988196c650a85601a5e04a'/>
<id>urn:sha1:a4864a24646185b336988196c650a85601a5e04a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make strip behave as documented. Will backport to 2.2.3.</title>
<updated>2002-11-08T12:09:59Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-11-08T12:09:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1f04610b497c733189212386152219040e18dacb'/>
<id>urn:sha1:1f04610b497c733189212386152219040e18dacb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert empty string literal to string. Speed up creation of idmap.</title>
<updated>2002-10-14T20:03:40Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-10-14T20:03:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5357c6511dcac17e1c80dbdeaea6c1016f44f4e5'/>
<id>urn:sha1:5357c6511dcac17e1c80dbdeaea6c1016f44f4e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove uses of the string and types modules:</title>
<updated>2002-06-03T15:58:32Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2002-06-03T15:58:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=65230a2de758fbde57b3893c402436ae0202ada3'/>
<id>urn:sha1:65230a2de758fbde57b3893c402436ae0202ada3</id>
<content type='text'>
x in string.whitespace =&gt; x.isspace()
type(x) in types.StringTypes =&gt; isinstance(x, basestring)
isinstance(x, types.StringTypes) =&gt; isinstance(x, basestring)
type(x) is types.StringType =&gt; isinstance(x, str)
type(x) == types.StringType =&gt; isinstance(x, str)
string.split(x, ...) =&gt; x.split(...)
string.join(x, y) =&gt; y.join(x)
string.zfill(x, ...) =&gt; x.zfill(...)
string.count(x, ...) =&gt; x.count(...)
hasattr(types, "UnicodeType") =&gt; try: unicode except NameError:
type(x) != types.TupleTuple =&gt; not isinstance(x, tuple)
isinstance(x, types.TupleType) =&gt; isinstance(x, tuple)
type(x) is types.IntType =&gt; isinstance(x, int)

Do not mention the string module in the rlcompleter docstring.

This partially applies SF patch http://www.python.org/sf/562373
(with basestring instead of string). (It excludes the changes to
unittest.py and does not change the os.stat stuff.)
</content>
</entry>
<entry>
<title>Apply the second version of SF patch http://www.python.org/sf/536241</title>
<updated>2002-04-15T13:36:47Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2002-04-15T13:36:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=068325ef926538a30d7feb13f9b14a6163e24b6e'/>
<id>urn:sha1:068325ef926538a30d7feb13f9b14a6163e24b6e</id>
<content type='text'>
Add a method zfill to str, unicode and UserString and change
Lib/string.py accordingly.

This activates the zfill version in unicodeobject.c that was
commented out and implements the same in stringobject.c. It also
adds the test for unicode support in Lib/string.py back in and
uses repr() instead() of str() (as it was before Lib/string.py 1.62)
</content>
</entry>
<entry>
<title>[Bug #536241] string.zfill() produces mangled output for a Unicode string.</title>
<updated>2002-03-29T16:20:33Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2002-03-29T16:20:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=102d1208a8dcf9a502a8720fe5642ee33520d84f'/>
<id>urn:sha1:102d1208a8dcf9a502a8720fe5642ee33520d84f</id>
<content type='text'>
    Walter Doerwald provided a patch, which I've modified in two ways:

1) (Uncontroversial) Removed code to make module work in earlier versions of
   Python without the unicode() built-in

2) (Poss. controversial) Instead of making string.zfill take the repr()
   of non-string objects, take the str().

Should a warning be added to this branch of the code so that the automatic
str() can be deprecated?

2.2.2 bugfix candidate, assuming the repr()-&gt;str() change is deemed OK.
</content>
</entry>
<entry>
<title>string.split() docstring described the interpretation of the maxsplit</title>
<updated>2002-01-30T16:15:13Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2002-01-30T16:15:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1453754fcda8d9f48e484ce39e80ef5b27aada99'/>
<id>urn:sha1:1453754fcda8d9f48e484ce39e80ef5b27aada99</id>
<content type='text'>
argument incorrectly.
This closes SF bug #505997.
</content>
</entry>
<entry>
<title>Added the constants ascii_letters, ascii_lowercase, and ascii_uppercase</title>
<updated>2001-07-20T18:38:26Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-07-20T18:38:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=960fdf9ac3a15eceebd8dd6882bedaae787fa5fb'/>
<id>urn:sha1:960fdf9ac3a15eceebd8dd6882bedaae787fa5fb</id>
<content type='text'>
to the string module.  This was determined to be the right approach in
SF bug #226706.
</content>
</entry>
<entry>
<title>removed __all__ from several modules</title>
<updated>2001-02-18T03:30:53Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-02-18T03:30:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=78349072f7c8f2d3da6f552665f9f381930c3c42'/>
<id>urn:sha1:78349072f7c8f2d3da6f552665f9f381930c3c42</id>
<content type='text'>
</content>
</entry>
</feed>
