def _encode_long(name, value, dummy0, dummy1):
 try:
  return (('\x12' + name) + _PACK_LONG(value))
 except struct.error:
  raise OverflowError('BSON can only handle up to 8-byte ints')

def _encode_long ( name , value , dummy0 , dummy1 ) : try : return ( ( '\x12' + name ) + _PACK_LONG ( value ) ) except struct . error : raise OverflowError ( 'BSON can only handle up to 8-byte ints' )
encode a python long .