Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  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/r/i/riverid-python-HEAD/api/api.py   riverid-python(Download)
# along with RiverID.  If not, see <http://www.gnu.org/licenses/>.
 
from config import INFO_URL, MAIL_FROM, NAME, SALT
from datetime import datetime
from mail import Mail
    def about(self):
        return dict(info_url=INFO_URL, name=NAME, version='1.0')
 
    def addusertosite(self, email, session_id, url):
        Validator.email(email)

src/x/b/xbmc-addon-plus7-HEAD/resources/lib/utils.py   xbmc-addon-plus7(Download)
def log(s):
    print "[%s v%s] %s" % (config.NAME, config.VERSION, s)
 
def log_error(message=None):
    exc_type, exc_value, exc_traceback = sys.exc_info()
    if message:
        exc_value = message
    print "[%s v%s] ERROR: %s (%d) - %s" % (config.NAME, config.VERSION, exc_traceback.tb_frame.f_code.co_name, exc_traceback.tb_lineno, exc_value)
def dialog_error(msg):
    # Generate a list of lines for use in XBMC dialog
    content = []
    exc_type, exc_value, exc_traceback = sys.exc_info()
    content.append("%s v%s Error" % (config.NAME, config.VERSION))
def dialog_message(msg, title=None):
    if not title:
        title = "%s v%s" % (config.NAME, config.VERSION)
    # Add title to the first pos of the textwrap list
    content = textwrap.wrap(msg, 60)