[Python-ideas] Make Difflib example callable as module __main__

anatoly techtonik techtonik at gmail.com
Thu Feb 23 11:56:37 CET 2012

On Wed, Feb 22, 2012 at 6:49 PM, Dan Colish <dcolish at gmail.com> wrote:
> Hey,
> I was reading over the difflib docs this morning and when I got to the
> bottom, I expected, probably due to lack of coffee, that the example
> would be callable as the module from the command line. There are already
> a number of modules which export command line functionality, ie.
> unittest, and I thought it would be great if difflib module offered the
> same. The code is pretty much there in the example from the
> documentation. It would just need to be included in the module itself.

+1 if it will produce git-style unified patches by default
It seems that every single VCS in Python reinvents own differ.
-m option will help it become more polished/useful
anatoly t.

More information about the Python-ideas mailing list