[issue1043134] Add preferred extensions for MIME types

2014-04-04 Thread David Lindquist
David Lindquist added the comment: Anyone interested in picking this up, or at least commenting on the approach I suggested in the patch? Seems like an easy fix for a long-standing bug. -- ___ Python tracker rep...@bugs.python.org http

[issue1043134] Add preferred extensions for MIME types

2014-03-01 Thread David Lindquist
David Lindquist added the comment: I don't think it is unreasonable to return a well-known extension for certain mime types, text/plain being the most obvious (and most in need of repair; .ksh??). I've attached a patch based on the previous discussion. -- keywords: +patch nosy

[issue20727] Improved roundrobin itertools recipe

2014-02-25 Thread David Lindquist
David Lindquist added the comment: Thanks Gareth for your analysis. Very informative! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20727

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread David Lindquist
David Lindquist added the comment: Sure. That would be nice. :) Thanks Raymond and Larry -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20727

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread David Lindquist
David Lindquist added the comment: other benchmarks show it to be more than twice as slow Can you share the method you used to get those results? Here's what I did: $ python -m timeit --number=100 --setup=from rr_mine import roundrobin its = ['ABC', 'D', 'EF']; list(roundrobin(*its

[issue20727] Improved roundrobin itertools recipe

2014-02-21 Thread David Lindquist
New submission from David Lindquist: The roundrobin example in the Recipes section of the itertools documentation (http://docs.python.org/3/library/itertools.html#itertools-recipes) is overly complex. Here is a more straightforward implementation: def roundrobin(*iterables): roundrobin