40fd0e8d68352f9d28be2a6ad1d6d0ba93756dbf |
|
24-Mar-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #23671: string.Template now allows to specify the "self" parameter as keyword argument. string.Formatter now allows to specify the "self" and the "format_string" parameters as keyword arguments.
/external/python/cpython2/Lib/string.py
|
ff05e522375d1b8e06bda9a5727cc890e94c5d90 |
|
19-Sep-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Issue #1686: Fix string.Template when overriding the pattern attribute.
/external/python/cpython2/Lib/string.py
|
d928b6a96516f611583310fd41c6c905562acd2c |
|
19-Aug-2012 |
R David Murray <rdmurray@bitdance.com> |
#13579: minimize code base drift for 'a' string.Formatter change. 2.7 doesn't support 'a'. This changeset ports the doc change and clause-reording portions of Francisco Martín Brugué patch in order to minimize code base drift.
/external/python/cpython2/Lib/string.py
|
9b90cd1f7b7fa658a48389ca599cd6ffde922e34 |
|
13-Sep-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Merged revisions 84470-84471,84566-84567,84759 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84470 | florent.xicluna | 2010-09-03 22:00:37 +0200 (ven., 03 sept. 2010) | 1 line Strengthen BytesWarning tests. ........ r84471 | florent.xicluna | 2010-09-03 22:23:40 +0200 (ven., 03 sept. 2010) | 1 line Typo ........ r84566 | florent.xicluna | 2010-09-06 22:27:15 +0200 (lun., 06 sept. 2010) | 1 line typo ........ r84567 | florent.xicluna | 2010-09-06 22:27:55 +0200 (lun., 06 sept. 2010) | 1 line typo ........ r84759 | florent.xicluna | 2010-09-13 04:28:18 +0200 (lun., 13 sept. 2010) | 1 line Reenable test_ucs4 and remove some duplicated lines. ........
/external/python/cpython2/Lib/string.py
|
a240cb1f2d7a85c3f12e95780361a02765a800f0 |
|
08-Sep-2010 |
Senthil Kumaran <orsenthil@gmail.com> |
Issue5416 - Revert a documentatin change made to explain replace on negative value. Minor changes to doc: s/maxsplit/maxreplace
/external/python/cpython2/Lib/string.py
|
c0548c9d901fbf60f4e21056f1ecfa81149d923a |
|
09-Aug-2010 |
Senthil Kumaran <orsenthil@gmail.com> |
Fix Issue5416 - explain negative value of maxplit in str.replace.
/external/python/cpython2/Lib/string.py
|
9aac2455ab9b47033b8b0807e28a3d8b4a9d9d37 |
|
26-Sep-2009 |
Ezio Melotti <ezio.melotti@gmail.com> |
#7000: document "sep" in capwords. Add a few tests
/external/python/cpython2/Lib/string.py
|
b7c95ce8b82c1cfce684edfca73aca4e7ae61940 |
|
09-Nov-2008 |
Benjamin Peterson <benjamin@python.org> |
fix comment
/external/python/cpython2/Lib/string.py
|
74bbc79d10862727c9126f4f8d8868c021a389e4 |
|
18-Jul-2008 |
Georg Brandl <georg@python.org> |
Replace all map(None, a) with list(a).
/external/python/cpython2/Lib/string.py
|
a9f7d6248032c9572b4d2024a1be8bd2823af09f |
|
17-Feb-2008 |
Eric Smith <eric@trueblade.com> |
Backport of PEP 3101, Advanced String Formatting, from py3k. 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).
/external/python/cpython2/Lib/string.py
|
4db5fe970c695c373c59ac7152eb07b07249b0b5 |
|
12-Apr-2007 |
Raymond Hettinger <python@rcn.com> |
SF 1193128: Let str.translate(None) be an identity transformation
/external/python/cpython2/Lib/string.py
|
f102e24bd34442026f4200a298a8b08d1deb3616 |
|
23-Mar-2007 |
Guido van Rossum <guido@python.org> |
Add a type.__init__() method that enforces the same signature as 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__().
/external/python/cpython2/Lib/string.py
|
143b5640593528a074cc8b9bff8607c829f58b6a |
|
23-Mar-2007 |
Guido van Rossum <guido@python.org> |
- Bug #1683368: The object.__init__() and object.__new__() methods are 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?
/external/python/cpython2/Lib/string.py
|
d76bd69712e04d496e88f878f13876ce9c1765b0 |
|
15-Aug-2006 |
Georg Brandl <georg@python.org> |
Cookie.py shouldn't "bogusly" use string._idmap.
/external/python/cpython2/Lib/string.py
|
add191118fd583107e900c264f6e7aa1e786a387 |
|
05-Jul-2006 |
Thomas Wouters <thomas@python.org> |
Fix bug in passing tuples to string.Template. All other values (with working 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: >>> string.Template("$foo").substitute(dict(foo=(1,))) '(1,)' versus '1'
/external/python/cpython2/Lib/string.py
|
57aef9cb29c894497110f38949b8efb593a5c0c2 |
|
07-Dec-2004 |
Raymond Hettinger <python@rcn.com> |
Remove outdated references to the regsub module.
/external/python/cpython2/Lib/string.py
|
8c72eae2378fde4e473feadd4c7139d9ec9cb8e3 |
|
01-Nov-2004 |
Barry Warsaw <barry@python.org> |
SF patch #1056967, changes the semantics of Template.safe_substitute() to not raise a ValueError for dangling delimiters (the delimiter itself is returned).
/external/python/cpython2/Lib/string.py
|
6627a9670541f33ae55f6ba8df6b6ce7264c3f34 |
|
17-Oct-2004 |
Neal Norwitz <nnorwitz@gmail.com> |
Invalid patterns to substitute and safe_substitute would crash since pattern is not a local variable. Add a test case.
/external/python/cpython2/Lib/string.py
|
55593c3ef530ea01b1cfb1f7c81ee34fd994d0ef |
|
26-Sep-2004 |
Raymond Hettinger <python@rcn.com> |
Make the regex pattern easier to read, understand, and modify by factoring out the common prefix (the delimiter).
/external/python/cpython2/Lib/string.py
|
17cb60083c53b464a329f1a660a922db677389dd |
|
18-Sep-2004 |
Barry Warsaw <barry@python.org> |
At the cost of a modest (but useful in its own right) change in the semantics of the Template.delimiter attribute, we make use of the delimiter in the escaped group, and in the safe_substitute() method more robust. Now, .delimiter should be the unescaped delimiter literal, e.g. '$' or '&', or whatever. The _TemplateMetaclass will re.escape() this value when it builds the pattern.
/external/python/cpython2/Lib/string.py
|
c74298a72b16d2ecca144df014014796f025ea08 |
|
16-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/string.py
|
065a32f5508152a4d9781e611185c48ab46ed108 |
|
14-Sep-2004 |
Walter Dörwald <walter@livinglogic.de> |
Make the hint about the None default less ambiguous.
/external/python/cpython2/Lib/string.py
|
782afc5927c5d37c3de1a082b6363a79e4bd5962 |
|
14-Sep-2004 |
Walter Dörwald <walter@livinglogic.de> |
Enhance the docstrings for unicode.split() and string.split() to make it clear that it is possible to pass None as the separator argument to get the default "any whitespace" separator.
/external/python/cpython2/Lib/string.py
|
6d191113a6c24c5a5c1cd8ade63f5a8f7027b1f4 |
|
14-Sep-2004 |
Raymond Hettinger <python@rcn.com> |
Fix small bugs in Template code. * The parameterization of "delimiter" was incomplete. * safe_substitute's code for braced delimiters should only be executed when braced is not None. * Invalid pattern group names now raise a ValueError. Formerly, the convert code would fall off the end and improperly return None. Beefed-up tests. * Test delimiter override for all paths in substitute and safe_substitute. * Alter unittest invocation to match other modules (now it itemizes the tests as they are run).
/external/python/cpython2/Lib/string.py
|
b5c6b5bfe8207a4706b4d37352117ba7f4064a98 |
|
13-Sep-2004 |
Barry Warsaw <barry@python.org> |
Raymond's good suggestion to re-order the tests in the convert() helper so the most common paths are tested first. Also, that 'invalid' is better than 'bogus'.
/external/python/cpython2/Lib/string.py
|
b6234a95c1b8c56563025883aac92b683e8a99bf |
|
13-Sep-2004 |
Barry Warsaw <barry@python.org> |
substitute(), safe_substitute(): Paul Moore provides a better hack for dealing with positional arguments.
/external/python/cpython2/Lib/string.py
|
46b629c10164e89799a265f9a11b99c39efaee51 |
|
13-Sep-2004 |
Barry Warsaw <barry@python.org> |
Accepted Raymond's patch to combine mapping and keyword arguments, with slight modification. Also, renamed the positional argument to '__mapping' to further reduce the chance of duplicate keyword arguments.
/external/python/cpython2/Lib/string.py
|
f43e8bd7b4c84229fdd4a63650495fe4b9d55f16 |
|
10-Sep-2004 |
Barry Warsaw <barry@python.org> |
Template: remove __slots__ since that interferes with the ability to mix in Template and unicode classes.
/external/python/cpython2/Lib/string.py
|
1f7d6a633f2031053661da9b728380200d1486be |
|
10-Sep-2004 |
Raymond Hettinger <python@rcn.com> |
__slots__ went missing from Template.
/external/python/cpython2/Lib/string.py
|
12827c1fa9e6c87248fa1e5e4341066e41ce4ffb |
|
10-Sep-2004 |
Barry Warsaw <barry@python.org> |
Many updates to PEP 292 templates. Summary: - Template no longer inherits from unicode. - SafeTemplate is removed. Now Templates have both a substitute() and a safe_substitute() method, so we don't need separate classes. No more __mod__() operator. - Adopt Tim Peter's idea for giving Template a metaclass, which makes the delimiter, the identifier pattern, or the entire pattern easy to override and document, while retaining efficiency of class-time compilation of the regexp. - More informative ValueError messages which will help a user narrow down the bogus delimiter to the line and column in the original string (helpful for long triple quoted strings).
/external/python/cpython2/Lib/string.py
|
0d58e2be0b81c12b0056d458a0480dc525af1abb |
|
26-Aug-2004 |
Raymond Hettinger <python@rcn.com> |
Minor improvements to the template code. * Add comment bars segregating this code from the rest. * Improve readability of the re pattern with indentation and comments on the same line. * Replace the groupdict() and get() pair with a direct call to group() which does the same thing.
/external/python/cpython2/Lib/string.py
|
8bee76106e8da9fd6011432d2f60861a94c623db |
|
25-Aug-2004 |
Barry Warsaw <barry@python.org> |
PEP 292 classes Template and SafeTemplate are added to the string module. This patch includes test cases and documentation updates, as well as NEWS file updates. This patch also updates the sre modules so that they don't import the string module, breaking direct circular imports.
/external/python/cpython2/Lib/string.py
|
3ae811b57d227a220f207869487fd9251e278608 |
|
15-Dec-2003 |
Hye-Shik Chang <hyeshik@gmail.com> |
Add rsplit method for str and unicode builtin types. SF feature request #801847. Original patch is written by Sean Reifschneider.
/external/python/cpython2/Lib/string.py
|
4f8f9765766a126ebfff3c81655454821f1ad532 |
|
26-Nov-2003 |
Raymond Hettinger <python@rcn.com> |
Add optional fillchar argument to ljust(), rjust(), and center() string methods.
/external/python/cpython2/Lib/string.py
|
0b87444b1b49df59da4f65650841a85d582a84bb |
|
03-Oct-2003 |
Skip Montanaro <skip@pobox.com> |
tweak the docstring to not be so focused on 1.6.
/external/python/cpython2/Lib/string.py
|
ffe33b7f2416132d2e5b64683dbcc2aaf0596937 |
|
11-Apr-2003 |
Neal Norwitz <nnorwitz@gmail.com> |
Attempt to make all the various string *strip methods the same. * 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.
/external/python/cpython2/Lib/string.py
|
a4864a24646185b336988196c650a85601a5e04a |
|
14-Nov-2002 |
Neal Norwitz <nnorwitz@gmail.com> |
Update the docstring to match the code. Will backport.
/external/python/cpython2/Lib/string.py
|
1f04610b497c733189212386152219040e18dacb |
|
08-Nov-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Make strip behave as documented. Will backport to 2.2.3.
/external/python/cpython2/Lib/string.py
|
5357c6511dcac17e1c80dbdeaea6c1016f44f4e5 |
|
14-Oct-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Convert empty string literal to string. Speed up creation of idmap.
/external/python/cpython2/Lib/string.py
|
65230a2de758fbde57b3893c402436ae0202ada3 |
|
03-Jun-2002 |
Walter Dörwald <walter@livinglogic.de> |
Remove uses of the string and types modules: x in string.whitespace => x.isspace() type(x) in types.StringTypes => isinstance(x, basestring) isinstance(x, types.StringTypes) => isinstance(x, basestring) type(x) is types.StringType => isinstance(x, str) type(x) == types.StringType => isinstance(x, str) string.split(x, ...) => x.split(...) string.join(x, y) => y.join(x) string.zfill(x, ...) => x.zfill(...) string.count(x, ...) => x.count(...) hasattr(types, "UnicodeType") => try: unicode except NameError: type(x) != types.TupleTuple => not isinstance(x, tuple) isinstance(x, types.TupleType) => isinstance(x, tuple) type(x) is types.IntType => 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.)
/external/python/cpython2/Lib/string.py
|
068325ef926538a30d7feb13f9b14a6163e24b6e |
|
15-Apr-2002 |
Walter Dörwald <walter@livinglogic.de> |
Apply the second version of SF patch http://www.python.org/sf/536241 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)
/external/python/cpython2/Lib/string.py
|
102d1208a8dcf9a502a8720fe5642ee33520d84f |
|
29-Mar-2002 |
Andrew M. Kuchling <amk@amk.ca> |
[Bug #536241] string.zfill() produces mangled output for a Unicode string. 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()->str() change is deemed OK.
/external/python/cpython2/Lib/string.py
|
1453754fcda8d9f48e484ce39e80ef5b27aada99 |
|
30-Jan-2002 |
Fred Drake <fdrake@acm.org> |
string.split() docstring described the interpretation of the maxsplit argument incorrectly. This closes SF bug #505997.
/external/python/cpython2/Lib/string.py
|
960fdf9ac3a15eceebd8dd6882bedaae787fa5fb |
|
20-Jul-2001 |
Fred Drake <fdrake@acm.org> |
Added the constants ascii_letters, ascii_lowercase, and ascii_uppercase to the string module. This was determined to be the right approach in SF bug #226706.
/external/python/cpython2/Lib/string.py
|
78349072f7c8f2d3da6f552665f9f381930c3c42 |
|
18-Feb-2001 |
Skip Montanaro <skip@pobox.com> |
removed __all__ from several modules
/external/python/cpython2/Lib/string.py
|
0de65807e6bdc5254f5a7e99b2f39adeea6b883b |
|
15-Feb-2001 |
Skip Montanaro <skip@pobox.com> |
bunch more __all__ lists also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
/external/python/cpython2/Lib/string.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/string.py
|
e37340edf21f207659d1b2dcccf354c1bd46d4b0 |
|
09-Feb-2001 |
Eric S. Raymond <esr@thyrsus.com> |
String method conversion.
/external/python/cpython2/Lib/string.py
|
495ad3c8ccb9ed3554177a3e8687676c78e667de |
|
15-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/string.py
|
5aff7752eb28c6ddaa68738ee77e1947b72e1a58 |
|
19-Dec-2000 |
Guido van Rossum <guido@python.org> |
Make string.translate(s, table) work for Unicode s. Two things are required to work around restrictions on the arguments of u.translate(): 1) don't pass the deletions argument if it's empty; 2) convert table to Unicode if s is Unicode. This fixes SF bug #124060.
/external/python/cpython2/Lib/string.py
|
fd64c5908fd3a4d6f36f30a8304147245f82cd7b |
|
18-Sep-2000 |
Fred Drake <fdrake@acm.org> |
Fix serious typo! Add the new constants to the module docstring.
/external/python/cpython2/Lib/string.py
|
6b2320fa6bd5190dc72b388de5d5b34aa32b0aec |
|
18-Sep-2000 |
Fred Drake <fdrake@acm.org> |
Richard Mortier <rmm1002@users.sourceforge.net>: Add the constants "printable" and "punctuation" to the string module.
/external/python/cpython2/Lib/string.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/string.py
|
046d27215fd0037f40cc90b85a66f76ff424347e |
|
03-Jul-2000 |
Fred Drake <fdrake@acm.org> |
Martin von Löwis <martin@loewis.home.cs.tu-berlin.de>: This patch delegates more string functions to string object methods, uses the varargs delegation syntax, and stops using stringold. Closes SourceForge patch #100712.
/external/python/cpython2/Lib/string.py
|
9e896b37c7a554250d7d832566cc4fe7d30d034c |
|
05-Apr-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre's third try at this bulk patch seems to work (except that his copy of test_contains.py seems to be broken -- the lines he deleted were already absent). Checkin messages: New Unicode support for int(), float(), complex() and long(). - new APIs PyInt_FromUnicode() and PyLong_FromUnicode() - added support for Unicode to PyFloat_FromString() - new encoding API PyUnicode_EncodeDecimal() which converts Unicode to a decimal char* string (used in the above new APIs) - shortcuts for calls like int(<int object>) and float(<float obj>) - tests for all of the above Unicode compares and contains checks: - comparing Unicode and non-string types now works; TypeErrors are masked, all other errors such as ValueError during Unicode coercion are passed through (note that PyUnicode_Compare does not implement the masking -- PyObject_Compare does this) - contains now works for non-string types too; TypeErrors are masked and 0 returned; all other errors are passed through Better testing support for the standard codecs. Misc minor enhancements, such as an alias dbcs for the mbcs codec. Changes: - PyLong_FromString() now applies the same error checks as does PyInt_FromString(): trailing garbage is reported as error and not longer silently ignored. The only characters which may be trailing the digits are 'L' and 'l' -- these are still silently ignored. - string.ato?() now directly interface to int(), long() and float(). The error strings are now a little different, but the type still remains the same. These functions are now ready to get declared obsolete ;-) - PyNumber_Int() now also does a check for embedded NULL chars in the input string; PyNumber_Long() already did this (and still does) Followed by: Looks like I've gone a step too far there... (and test_contains.py seem to have a bug too). I've changed back to reporting all errors in PyUnicode_Contains() and added a few more test cases to test_contains.py (plus corrected the join() NameError).
/external/python/cpython2/Lib/string.py
|
8f0c5a774225adb71a02256be02a9fce0fd601a9 |
|
11-Mar-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre Lemburg: the maxsplit argument for split() and replace() now defaults to -1, not to 0. Passing an explicit zero doesn't split or replace at all.
/external/python/cpython2/Lib/string.py
|
857c4c36b962c6e74559e045c7fb43177dd5bcea |
|
10-Feb-2000 |
Fred Drake <fdrake@acm.org> |
Detabify. I ran "expand" instead of using Skip's patch, but it's all the same.
/external/python/cpython2/Lib/string.py
|
e7b146fb3bdca62a0d5ecc06dbf3348e5a4fe757 |
|
04-Feb-2000 |
Guido van Rossum <guido@python.org> |
The third and final doc-string sweep by Ka-Ping Yee. The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
/external/python/cpython2/Lib/string.py
|
e4f13660f80d1324f066b32a6b54fce7d875635c |
|
04-Nov-1999 |
Fred Drake <fdrake@acm.org> |
split() docstring: Made signature and description for the first parameter match. Error pointed out by François Pinard <pinard@iro.umontreal.ca> on c.l.py.
/external/python/cpython2/Lib/string.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/string.py
|
1b7aec35c43360ed1ec699458cc103e3223aac14 |
|
12-Oct-1999 |
Guido van Rossum <guido@python.org> |
Fix PR#31 -- zfill() mishandles empty string.
/external/python/cpython2/Lib/string.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/string.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/string.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/string.py
|
23e21e7cf32aa117ebe9938c50c5a448e3000cb2 |
|
29-Dec-1997 |
Guido van Rossum <guido@python.org> |
Minor editing corrections.
/external/python/cpython2/Lib/string.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/string.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/string.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/string.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/string.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/string.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/string.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/string.py
|
1eb9a81eb92dd5d133c8584bad8aecd5b8f0ccd1 |
|
25-Mar-1997 |
Guido van Rossum <guido@python.org> |
Added new functions replace() and replace1().
/external/python/cpython2/Lib/string.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/string.py
|
f480c674b1462db277f997dcdc120006a79cdcb2 |
|
26-Aug-1996 |
Guido van Rossum <guido@python.org> |
Use correct separator for capwords(s, sep).
/external/python/cpython2/Lib/string.py
|
34f173110fbe9f765c43f38b5a5731b5539eb295 |
|
20-Aug-1996 |
Guido van Rossum <guido@python.org> |
Add optional separator character to capwords(), for completeness.
/external/python/cpython2/Lib/string.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/string.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/string.py
|
8775d8b9dc0e3a199b1da57ed481a417f047e1cf |
|
11-Jun-1996 |
Guido van Rossum <guido@python.org> |
Added capitalize() and capwords().
/external/python/cpython2/Lib/string.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/string.py
|
894a7bb9955233293b263897e52fa401240c030d |
|
10-Aug-1995 |
Guido van Rossum <guido@python.org> |
default tabsize to 8
/external/python/cpython2/Lib/string.py
|
2ab19920fc0ba6a0054aa4556bef94199aa432fc |
|
22-Jun-1995 |
Guido van Rossum <guido@python.org> |
make split and splitfields, join and joinfields synonyms
/external/python/cpython2/Lib/string.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/string.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/string.py
|
b6775db241f5fe5e3dc2ca09fc6c9e6164d4b2af |
|
01-Aug-1994 |
Guido van Rossum <guido@python.org> |
Merge alpha100 branch back to main trunk
/external/python/cpython2/Lib/string.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/string.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/string.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/string.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/string.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/string.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/string.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/string.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/string.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/string.py
|
ae507a42a0425f2397a5f7b3163dc0c1d6d0aaef |
|
19-Aug-1992 |
Guido van Rossum <guido@python.org> |
splitfields(s, '') is illegal
/external/python/cpython2/Lib/string.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/string.py
|
6ff2e90c518113433b3ecf34b8c17d434079a414 |
|
27-Mar-1992 |
Guido van Rossum <guido@python.org> |
Add function to expand tabs.
/external/python/cpython2/Lib/string.py
|
a61ff7b1602d0f94340244bf4504d9eb0faf4ac7 |
|
14-Jan-1992 |
Guido van Rossum <guido@python.org> |
New implementation method for case conversion.
/external/python/cpython2/Lib/string.py
|
bdfcfccbe591e15221f35add01132174c9b4e669 |
|
01-Jan-1992 |
Guido van Rossum <guido@python.org> |
New == syntax
/external/python/cpython2/Lib/string.py
|
333c2e02d04b2c15b739366c4cc93376dbcdce38 |
|
16-Aug-1991 |
Guido van Rossum <guido@python.org> |
A plus is also a sign!
/external/python/cpython2/Lib/string.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/string.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/string.py
|
c636014c430620325f8d213e9ba10d925991b8d7 |
|
13-Oct-1990 |
Guido van Rossum <guido@python.org> |
Initial revision
/external/python/cpython2/Lib/string.py
|