Guido van Rossum
0d6b49eff2
Protect PyErr_Format format string argument from overflow (ironically,
the error was about a bad format string :-).
29 years ago
Guido van Rossum
7d4f68c15f
Oops -- '(' is also a legal start character of a new format...
29 years ago
Guido van Rossum
231a41e708
Add explicit check for correct next character in format at end of
format. This will complain about illegal formats like "O#" instead of
ignoring the '#'.
29 years ago
Guido van Rossum
fdf95dd525
Checkin of Jack's buffer mods.
Not really checked, but didn't fail any tests either...
29 years ago
Guido van Rossum
13454c3f9c
Fix old typo PyArgs_VaParse -> PyArg_VaParse.
(Redoing the checking without merging in Jack's buffer mods.)
29 years ago
Guido van Rossum
79f25d9a7b
Quickly renamed the remaining files -- this directory is done.
29 years ago
Guido van Rossum
6bf62dad9e
Keep gcc -Wall and Microsoft VC happy.
29 years ago
Guido van Rossum
80bb9655f0
Keep gcc -Wall happy.
30 years ago
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
30 years ago
Guido van Rossum
c1d5053882
Add needed #include <ctype.h>
30 years ago
Guido van Rossum
aa35465ccf
Support for keyword arguments (PyArg_ParseTupleAndKeywords) donated by
Geoff Philbrick <philbric@delphi.hks.com> (slightly changed by me).
Also a little change to make the file acceptable to K&R C compilers
(HPUX, SunOS 4.x).
30 years ago
Guido van Rossum
530956d247
Py_complex; and WITHOUT_COMPLEX added to getargs.c
30 years ago
Guido van Rossum
8a5c5d277e
changes for complex numbers
31 years ago
Guido van Rossum
64fc649095
don't overwrite error already set (e.g. from O&)
32 years ago
Guido van Rossum
6d023c98b0
Added 1995 to copyright message.
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
32 years ago
Guido van Rossum
1ae940a587
Lots of changes, most minor (fatal() instead of abort(), use of
err_fetch/err_restore and so on). But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
32 years ago
Guido van Rossum
13d0ed13c3
prevent core dump for old getargs() with NULL arg
32 years ago
Guido van Rossum
fe3f1a256b
* Python/{modsupport.c,getargs.c,Makefile.in},
Include/modsupport.h: moved getargs() to its own file and
re-implemented it entirely to support optional arguments, multiple
arguments without surrounding parentheses
(when called as newgetargs()), and better error messages
32 years ago