<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/string.py, branch v2.4a2</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=v2.4a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/string.py?h=v2.4a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-12-15T18:49:53Z</updated>
<entry>
<title>Add rsplit method for str and unicode builtin types.</title>
<updated>2003-12-15T18:49:53Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2003-12-15T18:49:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3ae811b57d227a220f207869487fd9251e278608'/>
<id>urn:sha1:3ae811b57d227a220f207869487fd9251e278608</id>
<content type='text'>
SF feature request #801847.
Original patch is written by Sean Reifschneider.
</content>
</entry>
<entry>
<title>Add optional fillchar argument to ljust(), rjust(), and center() string methods.</title>
<updated>2003-11-26T08:21:35Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-11-26T08:21:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4f8f9765766a126ebfff3c81655454821f1ad532'/>
<id>urn:sha1:4f8f9765766a126ebfff3c81655454821f1ad532</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tweak the docstring to not be so focused on 1.6.</title>
<updated>2003-10-03T14:05:26Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2003-10-03T14:05:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0b87444b1b49df59da4f65650841a85d582a84bb'/>
<id>urn:sha1:0b87444b1b49df59da4f65650841a85d582a84bb</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
