Skip to content

Instantly share code, notes, and snippets.

View timotree3's full-sized avatar

Timo Carlin-Burns timotree3

View GitHub Profile
@timotree3
timotree3 / pydiff.py
Created February 12, 2016 17:10
Keep differences
def keepDiff(new,old=None):
result = []
if(not(old) or old==new):
return new
else:
try:
for i in range(0,len(new)):
try:
if(old[i]==new[i]):
result.append(None)