python-aware wdiff?
Roy Smith
roy at panix.com
Mon Jul 14 11:12:56 EDT 2014
Does anybody know of a wdiff-like tool (http://www.gnu.org/software/wdiff/) which is aware of python syntax and can show token changes instead of word changes. Wdiff is can turn
- if not metar.is_in_temp_range_f(situation.weather.low_temperature, situation.weather.high_temperature):
+ if not info.is_in_temp_range_f(situation.weather.low_temperature, situation.weather.high_temperature):
into
if not [-metar.is_in_temp_range_f(situation.weather.low_temperature,-] {+info.is_in_temp_range_f(situation.weather.low_temperature,+} situation.weather.high_temperature):
but what I really want is:
if not [-metar-]{+info+}.is_in_temp_range_f(situation.weather.low_temperature, situation.weather.high_temperature):
which makes it more obvious that the change is just the one token. Does such a tool exist?
---
Roy Smith
roy at panix.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140714/642f30d4/attachment.html>
More information about the Python-list
mailing list