Changes between Initial Version and Version 1 of Ticket #1115, comment 16
- Timestamp:
- 2012-04-01T23:39:26Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1115, comment 16
initial v1 1 1 Good catch. I fixed the problem by adding an initial argument to reduce: 2 2 3 {{{ len(reduce(set.union, sm.itervalues() ) }}}3 {{{ len(reduce(set.union, sm.itervalues(), set()) }}} 4 4 5 5 I modified the unit test to cover this as well.