Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Return an iterator over the (key, value) pairs of a dictionary.

        def iteritems(d):
    """Return an iterator over the (key, value) pairs of a dictionary."""
    return iter(getattr(d, _iteritems)())
        


src/i/n/invoke-HEAD/invoke/collection.py   invoke(Download)
            self._add_object(arg)
        # Dispatch kwargs
        for name, obj in six.iteritems(kwargs):
            self._add_object(obj, name)
 
        """
        result = []
        for primary, aliases in six.iteritems(self.task_names):
            task = self[primary]
            result.append(Context(
        ret = {}
        # Our own tasks get no prefix, just go in as-is: {name: [aliases]}
        for name, task in six.iteritems(self.tasks):
            ret[name] = task.aliases
        # Subcollection tasks get both name + aliases prefixed
        for coll_name, coll in six.iteritems(self.collections):
            for task_name, aliases in six.iteritems(coll.task_names):

src/i/n/invoke-0.7.0/invoke/collection.py   invoke(Download)
            self._add_object(arg)
        # Dispatch kwargs
        for name, obj in six.iteritems(kwargs):
            self._add_object(obj, name)
 
        """
        result = []
        for primary, aliases in six.iteritems(self.task_names):
            task = self[primary]
            result.append(Context(
        ret = {}
        # Our own tasks get no prefix, just go in as-is: {name: [aliases]}
        for name, task in six.iteritems(self.tasks):
            ret[name] = task.aliases
        # Subcollection tasks get both name + aliases prefixed
        for coll_name, coll in six.iteritems(self.collections):
            for task_name, aliases in six.iteritems(coll.task_names):

src/i/n/invoke-HEAD/invoke/cli.py   invoke(Download)
        kwargs = {}
        # Take CLI arguments out of parser context, create func-kwarg dict.
        for _, arg in six.iteritems(context.args):
            # Use the arg obj's internal name - not what was necessarily given
            # on the CLI. (E.g. --my-option vs --my_option for

src/i/n/invoke-0.7.0/invoke/cli.py   invoke(Download)
    for context in tasks:
        kwargs = {}
        for _, arg in six.iteritems(context.args):
            # Use the arg obj's internal name - not what was necessarily given
            # on the CLI. (E.g. --my-option vs --my_option for