Skip to content

Instantly share code, notes, and snippets.

@aviraldg
Created March 28, 2012 12:48
Show Gist options
  • Save aviraldg/2225871 to your computer and use it in GitHub Desktop.
Save aviraldg/2225871 to your computer and use it in GitHub Desktop.
bash style clear for python
# add this to the end of your site.py
# (side effects? who cares?)
class clear:
def __repr__(self):
return '\n'*24
builtins.clear = clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment