Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74424
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2014-07-14 11:12 -0400 |
| Subject | python-aware wdiff? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11798.1405350785.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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@panix.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
python-aware wdiff? Roy Smith <roy@panix.com> - 2014-07-14 11:12 -0400
csiph-web