Re: [frogs] Patch for Issue #830

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


On Mon, Dec 21, 2009 at 02:10:15PM -0800, Mark Polesky wrote:
> Marc Hohl wrote:
> > I found something useful here:
> > http://code.google.com/p/pymc/issues/detail?id=230
> > 
> > The program is simple but seems to work:
> 
> Why not use a sed one-liner?

Because not all OSes have sed.  And even those that *do* have sed,
have horrible inconsistent command-line options.

Over the past 10 years, lilypond has been gradually using python
more and more, and phasing out other stuff.  I think that's a
great thing, since python is easy to install, it's amazingly
flexible and powerful.

As for this specific case, it's true that sed is faster.  Running
strip-whitespace.py on all the docs might take something like 3
seconds, whereas sed would probably finish in less than 0.3
seconds.  But that's totally negligible, especially when
considered against making things harder for contributors on
windows.

Cheers,
- Graham

---
----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/