Skip to content

Instantly share code, notes, and snippets.

@meghprkh
Created August 31, 2016 19:27
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 meghprkh/f85cfafbae016246c9560cb885999d1d to your computer and use it in GitHub Desktop.
Save meghprkh/f85cfafbae016246c9560cb885999d1d to your computer and use it in GitHub Desktop.
When you dont have compile time errors
#!!/usr/bin/env python3
import curses
class IO:
def __init__(self):
self.stdscr = curses.initscr()
self.stdscr.nodelay(True)
def getch(self):
return self.stdscr.getch()
def errorKar(self):
python is shit
def __del__(self):
curses.endwin()
io = IO()
while True:
io.getch()
io.errorKar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment