summaryrefslogtreecommitdiffstats
path: root/Lib/UserString.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove .width() and .iswide() from UserString as well.Hye-Shik Chang2004-08-041-4/+0
|
* Add comments for unicode-only methods to give hints on AttributeErrorHye-Shik Chang2004-06-041-2/+2
| | | | tracebacks. (Suggested by Walter Dörwald)
* Add iswide() and width() method for UserString according as theHye-Shik Chang2004-06-041-0/+4
| | | | addition to unicode objects.
* Add rsplit method for UserString, too.Hye-Shik Chang2003-12-151-0/+2
| | | | (Spotted by Raymond Hettinger)
* Add optional fillchar argument to ljust(), rjust(), and center() string methods.Raymond Hettinger2003-11-261-3/+6
|
* Remove a typo. (Or is this some markup I don't understand? ;-)Thomas Heller2003-08-271-1/+1
|
* Attempt to make all the various string *strip methods the same.Neal Norwitz2003-04-101-3/+3
| | | | | | | | | | | * 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.
* Add __mod__ method to UserString.Neil Schemenauer2002-11-181-0/+2
|
* Moved inplace add and multiply methods from UserString to MutableString.Raymond Hettinger2002-08-091-11/+11
| | | | | Closes SF Bug #592573 where inplace add mutated a UserString. Added unittests to verify the bug is cleared.
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-4/+2
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* More --disable-unicode stuff.Michael W. Hudson2002-05-201-6/+6
| | | | I'm getting better at vi!
* Apply the second version of SF patch http://www.python.org/sf/536241Walter Dörwald2002-04-151-0/+1
| | | | | | | | | | 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)
* Partially implement SF feature request 444708.Guido van Rossum2002-04-131-3/+3
| | | | | | | | | | | | | Add optional arg to string methods strip(), lstrip(), rstrip(). The optional arg specifies characters to delete. Also for UserString. Still to do: - Misc/NEWS - LaTeX docs (I did the docstrings though) - Unicode methods, and Unicode support in the string methods.
* This patch changes the way the string .encode() method works slightlyMarc-André Lemburg2001-05-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | and introduces a new method .decode(). The major change is that strg.encode() will no longer try to convert Unicode returns from the codec into a string, but instead pass along the Unicode object as-is. The same is now true for all other codec return types. The underlying C APIs were changed accordingly. Note that even though this does have the potential of breaking existing code, the chances are low since conversion from Unicode previously took place using the default encoding which is normally set to ASCII rendering this auto-conversion mechanism useless for most Unicode encodings. The good news is that you can now use .encode() and .decode() with much greater ease and that the door was opened for better accessibility of the builtin codecs. As demonstration of the new feature, the patch includes a few new codecs which allow string to string encoding and decoding (rot13, hex, zip, uu, base64). Written by Marc-Andre Lemburg. Copyright assigned to the PSF.
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Whitespace normalization. Top level of Lib now fixed-point for reindent.py!Tim Peters2001-01-151-14/+14
|
* Fix two typos in __imul__. Closes Bug #117745.Guido van Rossum2000-10-251-2/+2
|
* simple typo that makes regression test test_userstring failPeter Schneider-Kamp2000-08-241-1/+1
|
* Support for augmented assignment in the UserList, UserDict, UserString andThomas Wouters2000-08-241-0/+11
| | | | | | rfc822 (Addresslist) modules. Also a preliminary testcase for augmented assignment, which should actually be merged with the test_class testcase I added last week.
* Denis S. Otkidach <den@analyt.chem.msu.ru>:Fred Drake2000-08-211-2/+2
| | | | | | Let UserString.translate() method work with unicode data. This closes SourceForge patch #101246.
* add isalpha and isalnum methodsJeremy Hylton2000-07-101-0/+2
|
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-1/+1
| | | | | | The maxsplit functionality in .splitlines() was replaced by the keepends functionality which allows keeping the line end markers together with the string.
* UserString class from Peter Funk <pf@artcom-gmbh.de>.Fred Drake2000-04-031-0/+158