cpython/Objects
Guido van Rossum 9e896b37c7 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).
2000-04-05 20:11:21 +00:00
..
Makefile.in Marc-AAndre Lemburg: add new unicode files 2000-03-10 22:55:40 +00:00
abstract.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
bufferobject.c PyBuffer_New(): Raise ValueError if size is negative (the other 1999-08-04 13:08:19 +00:00
classobject.c Patch by Mozhe Zadka, for __contains__ (overloading 'in'). This adds 2000-02-28 15:03:15 +00:00
cobject.c New CObject from Jim Fulton, adds PyCObject_FromVoidPtrAndDesc() and 1997-10-21 19:48:35 +00:00
complexobject.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
dictobject.c Add PyDict_Copy() function to C API for dicts. It returns a new 2000-03-30 22:27:31 +00:00
fileobject.c Checking in the new, improve file.writelines() code. 2000-03-13 16:27:06 +00:00
floatobject.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
frameobject.c Christian Tismer's "trashcan" patch: 2000-03-13 16:01:29 +00:00
funcobject.c Make function objects somewhat mutable -- the members func_code, 1998-05-22 00:55:34 +00:00
intobject.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
listobject.c Christian Tismer's "trashcan" patch: 2000-03-13 16:01:29 +00:00
longobject.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
methodobject.c The rest of the changes by Trent Mick and Dale Nagata for warning-free 2000-01-20 22:32:56 +00:00
moduleobject.c Patch by Chris Petrilli to display the origin of a module in its 1999-02-15 14:47:16 +00:00
object.c Christian Tismer: 2000-03-25 18:39:19 +00:00
rangeobject.c Use 'xrange', not 'range', in error messages. Reported by Nathan Sullivan. 1999-01-09 21:40:35 +00:00
sliceobject.c Ellipses -> Ellipsis rename (the dictionary really says that it should 1996-10-11 16:25:41 +00:00
stringobject.c On 17-Mar-2000, Marc-Andre Lemburg said: 2000-03-20 16:36:48 +00:00
tupleobject.c Christian Tismer's "trashcan" patch: 2000-03-13 16:01:29 +00:00
typeobject.c American spelling in doc string. 1997-06-02 14:43:07 +00:00
unicodectype.c Unicode character type helpers, written by Marc-Andre Lemburg. 2000-03-10 22:52:46 +00:00
unicodeobject.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
xxobject.c Correct typo (Py_MethodDef doesn't exist). Reported by Uwe Zessin. 1999-01-29 14:39:12 +00:00