- 20 Tem, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
to the string module. This was determined to be the right approach in SF bug #226706.
-
- 18 Şub, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
-
- 15 Şub, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
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)
-
- 09 Şub, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Eric S. Raymond yazdı
-
- 15 Ock, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 19 Ara, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-
- 18 Eyl, 2000 2 kayıt (commit)
-
-
Fred Drake yazdı
Add the new constants to the module docstring.
-
Fred Drake yazdı
Add the constants "printable" and "punctuation" to the string module.
-
- 16 Tem, 2000 1 kayıt (commit)
-
-
Thomas Wouters yazdı
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 ;)
-
- 03 Tem, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
This patch delegates more string functions to string object methods, uses the varargs delegation syntax, and stops using stringold. Closes SourceForge patch #100712.
-
- 05 Nis, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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).
-
- 10 Mar, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
now defaults to -1, not to 0. Passing an explicit zero doesn't split or replace at all.
-
- 10 Şub, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
I ran "expand" instead of using Skip's patch, but it's all the same.
-
- 04 Şub, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-
- 04 Kas, 1999 1 kayıt (commit)
-
-
Fred Drake yazdı
parameter match. Error pointed out by François Pinard <pinard@iro.umontreal.ca> on c.l.py.
-
- 12 Eki, 1999 1 kayıt (commit)
-
-
Barry Warsaw yazdı
messages for specific changes.
-
- 11 Eki, 1999 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 20 Nis, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Also rename safe_env to _safe_env.
-
- 30 Mar, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 26 Mar, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 29 Ara, 1997 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
and a little editing my me).
-
- 10 Ara, 1997 2 kayıt (commit)
-
-
Guido van Rossum yazdı
__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.
-
Guido van Rossum yazdı
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...
-
- 01 Ara, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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).
-
- 22 Eki, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 20 Eki, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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).
-
- 02 Nis, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
It's now replace(str, old, new, maxsplit=0). Note new ordering of parameters (string first); this is more consistent with translate().
-
- 25 Mar, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 14 Mar, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 26 Agu, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 20 Agu, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 08 Agu, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
maximum number of delimiters to parse; e.g. splitfields("a,b,c,d", ",", 2) -> ["a", "b", "c,d"].
-
- 23 Tem, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Added maketrans(), a utility to create a translation table.
-
- 11 Haz, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 28 May, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 10 Agu, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 22 Haz, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 14 Mar, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-