reduce() anomaly?

Jp Calderone exarkun at intarweb.us
Wed Nov 5 19:29:40 CET 2003


On Wed, Nov 05, 2003 at 12:18:26PM -0500, Stephen C. Waterbury wrote:
> This seems like it ought to work, according to the
> description of reduce(), but it doesn't.  Is this
> a bug, or am I missing something?

> [snip]

  Hey Steve,

  d.update() would have to return the dict instance, d, for reduce() to be
usable in this way.  Since it returns None, it can't be chained.

  Jp






More information about the Python-list mailing list