Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items

If the argument is a tuple, the return value is the same object.

src/a/w/aws.minisite-1.0.2/aws/minisite/setupHandlers.py   aws.minisite(Download)
 
from Products.CMFPlone.utils import _createObjectByType
from config import SKIN_DATA, SKIN_REPOSITORY_DATA, PLONE_PRODUCTS_DEPENDENCIES
LOG = logging.getLogger('aws.minisite')
 
        zope_products = root.Control_Panel.Products.objectIds()
        qi_tool = getToolByName(portal, 'portal_quickinstaller')
        for product_id in PLONE_PRODUCTS_DEPENDENCIES :
            if product_id not in zope_products :
                raise ValueError, "The product %s is not available as Zope 2 product" %product_id