Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
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/p/y/pyano-0.6b/pyano/interface.py   pyano(Download)
 
from validate import InputError
from config import ConfigError, conf, parse_config, NONE, RANDOM
from stats import stats, parse_stats, format_stats, uptime_sort
from security import SecurityError, check_ip
            out += '          <select name="chain'+str(i)+'">\n'
            out += '            <option value="'+NONE+'"></option>\n'
            out += '            <option value="'+RANDOM+'">Random</option>\n'
            for remailer in uptime_sort():
                out += '            <option value="'+remailer+'">'+format_stats(remailer).replace(' ',"&nbsp;")+'</option>\n'

src/p/y/pyano-0.6b/pyano/validate.py   pyano(Download)
 
from stats import stats, bad_mail2news
from config import conf, NONE, RANDOM, POST
 
 
        if remailer == NONE: # empty remailer, we stop the chain
            break
        elif remailer == RANDOM:
            chain.append('*')
        elif remailer in chain: # duplicate remailer!