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/p/r/Products.membrane-2.1.11/Products/membrane/utils.py   Products.membrane(Download)
from Products.CMFCore.utils import getToolByName
from config import FILTERED_ROLES
from config import TOOLNAME
from interfaces import IUserAdder
def getFilteredValidRolesForPortal(context):
    portal = getToolByName(context, 'portal_url').getPortalObject()
    roles = dict.fromkeys(portal.validRoles())
    for filtered_role in FILTERED_ROLES:
        roles.pop(filtered_role, None)