Message197313
If this is to go forward, it needs to be more interesting, useful, and general than what was has been discussed so far. I would be open to some kind of reshape() itertool than can ungroup, flatten, and regroup in at least two dimensions.
Ideally, it should be inspired by a successful general-purpose tool from another functional or data manipulation language (perhaps APL, Mathematica, Matlab, Numpy, or somesuch).
Ideally, the proposal will be accompanied by some non-trivial real-world use cases to help validate the design.
Ideally, there should be demonstrations of reshape() interacting effectively with the other itertools (i.e. a criterion for adding new Lego bricks is whether they work well with all the existing Lego bricks -- that is what makes a good Lego set). |
|
Date |
User |
Action |
Args |
2013-09-08 19:36:38 | rhettinger | set | recipients:
+ rhettinger, terry.reedy, techtonik, ezio.melotti, python-dev, serhiy.storchaka, jstasiak |
2013-09-08 19:36:38 | rhettinger | set | messageid: <1378668998.91.0.548064166447.issue17862@psf.upfronthosting.co.za> |
2013-09-08 19:36:38 | rhettinger | link | issue17862 messages |
2013-09-08 19:36:38 | rhettinger | create | |
|