class_docstr: C-Accelerated version of TBinaryProtocol.
  
  This class does not override any of TBinaryProtocol's methods,
  but the generated code recognizes it directly and will call into
  our C module to do the encoding, bypassing this object entirely.
  We inherit from TBinaryProtocol so that the normal TBinaryProtocol
  encoding can happen if the fastbinary module doesn't work for some
  reason.  (TODO(dreiss): Make this happen sanely in more cases.)
  To disable this behavior, pass fallback=False constructor argument.
  
  In order to take advantage of the C module, just use
  TBinaryProtocolAccelerated instead of TBinaryProtocol.
  
  NOTE:  This code was contributed by an external developer.
         The internal Thrift team has reviewed and tested it,
         but we cannot guarantee that it is production-ready.
         Please feel free to report bugs and/or success stories
         to the public mailing list.
class_docstr_tok: ["C-Accelerated","version","of","TBinaryProtocol",".","This","class","does","not","override","any","of","TBinaryProtocol","'s","methods",",","but","the","generated","code","recognizes","it","directly","and","will","call","into","our","C","module","to","do","the","encoding",",","bypassing","this","object","entirely",".","We","inherit","from","TBinaryProtocol","so","that","the","normal","TBinaryProtocol","encoding","can","happen","if","the","fastbinary","module","does","n't","work","for","some","reason",".","(","TODO","(","dreiss",")",":","Make","this","happen","sanely","in","more","cases",".",")","To","disable","this","behavior",",","pass","fallback=False","constructor","argument",".","In","order","to","take","advantage","of","the","C","module",",","just","use","TBinaryProtocolAccelerated","instead","of","TBinaryProtocol",".","NOTE",":","This","code","was","contributed","by","an","external","developer",".","The","internal","Thrift","team","has","reviewed","and","tested","it",",","but","we","can","not","guarantee","that","it","is","production-ready",".","Please","feel","free","to","report","bugs","and\/or","success","stories","to","the","public","mailing","list","."]
code: def __init__(self, *args, **kwargs):
      fallback = kwargs.pop("fallback", True)
      super(TBinaryProtocolAccelerated, self).__init__(*args, **kwargs)
      try:
          from thrift.protocol import fastbinary
      except ImportError:
          if not fallback:
              raise
      else:
          self._fast_decode = fastbinary.decode_binary
          self._fast_encode = fastbinary.encode_binary
  
imports: from .TProtocol import TType, TProtocolBase, TProtocolException, TProtocolFactory
  from struct import pack, unpack
label_desc: Use image node_id 1 to create a new TBinaryProtocolAccelerated object from inherited base classes: TBinaryProtocol with example: obj = TBinaryProtocolAccelerated()