[IPython-dev] pycolor: read from STDIN

Ville M. Vainio vivainio at gmail.com
Fri May 11 10:53:15 EDT 2007

On 5/11/07, Paul Mueller <gakusei at dakotacom.net> wrote:

> IPython/PyColorize.py currently doesn't support reading from STDIN when
> used from the command line. It would be useful for such things as
> coloring the output of svn cat, calling pycolor from scripts (perhaps
> not written in python) or programs, grep (sometimes), etc.
> Should I submit a patch to add this? If so, I have a question: should


> the command-line interface require a "-" in place of the filename to
> mean read from STDIN, or should it read from STDIN if "-" or no filename
> is given?
> I think the later is better, because it is easy to forget the "-":

Yeah, and it's pretty much the standard on unix.

Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'

More information about the IPython-dev mailing list