Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created July 15, 2011 09:36
Show Gist options
  • Save lxneng/1084392 to your computer and use it in GitHub Desktop.
Save lxneng/1084392 to your computer and use it in GitHub Desktop.

before

if(i-words < 0):
    start_point = 0
else:
    start_point = i - words

after

start_point = max(i - words, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment