Image via WikipediaREADME - python-patch - Project Hosting on Google Code: "
This project started because windows platform lacks native tool to apply patches. There are plenty of tools on my PC to produce diffs - from scripts bundled with python to several version control systems, but none of them is able to apply these diffs back.
Usually patches are applied with a patch tool - a UNIX utility that continues to be UNIX only as a part of GNU tools. There is windows port of patch, but it's rather buggy, insecure to be run on a web server and not customizable without a C compiler. That's why this version was born. And I've always wanted to have a diff.py counterpart bundled with Python."