Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
converts a C{Messages} instance into a list of C{Message} instances

        def msgs_instance_to_list_of_msgs(messages_instance):
    """converts a C{Messages} instance into a list of C{Message} instances"""
    return [message for message in messages_instance.messages.values()]
        


src/p/y/pypolibox-1.0.0/src/pypolibox/textplan.py   pypolibox(Download)
from time import time
 
from util import (flatten, freeze_all_messages, msgs_instance_to_list_of_msgs,
                  ensure_unicode)
from rules import Rules, ConstituentSet
    elif isinstance(messages, Messages):
        book_score = messages.book_score
        message_list = msgs_instance_to_list_of_msgs(messages)
        frozen_messages = freeze_all_messages(message_list)
 

src/p/y/pypolibox-HEAD/src/pypolibox/textplan.py   pypolibox(Download)
from time import time
 
from util import (flatten, freeze_all_messages, msgs_instance_to_list_of_msgs,
                  ensure_unicode)
from rules import Rules, ConstituentSet
    elif isinstance(messages, Messages):
        book_score = messages.book_score
        message_list = msgs_instance_to_list_of_msgs(messages)
        frozen_messages = freeze_all_messages(message_list)