- 24 May, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
for 'str' and 'unicode', and can be used instead of types.StringTypes, e.g. to test whether something is "a string": isinstance(x, string) is True for Unicode and 8-bit strings. This is an abstract base class and cannot be instantiated directly.
-
- 29 Mar, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 23 Eki, 2001 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
functions.
-
- 11 Eyl, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Repaired str(i) to return a genuine string when i is an instance of a str subclass. New PyString_CheckExact() macro.
-
- 30 Agu, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 24 Agu, 2001 1 kayıt (commit)
-
-
Barry Warsaw yazdı
PyErr_Format() these new C API methods can be used instead of sprintf()'s into hardcoded char* buffers. This allows us to fix many situation where long package, module, or class names get truncated in reprs. PyString_FromFormat() is the varargs variety. PyString_FromFormatV() is the va_list variety Original PyErr_Format() code was modified to allow %p and %ld expansions. Many reprs were converted to this, checkins coming soo. Not changed: complex_repr(), float_repr(), float_print(), float_str(), int_repr(). There may be other candidates not yet converted. Closes patch #454743.
-
- 16 Haz, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Gave Python linear-time repr() implementations for dicts, lists, strings. This means, e.g., that repr(range(50000)) is no longer 50x slower than pprint.pprint() in 2.2 <wink>. I don't consider this a bugfix candidate, as it's a performance boost. Added _PyString_Join() to the internal string API. If we want that in the public API, fine, but then it requires runtime error checks instead of asserts.
-
- 24 May, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Use new _PyString_Eq in lookdict_string.
-
- 15 May, 2001 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
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.
-
- 23 Şub, 2001 1 kayıt (commit)
-
-
Barry Warsaw yazdı
release the interned string dictionary. This is useful for memory use debugging because it eliminates a huge source of noise from the reports. Only defined when INTERN_STRINGS is defined.
-
- 21 Eyl, 2000 1 kayıt (commit)
-
-
Tim Peters yazdı
Note a curious extension to the std C rules: x, X and o formatting can never produce a sign character in C, so the '+' and ' ' flags are meaningless for them. But unbounded ints *can* produce a sign character under these conversions (no fixed- width bitstring is wide enough to hold all negative values in 2's-comp form). So these flags become meaningful in Python when formatting a Python long which is too big to fit in a C long. This required shuffling around existing code, which hacked x and X conversions to death when both the '#' and '0' flags were specified: the hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or '+' flags too, since signs were always meaningless before for x and X conversions. Isomorphic shuffling was required in unicodeobject.c. Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
-
- 19 Eyl, 2000 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
which implements the automatic conversion from Unicode to a string object using the default encoding. The new API is then put to use to have eval() and exec accept Unicode objects as code parameter. This closes bugs #110924 and #113890. As side-effect, the traditional C APIs PyString_Size() and PyString_AsString() will also accept Unicode objects as parameters.
-
- 01 Eyl, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This should match the situation in the 1.6b1 tree.
-
- 09 Tem, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
-
- 06 Tem, 2000 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
match the ones in the Unicode implementation, but were extended to be able to reuse the existing Unicode codecs for string purposes too. Conversion from string to Unicode and back are done using the default encoding.
-
- 30 Haz, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
- 04 Ara, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 18 Ock, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
hash value. Interning strings (which requires hash caching) tries to ensure that only one string object with a given value exists, so equality tests are one pointer comparison. Together, these can speed the interpreter up by as much as 20%. Each costs the size of a long or pointer per string object. In addition, interned strings live until the end of times. If you are concerned about memory footprint, simply comment the #define out here (and rebuild everything!).
-
- 06 Ock, 1997 1 kayıt (commit)
-
-
Barry Warsaw yazdı
for both PyString_GET_SIZE and PyString_AS_STRING, cast first argument to a PyStringObject*
-
- 10 Ara, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 25 Eki, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 30 Tem, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 27 Şub, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 17 Ock, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 12 Ock, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
-
- 04 Ock, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
object.h: made sizes and refcnts signed ints. stringobject.h: make getstrsize() signed int. methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
-
- 18 Agu, 1994 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 01 Agu, 1994 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 22 Eki, 1993 1 kayıt (commit)
-
-
Sjoerd Mullender yazdı
cstubs: Use Matrix type instead of float[4][4].
-
- 28 Tem, 1993 1 kayıt (commit)
-
-
Guido van Rossum yazdı
* Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
-
- 16 Mar, 1993 1 kayıt (commit)
-
-
Guido van Rossum yazdı
* Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
-
- 05 Nis, 1992 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 19 Şub, 1991 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 14 Eki, 1990 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-