History log of /external/python/cpython2/Lib/stringold.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
74bbc79d10862727c9126f4f8d8868c021a389e4 18-Jul-2008 Georg Brandl <georg@python.org> Replace all map(None, a) with list(a).
/external/python/cpython2/Lib/stringold.py
6071cc8fb027d4b7163742d578a1b8666afe1d1c 08-May-2008 Brett Cannon <bcannon@gmail.com> Deprecate stringold for removal in 3.0.
/external/python/cpython2/Lib/stringold.py
57aef9cb29c894497110f38949b8efb593a5c0c2 07-Dec-2004 Raymond Hettinger <python@rcn.com> Remove outdated references to the regsub module.
/external/python/cpython2/Lib/stringold.py
70a6b49821a3226f55e9716f32d802d06640cb89 12-Feb-2004 Walter Dörwald <walter@livinglogic.de> Replace backticks with repr() or "%r"

From SF patch #852334.
/external/python/cpython2/Lib/stringold.py
6b6b39e8b634c8ed7256a1b0702ab26cfc3724e5 09-Feb-2001 Tim Peters <tim.peters@gmail.com> Nuke accurate but confusing and unhelpful comments about split vs splitfields.
/external/python/cpython2/Lib/stringold.py
e37340edf21f207659d1b2dcccf354c1bd46d4b0 09-Feb-2001 Eric S. Raymond <esr@thyrsus.com> String method conversion.
/external/python/cpython2/Lib/stringold.py
7e47402264cf87b9bbb61fc9ff610af08add7c7b 16-Jul-2000 Thomas Wouters <thomas@python.org> Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
/external/python/cpython2/Lib/stringold.py
13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3 10-Feb-2000 Fred Drake <fdrake@acm.org> Untabify to pass the -tt test.
/external/python/cpython2/Lib/stringold.py
226ae6ca122f814dabdc40178c7b9656caf729c2 12-Oct-1999 Barry Warsaw <barry@python.org> Mainlining the string_methods branch. See branch revision log
messages for specific changes.
/external/python/cpython2/Lib/stringold.py
9a34523e19a7241e4b14151ca96243234af650e4 20-Apr-1998 Guido van Rossum <guido@python.org> As Tim Peters points out, ``from string import *'' should not set re to None.
Also rename safe_env to _safe_env.
/external/python/cpython2/Lib/stringold.py
a6bb6be95f4a04fdf7a09fcc92432273877af049 30-Mar-1998 Guido van Rossum <guido@python.org> Strip argument to atol and atof to match what strop does better.
/external/python/cpython2/Lib/stringold.py
8ca842066c947179892d50bf17b57943e7e5cd6b 26-Mar-1998 Guido van Rossum <guido@python.org> A few lines were indented using spaces instead of tabs -- fix them.
/external/python/cpython2/Lib/stringold.py
23e21e7cf32aa117ebe9938c50c5a448e3000cb2 29-Dec-1997 Guido van Rossum <guido@python.org> Minor editing corrections.
/external/python/cpython2/Lib/stringold.py
2003204ba71ab3cac54015ef9fc6171f4e825953 29-Dec-1997 Guido van Rossum <guido@python.org> Added doc string, provided by Charles Waldman (with some reformatting
and a little editing my me).
/external/python/cpython2/Lib/stringold.py
d0753e20b256057a6320e95e43974f053f4123f1 10-Dec-1997 Guido van Rossum <guido@python.org> At Barry's suggestion, plug the security leak by using an empty
__builtins__ for all calls to eval(). This still allows someone to
write string.atof("[1]*1000000") (which Jim Fulton worries about) but
effectively disables access to system modules and functions.
/external/python/cpython2/Lib/stringold.py
90d62ab0a175b8f3451ee74f29d5de83650e2292 10-Dec-1997 Guido van Rossum <guido@python.org> Since this module is used as a fallback in case no built-in modules
have been configured, string.atof() should not fail when "import re"
fails (usually because pcre is not there).

This opens up a tiny security hole: *if* an attacker can make "import
re" fail, they can also make string.atof(arbitrary_string) evaluate
the arbitrary string. Nothing to keep me awake at night...
/external/python/cpython2/Lib/stringold.py
06ba34c5d47751f9a5ae8e16bf1a7cf12c871609 01-Dec-1997 Guido van Rossum <guido@python.org> In string.split(), honor maxsplit (if > 0).

