diff options
author | Guido van Rossum <guido@python.org> | 1992-12-14 16:59:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-12-14 16:59:51 (GMT) |
commit | 5f59d6018e1b49c3bc581a0f69aa2bb1c88ae52b (patch) | |
tree | 08018b39686e5a4d0d045916b1677b254cde9451 /Python/ceval.c | |
parent | 8de83e041cff919ebf7150c5c9a5e0e00e7d9dbe (diff) | |
download | cpython-5f59d6018e1b49c3bc581a0f69aa2bb1c88ae52b.zip cpython-5f59d6018e1b49c3bc581a0f69aa2bb1c88ae52b.tar.gz cpython-5f59d6018e1b49c3bc581a0f69aa2bb1c88ae52b.tar.bz2 |
* mymalloc.h: always allocate one extra byte, since some malloc's
return NULL for malloc(0) or realloc(p, 0). (This should be done
differently than wasting one byte, but alas...)
* Moved "add'l libraries" option in Makefile to an earlier place.
* Remove argument compatibility hacks (b) and (c).
* Add grey2mono, dither2mono and mono2grey to imageop.
* Dup the fd in socket.fromfd().
* Added new modules mpz, md5 (by JH, requiring GNU MP 1.2). Affects
Makefile and config.c.
* socketmodule.c: added socket.fromfd(fd, family, type, [proto]),
converted socket() to use of getargs().
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 86ee6cf..e548763 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -790,6 +790,8 @@ eval_code(co, globals, locals, arg) (a) f(a,b,...) should accept f((1,2,...)) (b) f((a,b,...)) should accept f(1,2,...) (c) f(self,(a,b,...)) should accept f(x,1,2,...) + Actually, (c) is dangerous, and (b) seems + unnecessary, but (a) can't be missed... */ { int n; @@ -817,6 +819,7 @@ eval_code(co, globals, locals, arg) n = gettuplesize(v); } } +#if 0 /* Compatibility hacks no longer needed (I think) */ else if (n != 1 && oparg == 1) { /* Rule (b) */ PUSH(v); @@ -848,6 +851,7 @@ eval_code(co, globals, locals, arg) v = u; n = 2; } +#endif /* Disabled compatibility hacks */ if (n != oparg) { err_setstr(TypeError, "arg count mismatch"); |