Skip to content

Instantly share code, notes, and snippets.

@j2labs
Created November 6, 2012 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j2labs/4022076 to your computer and use it in GitHub Desktop.
Save j2labs/4022076 to your computer and use it in GitHub Desktop.
Sarah Palin joke inside Schematics.
# Remove rogue fields
if len(class_fields) > 0: # if accumulation is not disabled
palins = data_fields - set(class_fields)
for rogue_field in palins:
del values[rogue_field]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment