Did I find the right examples for you? yes no

All Samples(6)  |  Call(2)  |  Derive(0)  |  Import(4)

        def dict2string(d):
    """
    FIXME: Find a better was to do this.

    >>> dict2string({'foo':"bar", "no":123})
    "foo='bar' no=123"

    >>> dict2string({"foo":'bar', "no":"ABC"})
    "foo='bar' no='ABC'"
    
    See test_creole2html.TestDict2String()
    """
    attr_list = []
    for key, value in sorted(d.items()):
        value_string = repr2(value)
        attr_list.append("%s=%s" % (key, value_string))
    return " ".join(attr_list)
        


src/p/y/python-creole-1.1.1/creole/shared/document_tree.py   python-creole(Download)
 
from creole.py3compat import TEXT_TYPE
from creole.shared.utils import dict2string
 
 
        "foo='bar' no='ABC'"
        """
        return dict2string(self.attrs)
 
    def __str__(self):

src/p/y/python-creole-HEAD/creole/shared/document_tree.py   python-creole(Download)
 
from creole.py3compat import TEXT_TYPE
from creole.shared.utils import dict2string
 
 
        "foo='bar' no='ABC'"
        """
        return dict2string(self.attrs)
 
    def __str__(self):

src/p/y/python-creole-HEAD/creole/tests/test_creole2html.py   python-creole(Download)
from creole import creole2html
from creole.shared import example_macros
from creole.shared.utils import string2dict, dict2string
 
 

src/p/y/python-creole-1.1.1/creole/tests/test_creole2html.py   python-creole(Download)
from creole import creole2html
from creole.shared import example_macros
from creole.shared.utils import string2dict, dict2string