In string.splitfields(), ignore maxsplit if <= 0, rather than ignoring
maxsplit=0 but effectively treating negative numbers the same as
maxsplit=1. Also made the test for maxsplit slightly more efficient
(set it to the length of the string when <= 0 so the test for its
presence can be omitted from the loop).
/external/python/cpython2/Lib/stringold.py
9694fcab5332f27dc28b195ba1391e5491d2eaef 22-Oct-1997 Guido van Rossum <guido@python.org> Convert all remaining *simple* cases of regex usage to re usage.
/external/python/cpython2/Lib/stringold.py
1510565cb5efb22604bd81696ebc12ad5781017e 21-Oct-1997 Guido van Rossum <guido@python.org> Add optional 4th argument to count(), matching find() etc.
Also change all occurrences of "x == None" to "x is None" (not that it
matters much, these functions are all reimplemented in strop -- but
count() is not).
/external/python/cpython2/Lib/stringold.py
21aa0ef35123da20d80a96b8d0237187269a77d0 02-Apr-1997 Guido van Rossum <guido@python.org> Changed my mind on replace().
It's now replace(str, old, new, maxsplit=0).
Note new ordering of parameters (string first);
this is more consistent with translate().
/external/python/cpython2/Lib/stringold.py
1eb9a81eb92dd5d133c8584bad8aecd5b8f0ccd1 25-Mar-1997 Guido van Rossum <guido@python.org> Added new functions replace() and replace1().
/external/python/cpython2/Lib/stringold.py
7b7c5786161d9d443d13f56276620519587a2624 14-Mar-1997 Guido van Rossum <guido@python.org> Add optional 4th argument to [r]find and [r]index (end of slice).
/external/python/cpython2/Lib/stringold.py
f480c674b1462db277f997dcdc120006a79cdcb2 26-Aug-1996 Guido van Rossum <guido@python.org> Use correct separator for capwords(s, sep).
/external/python/cpython2/Lib/stringold.py
34f173110fbe9f765c43f38b5a5731b5539eb295 20-Aug-1996 Guido van Rossum <guido@python.org> Add optional separator character to capwords(), for completeness.
/external/python/cpython2/Lib/stringold.py
306a8a633800f2f37d054fbf48a3e0628faf3073 08-Aug-1996 Guido van Rossum <guido@python.org> Add optional third parameter to split() and splitfields(), giving the
maximum number of delimiters to parse; e.g.
splitfields("a,b,c,d", ",", 2) -> ["a", "b", "c,d"].
/external/python/cpython2/Lib/stringold.py
ed7253ca507ab2755400b3aab612e18efc7249e2 23-Jul-1996 Guido van Rossum <guido@python.org> Added 3rd optional argument to translate(), a string of characters to delete.
Added maketrans(), a utility to create a translation table.
/external/python/cpython2/Lib/stringold.py
8775d8b9dc0e3a199b1da57ed481a417f047e1cf 11-Jun-1996 Guido van Rossum <guido@python.org> Added capitalize() and capwords().
/external/python/cpython2/Lib/stringold.py
2539528810e844c9ee293bb46b4deb58a9e38447 29-May-1996 Guido van Rossum <guido@python.org> add translate() -- which was in strop per release 1.3
/external/python/cpython2/Lib/stringold.py
894a7bb9955233293b263897e52fa401240c030d 10-Aug-1995 Guido van Rossum <guido@python.org> default tabsize to 8
/external/python/cpython2/Lib/stringold.py
2ab19920fc0ba6a0054aa4556bef94199aa432fc 22-Jun-1995 Guido van Rossum <guido@python.org> make split and splitfields, join and joinfields synonyms
/external/python/cpython2/Lib/stringold.py
8c1688e132c42db3ffa39faa7920be8f131cd74e 14-Mar-1995 Guido van Rossum <guido@python.org> add dummy base to atoi/atol; careful about negative start indices in find/count
/external/python/cpython2/Lib/stringold.py
710c352d058856830e7c003bce7cccd4c10024ea 17-Aug-1994 Guido van Rossum <guido@python.org> * Lib/string.py: find/rfind is now the main implementation and
index/rindex is a wrapper that raises index_error (which is now
always ValueError)
/external/python/cpython2/Lib/stringold.py
b6775db241f5fe5e3dc2ca09fc6c9e6164d4b2af 01-Aug-1994 Guido van Rossum <guido@python.org> Merge alpha100 branch back to main trunk
/external/python/cpython2/Lib/stringold.py
e65cce5eec23812d77a54095209c923937cc3c92 08-Nov-1993 Guido van Rossum <guido@python.org> * string.py: added rindex(), rfind(); changed index() to interpret
negative start indices starting from the right.
* ftplib.py: debug() -> set_debuglevel(); change demo to use __init__().
* os.py: added execl, execlp, and execvp.
* lambda.py: removed (now that we have built-in map, reduce, bagof, lambda)
* test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce
* commands.py: use os, not posix
* test_grammar.py: make it easy to disable non-portable int overflow tests
* dis.py: don't abuse range()
/external/python/cpython2/Lib/stringold.py
e61fa0a1e4c6598f286f54772c7e065c49dc17ba 22-Oct-1993 Guido van Rossum <guido@python.org> * profile.py, pdb.py: added help() function
* builtin.py: b/w compat for builtin -> __builtin__ name change
* string.py: added atof() and atol() and corresponding exceptions
* test_types.py: added test for list sort with user comparison function
/external/python/cpython2/Lib/stringold.py
8e2ec56cbc74578a1e700dc237368e26bde07427 29-Jul-1993 Guido van Rossum <guido@python.org> * pdb.py: set 'privileged' property when evaluating expressions
* string.py: change whitespace to include \r, \v and \f.
When importing strop succeeds, re-evaluate meaning of letters.
/external/python/cpython2/Lib/stringold.py
d316607732aa70361d5793f6b301b70fab7ca367 24-May-1993 Guido van Rossum <guido@python.org> * ftplib.py: added abort() command (sends oob data).
* Several modules: change "class C(): ..." to "class C: ...".
* flp.py: support for frozen forms.
* Added string.find() which is like index but returns -1 if not found
/external/python/cpython2/Lib/stringold.py
e7113b6b3dd99b4d05fc81c18e1c2a94fa8e1ebb 29-Mar-1993 Guido van Rossum <guido@python.org> * Fix bug in tzparse.py for DST timezone
* Added whatis command to pdb.py
* new module GET.py (GL definitions from <gl/get.h>)
* rect.py: is_empty takes a rect as argument, not two points.
* Added tests for builtin round() [XXX not yet complete!]
/external/python/cpython2/Lib/stringold.py
18fc5696c8be30b56485a20dc48f7f683b472f79 26-Nov-1992 Guido van Rossum <guido@python.org> * mainloop.py: added facility for calling select(). Also added
embryonic facility for pseudo-modal dialogs.
* stdwinevents.py: added modifier masks for key/mouse events
* renamed exceptions in nntplib.py
* Changed string.join() to call string.joinfields() to profit of
strop.joinfields()
/external/python/cpython2/Lib/stringold.py
c629d34c4f1797b690a6c93ea3e2a5b82698b686 05-Nov-1992 Guido van Rossum <guido@python.org> * change default line numbers for 'list' in pdb.py
* changed eval() into getattr() in cmd.py
* added dirname(), basename() and (dummy) normath() to macpath.py
* renamed nntp.py to nntplib.py
* Made string.index() compatible with strop.index()
* Make string.atoi('') raise string.atoi_error rather than ValueError
* Added dirname() and normpath() to posixpath.
/external/python/cpython2/Lib/stringold.py
2db91358def94cf8081f27b736988320d14eba39 18-Oct-1992 Guido van Rossum <guido@python.org> Misc changes and new modules. whrandom is "objectified". SOCKET.py
is moved to the sgi subdirectory.
/external/python/cpython2/Lib/stringold.py
7a461e5aaf011243d9ac2658e4172e316b031eb9 20-Sep-1992 Guido van Rossum <guido@python.org> New module regsub contains sub(), gsub() and split() as in nawk.
string.splitfields(s, '') now returns [s] as split() in nawk.
Added _exit to exported functions of os.
/external/python/cpython2/Lib/stringold.py
ae507a42a0425f2397a5f7b3163dc0c1d6d0aaef 19-Aug-1992 Guido van Rossum <guido@python.org> splitfields(s, '') is illegal
/external/python/cpython2/Lib/stringold.py
2d4aa4f5d43842bc049752ab8d5ffa3d2880cbe6 07-Aug-1992 Guido van Rossum <guido@python.org> Removed *.libs (now in ./sgi);
added gettext() method to TextEdit.py;
fixed string.atoi() to ignore leading zeros.
/external/python/cpython2/Lib/stringold.py
6ff2e90c518113433b3ecf34b8c17d434079a414 27-Mar-1992 Guido van Rossum <guido@python.org> Add function to expand tabs.
/external/python/cpython2/Lib/stringold.py
a61ff7b1602d0f94340244bf4504d9eb0faf4ac7 14-Jan-1992 Guido van Rossum <guido@python.org> New implementation method for case conversion.
/external/python/cpython2/Lib/stringold.py
bdfcfccbe591e15221f35add01132174c9b4e669 01-Jan-1992 Guido van Rossum <guido@python.org> New == syntax
/external/python/cpython2/Lib/stringold.py
333c2e02d04b2c15b739366c4cc93376dbcdce38 16-Aug-1991 Guido van Rossum <guido@python.org> A plus is also a sign!
/external/python/cpython2/Lib/stringold.py
fac38b7c40caac93f119e3af90ced0edd3d963dc 07-Apr-1991 Guido van Rossum <guido@python.org> Added join() and joinfields() functions.
Fixed center().
Rewrote ljust() and rjust().
/external/python/cpython2/Lib/stringold.py
66a07c07a5b7b1ce7150d5c5c1a0998d062e452e 26-Dec-1990 Guido van Rossum <guido@python.org> Fix bugf in index -- last char would not be checked.
/external/python/cpython2/Lib/stringold.py
c636014c430620325f8d213e9ba10d925991b8d7 13-Oct-1990 Guido van Rossum <guido@python.org> Initial revision
/external/python/cpython2/Lib/stringold.py