Did I find the right examples for you? yes no

All Samples(11)  |  Call(7)  |  Derive(0)  |  Import(4)

src/d/i/digsby-HEAD/digsby/src/yahoo/yahoolookup.py   digsby(Download)
 
from __future__ import with_statement
from util import lookup_table
 
# The eleventh and twelfth bytes of a YMSG packet header form this network order
# short:
commands = lookup_table(
    logon  =  1,
# Four byte integer following the command.
statuses = lookup_table(
    available=  0,
    brb = 1,
    busy = 2,
 
# stringify the numbers and add the dictionary's reverse
ykeys = lookup_table(dict((str(k), v) for k,v in ykeys.iteritems()))
 

src/d/i/digsby-HEAD/digsby/src/oscar/ssi/SSIManager.py   digsby(Download)
import struct
from oscar.ssi  import item, OscarSSIs, SSIException, ssi_err_types
from util import gen_sequence, lookup_table, callsback
from oscar.ssi.SSIItem import tuple_key
 
#from functools import partial
 
property_tlv_types = lookup_table(alias=0x0131,
                                  email=0x0137,
                                  SMSnum=0x013A,

src/d/i/digsby-HEAD/digsby/src/oscar/rendezvous/directim.py   digsby(Download)
 
from __future__ import with_statement
from util import strlist, lookup_table, bitflags_enabled, myip, callsback
from util.packable import Packable
from oscar.rendezvous.peer import OscarPeer
 
    # for the "flags" field above.
    bitflags = lookup_table({
        0x01: 'autoresponse',
        0x02: 'typingpacket',            # has typing info

src/d/i/digsby-HEAD/digsby/src/oscar/rendezvous/rendezvous.py   digsby(Download)
import oscar
from util import lookup_table
import time, struct
 
rendezvous_tlvs = lookup_table({
 
# Rendezvous file transfer messages are either REQUEST, CANCEL, or ACCEPT.
rdv_types = rendezvous_message_types = lookup_table(dict(
    request = 0,
    cancel  = 1,