cpython/Python
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-Andre Lemburg: add new unicode files 2000-03-10 23:04:14 +00:00
atof.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bltinmodule.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
ceval.c Thomas Heller fixes a typo in an error message. 2000-03-31 13:52:29 +00:00
codecs.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
compile.c remove reference (vestigal) to CALL_FUNCTION_STAR 2000-03-29 00:10:44 +00:00
dup2.c MPW changes 1994-08-29 10:43:12 +00:00
dynload_aix.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_beos.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_dl.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_hpux.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_mac.c Patch by Jack Jansen: 2000-02-14 17:58:25 +00:00
dynload_next.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_os2.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_shlib.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_stub.c The old platform-specific contents of importdl.c, broken down into one 1999-12-20 21:18:49 +00:00
dynload_win.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
errors.c Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError 2000-03-02 13:55:01 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozen.c Add primitive test for frozen package. 1998-04-03 21:10:36 +00:00
frozenmain.c Call PyInitFrozenExtensions() as requested by Mark Hammond (his patch). 1999-01-02 21:42:48 +00:00
getargs.c Marc-Andre Lemburg: 2000-03-28 20:29:59 +00:00
getcompiler.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getcopyright.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getcwd.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getmtime.c First part of package support. 1997-09-05 07:33:22 +00:00
getopt.c Tim Peters discovered a bug in the Python-supplied getopt(): 1999-09-13 13:45:32 +00:00
getplatform.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getversion.c Allow longer strings (up to 80 chars each) for version, build, 1999-04-22 12:03:40 +00:00
graminit.c slightly modified version of Greg Ewing's extended call syntax patch 2000-03-28 23:49:17 +00:00
hypot.c *** empty log message *** 1996-08-29 18:10:41 +00:00
import.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
importdl.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
importdl.h For Windows, need to add #include <windows.h>. 1999-12-20 22:55:03 +00:00
marshal.c Use modern PyArg_ParseTuple style, with function names. 2000-03-31 00:37:41 +00:00
memmove.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.c Change rare occurrences of #if HAVE_LONG_LONG to #ifdef. 1999-01-25 21:48:56 +00:00
mystrtoul.c Changes by Mark Hammond for Windows CE. Mostly of the form 1999-04-07 16:07:23 +00:00
pyfpe.c Restructure the file so that it is never empty. No longer needs 1998-08-25 17:48:25 +00:00
pystate.c CRITICAL PATCH! 1999-06-18 14:22:24 +00:00
pythonmain.c Allow mac user to set "command line flags" by option-starting python. 1995-07-29 13:53:59 +00:00
pythonrun.c Marc-Andre Lemburg: add calls to initialize and finalize Unicode and 2000-03-10 23:03:54 +00:00
sigcheck.c Quickly renamed the remaining files -- this directory is done. 1997-04-29 20:08:16 +00:00
strdup.c Patches by William Lewis for Nextstep descendants. 1999-01-27 17:53:11 +00:00
strerror.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strtod.c Changes by Mark Hammond for Windows CE. Mostly of the form 1999-04-07 16:07:23 +00:00
structmember.c Trivial little change: when setting a member to an object, hold the 1998-05-20 22:25:32 +00:00
sysmodule.c Use modern PyArg_ParseTuple style, with function names. 2000-03-31 00:38:29 +00:00
thread.c Changes by Mark Hammond for Windows CE. Mostly of the form 1999-04-07 16:07:23 +00:00
thread_beos.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_cthread.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_foobar.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_lwp.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_nt.h The rest of the changes by Trent Mick and Dale Nagata for warning-free 2000-01-20 22:32:56 +00:00
thread_os2.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_pthread.h Rob Riggs wrote: 1999-03-15 20:27:53 +00:00
thread_sgi.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_solaris.h While I can't really test this thoroughly, Pat Knight and the Solaris 1999-04-13 14:32:12 +00:00
thread_wince.h Win/CE thread support by Mark Hammond. 1999-04-08 13:57:06 +00:00
traceback.c Change traceback error message to "most recent call last" from 2000-03-31 00:39:23 +00:00