Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(14)  |  Derive(0)  |  Import(8)
D.iteritems() -> an iterator over the (key, value) items of D

src/w/i/willie-HEAD/willie/bot.py   willie(Download)
import willie.irc as irc
from willie.db import WillieDB
from willie.tools import (stderr, Nick, PriorityQueue, released,
                   get_command_regexp, iteritems, itervalues)
import willie.module as module
        modules = []
        error_count = 0
        for name, filename in iteritems(filenames):
            try:
                module = imp.load_source(name, filename)

src/w/i/willie-4.3.0/willie/bot.py   willie(Download)
import willie.irc as irc
from willie.db import WillieDB
from willie.tools import (stderr, Nick, PriorityQueue, released,
                   get_command_regexp, iteritems, itervalues)
import willie.module as module
        modules = []
        error_count = 0
        for name, filename in iteritems(filenames):
            try:
                module = imp.load_source(name, filename)

src/w/i/willie-4.3.0/willie/coretasks.py   willie(Download)
import time
import willie
from willie.tools import Nick, iteritems
import base64
 
    for name in names:
        priv = 0
        for prefix, value in iteritems(mapping):
            if prefix in name:
                priv = priv | value
        bot._cap_reqs['multi-prefix'] = (['', 'coretasks', None],)
 
    for cap, reqs in iteritems(bot._cap_reqs):
        # At this point, we know mandatory and prohibited don't co-exist, but
        # we need to call back for optionals if they're also prohibited

src/w/i/willie-HEAD/willie/coretasks.py   willie(Download)
import time
import willie
from willie.tools import Nick, iteritems
import base64
 
    for name in names:
        priv = 0
        for prefix, value in iteritems(mapping):
            if prefix in name:
                priv = priv | value
        bot._cap_reqs['multi-prefix'] = (['', 'coretasks', None],)
 
    for cap, reqs in iteritems(bot._cap_reqs):
        # At this point, we know mandatory and prohibited don't co-exist, but
        # we need to call back for optionals if they're also prohibited

src/w/i/willie-4.3.0/willie/modules/remind.py   willie(Download)
def dump_database(name, data):
    f = codecs.open(name, 'w', encoding='utf-8')
    for unixtime, reminders in willie.tools.iteritems(data):
        for channel, nick, message in reminders:
            f.write('%s\t%s\t%s\t%s\n' % (unixtime, channel, nick, message))

src/w/i/willie-HEAD/willie/modules/remind.py   willie(Download)
def dump_database(name, data):
    f = codecs.open(name, 'w', encoding='utf-8')
    for unixtime, reminders in willie.tools.iteritems(data):
        for channel, nick, message in reminders:
            f.write('%s\t%s\t%s\t%s\n' % (unixtime, channel, nick, message))

src/w/i/willie-4.3.0/willie/modules/url.py   willie(Download)
    matched = any(regex.search(url) for regex in bot.memory['url_exclude'])
    # Then, check if there's anything in the callback list
    for regex, function in tools.iteritems(bot.memory['url_callbacks']):
        match = regex.search(url)
        if match:

src/w/i/willie-HEAD/willie/modules/url.py   willie(Download)
    matched = any(regex.search(url) for regex in bot.memory['url_exclude'])
    # Then, check if there's anything in the callback list
    for regex, function in tools.iteritems(bot.memory['url_callbacks']):
        match = regex.search(url)
        if match:

src/w/i/willie-4.3.0/willie/modules/reload.py   willie(Download)
import time
import imp
from willie.tools import iteritems
import willie.module
import subprocess
 
    old_callables = {}
    for obj_name, obj in iteritems(vars(old_module)):
        if bot.is_callable(obj) or bot.is_shutdown(obj):
            old_callables[obj_name] = obj

src/w/i/willie-HEAD/willie/modules/reload.py   willie(Download)
import time
import imp
from willie.tools import iteritems
import willie.module
import subprocess
 
    old_callables = {}
    for obj_name, obj in iteritems(vars(old_module)):
        if bot.is_callable(obj) or bot.is_shutdown(obj):
            old_callables[obj_name] = obj

  1 | 2  Next