diff options
author | Guido van Rossum <guido@python.org> | 1993-11-03 15:01:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-11-03 15:01:26 (GMT) |
commit | e77a757094f68351f336044654cd91575c677896 (patch) | |
tree | 0c0f8f78c180d4a88c9c5ff8c26e2457b6722e28 /Python/bltinmodule.c | |
parent | 78ed420314876083b4cc1739d7dbf04e4f012c03 (diff) | |
download | cpython-e77a757094f68351f336044654cd91575c677896.zip cpython-e77a757094f68351f336044654cd91575c677896.tar.gz cpython-e77a757094f68351f336044654cd91575c677896.tar.bz2 |
* nismodule.c: database keys and values can contain null bytes. be more
careful about these.
* arraymodule.c: added 8 byte swap; added 'i' format character; added
reverse() method; rename read/write to fromfile/tofile.
* config.c: Set version to 0.9.9++.
* rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts
will have a well-defined effect independent of word size.
* bltinmodule.c: renamed bagof() to filter().
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5183069..9210bd1 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -67,7 +67,7 @@ builtin_apply(self, args) } static object * -builtin_bagof(self, args) +builtin_filter(self, args) object *self; object *args; { @@ -101,7 +101,7 @@ builtin_bagof(self, args) if ((sqf = seq->ob_type->tp_as_sequence) == NULL) { err_setstr(TypeError, - "argument 2 to bagof() must be a sequence type"); + "argument 2 to filter() must be a sequence type"); goto Fail_2; } @@ -1121,7 +1121,6 @@ builtin_type(self, v) static struct methodlist builtin_methods[] = { {"abs", builtin_abs}, {"apply", builtin_apply}, - {"bagof", builtin_bagof}, {"chr", builtin_chr}, {"cmp", builtin_cmp}, {"coerce", builtin_coerce}, @@ -1130,6 +1129,7 @@ static struct methodlist builtin_methods[] = { {"divmod", builtin_divmod}, {"eval", builtin_eval}, {"execfile", builtin_execfile}, + {"filter", builtin_filter}, {"float", builtin_float}, {"getattr", builtin_getattr}, {"hasattr", builtin_hasattr}, @@ -1271,7 +1271,7 @@ coerce(pv, pw) } -/* Helper for bagof(): filter a tuple through a function */ +/* Helper for filter(): filter a tuple through a function */ static object * filtertuple(func, tuple) @@ -1324,7 +1324,7 @@ Fail_1: } -/* Helper for bagof(): filter a string through a function */ +/* Helper for filter(): filter a string through a function */ static object * filterstring(func, strobj) |