Skip to content

Instantly share code, notes, and snippets.

@introom
Created July 13, 2013 01:28
Show Gist options
  • Save introom/5989008 to your computer and use it in GitHub Desktop.
Save introom/5989008 to your computer and use it in GitHub Desktop.
class BaseProtocol:
_tramp = TrampolinedGrammarInterpreter
def blablahh:
pass
def dataReceived(self, data):
"""
Do some stuff here.
"""
class IntNStringReceiver(BaseProtocol):
def dataReceived(self):
"""
According to the implementation of IntNStringReceiver,
we have to overwrite dataReceived
"""
# Approach 2
# in the recent commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment