Three Minor Feature Requests for 2.2
Paul Prescod
paulp at ActiveState.com
Tue May 8 19:07:50 EDT 2001
Raymond Hettinger wrote:
>
> 1. Add an optional argument to reduce() to control whether the results are
> accumulated left to right or right to left.
Why not use the reverse method?
> 2. Amend the syntax for class definitions to optionally accept an empty
> argument
> list for superclasses. This comes up when adding and then later removing
> mix-ins.
>
> class C(): # should work as well as class C:
I've wanted this for years but the argument in favor is so weak that I
don't think Guido would go for it. "I'm too lazy to remove the useless
parens."
> 3. Alter extend() to accept multiple sequence arguments:
>
> a = [1,2,3]
> a.extend( [4,5,6], [7,8,9] )
map(a.extend, [list1, list2])
--
Take a recipe. Leave a recipe.
Python Cookbook! http://www.ActiveState.com/pythoncookbook
More information about the Python-list
mailing list