Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/a/n/Anagrammer-1.1/src/anagrammer/anagrammer.py   Anagrammer(Download)
import convert
import lookup
from config import DICTIONARIES_DIR, MINLENGTH_DEFAULT, DEFAULT_DICT
 
 
def start():
    """Interactive start of program."""
 
    dicts = glob.glob("%s/*.anagram" % DICTIONARIES_DIR)
    dicts = [ os.path.splitext( os.path.basename(d) )[0] for d in dicts ]
 
    if options.dictpath:
        convert.convert(options.dictpath, DICTIONARIES_DIR)
        sys.exit()
 
 
    word = args[0:]
    dictfile = "%s/%s.anagram" % (DICTIONARIES_DIR, getattr(options, "dict", default_dict))
 
    anagrammer(word, dictfile, options.minlength, options.column)