Did I find the right examples for you? yes no

All Samples(17497)  |  Call(17395)  |  Derive(102)  |  Import(0)
frozenset() -> empty frozenset object
frozenset(iterable) -> frozenset object

Build an immutable unordered collection of unique elements.

src/s/e/segeval-2.0.11/segeval/data/samples.py   segeval(Download)
 
MULTIPLE_BOUNDARY_TYPES = Dataset(
    {'item1': {'an5': (frozenset([1]), frozenset(), frozenset(), frozenset(),
                       frozenset([1])),
               'an6': (frozenset([1]), frozenset(), frozenset(), frozenset(),

src/s/e/segmentation.evaluation-HEAD/segeval/data/samples.py   segmentation.evaluation(Download)
 
MULTIPLE_BOUNDARY_TYPES = Dataset(
    {'item1': {'an5': (frozenset([1]), frozenset(), frozenset(), frozenset(),
                       frozenset([1])),
               'an6': (frozenset([1]), frozenset(), frozenset(), frozenset(),

src/p/y/pyjs-HEAD/examples/libtest/SetTest.py   pyjs(Download)
        self.assertRaises(KeyError, self.s.remove, 'Q')
        self.assertRaises(TypeError, self.s.remove, [])
        s = self.thetype([frozenset(self.word)])
        self.assert_(self.thetype(self.word) in s)
        s.remove(self.thetype(self.word))
        self.s.discard('Q')
        self.assertRaises(TypeError, self.s.discard, [])
        s = self.thetype([frozenset(self.word)])
        self.assert_(self.thetype(self.word) in s)
        s.discard(self.thetype(self.word))
    def test_singleton_empty_frozenset(self):
        f = frozenset()
        efs = [frozenset(), frozenset([]), frozenset(()), frozenset(''),
               frozenset(), frozenset([]), frozenset(()), frozenset(''),
               frozenset(xrange(0)), frozenset(frozenset()),

src/s/a/sage-HEAD/src/sage/homology/examples.py   sage(Download)
        from sage.rings.all import Integers
        Zn = Integers(n)
        A = frozenset([Zn(x) for x in A])
        facets = []
        for f in Set(Zn).subsets(len(A)):
            if sum(f) in A:

src/e/n/enterprise-toolkit-HEAD/api_sample/third_party/apiclient/discovery.py   enterprise-toolkit(Download)
                 '{api}/{apiVersion}/rest')
DEFAULT_METHOD_DOC = 'A description of how to use this function'
HTTP_PAYLOAD_METHODS = frozenset(['PUT', 'POST', 'PATCH'])
_MEDIA_SIZE_BIT_SHIFTS = {'KB': 10, 'MB': 20, 'GB': 30, 'TB': 40}
BODY_PARAMETER_DEFAULT_VALUE = {
# Parameters accepted by the stack, but not visible via discovery.
# TODO(dhermes): Remove 'userip' in 'v2'.
STACK_QUERY_PARAMETERS = frozenset(['trace', 'pp', 'userip', 'strict'])
STACK_QUERY_PARAMETER_DEFAULT_VALUE = {'type': 'string', 'location': 'query'}
 
# Library-specific reserved words beyond Python keywords.
RESERVED_WORDS = frozenset(['body'])
    The name with a '_' prefixed if the name is a reserved word.
  """
  if keyword.iskeyword(name) or name in RESERVED_WORDS:
    return name + '_'
  else:
 
  # Add in undocumented query parameters.
  for name in STACK_QUERY_PARAMETERS:
    parameters[name] = STACK_QUERY_PARAMETER_DEFAULT_VALUE.copy()
 

src/w/e/webapp2_example-HEAD/lib/jinja2/sandbox.py   webapp2_example(Download)
 
_mutable_spec = (
    (_mutable_set_types, frozenset([
        'add', 'clear', 'difference_update', 'discard', 'pop', 'remove',
        'symmetric_difference_update', 'update'
    ])),
    (_mutable_mapping_types, frozenset([
        'clear', 'pop', 'popitem', 'setdefault', 'update'
    ])),
    (_mutable_sequence_types, frozenset([
        'append', 'reverse', 'insert', 'sort', 'extend', 'remove'
    ])),
    (deque, frozenset([
        'append', 'appendleft', 'clear', 'extend', 'extendleft', 'pop',
        'popleft', 'remove', 'rotate'
    #:
    #: .. versionadded:: 2.6
    intercepted_binops = frozenset()
 
    #: a set of unary operators that should be intercepted.  Each operator

src/m/i/mirror-counter-sample-python-HEAD/lib/apiclient/discovery.py   mirror-counter-sample-python(Download)
                 '{api}/{apiVersion}/rest')
DEFAULT_METHOD_DOC = 'A description of how to use this function'
HTTP_PAYLOAD_METHODS = frozenset(['PUT', 'POST', 'PATCH'])
_MEDIA_SIZE_BIT_SHIFTS = {'KB': 10, 'MB': 20, 'GB': 30, 'TB': 40}
BODY_PARAMETER_DEFAULT_VALUE = {
# Parameters accepted by the stack, but not visible via discovery.
# TODO(dhermes): Remove 'userip' in 'v2'.
STACK_QUERY_PARAMETERS = frozenset(['trace', 'pp', 'userip', 'strict'])
STACK_QUERY_PARAMETER_DEFAULT_VALUE = {'type': 'string', 'location': 'query'}
 
# Library-specific reserved words beyond Python keywords.
RESERVED_WORDS = frozenset(['body'])
    The name with a '_' prefixed if the name is a reserved word.
  """
  if keyword.iskeyword(name) or name in RESERVED_WORDS:
    return name + '_'
  else:
 
  # Add in undocumented query parameters.
  for name in STACK_QUERY_PARAMETERS:
    parameters[name] = STACK_QUERY_PARAMETER_DEFAULT_VALUE.copy()
 

src/l/r/lrparsing-1.0.5/doc/examples/lua52.py   lrparsing(Download)
# names.
#
PYTHON_KEYWORDS = frozenset((
        "and",       "del",       "from",      "not",       "while",
        "as",        "elif",      "global",    "or",        "with",
    def escape(self, lua_name):
        escape = lambda lua_name: "_l_" + lua_name
        if lua_name in PYTHON_KEYWORDS:
            return escape(lua_name)
        if lua_name == '_ENV':
    def compile(self):
        result = []
        namespace_vars = frozenset(
                var.python_name()
                for var in self.declared_vars.itervalues()
        if self.parent is None or self.parent.function_depth != self.function_depth:
            global_vars = frozenset(
                    str(v.python_name())
                    for v in self.function_vars
                    if v.declare_scope.parent is None)
    def used_namespaces(self):
        return sorted(frozenset(
                str(var.declare_scope)
                for var in self.function_vars
                if var.declare_scope.function_depth < self.function_depth

src/g/a/gae-twitter-oauth-example-HEAD/jinja2/sandbox.py   gae-twitter-oauth-example(Download)
 
_mutable_spec = (
    (_mutable_set_types, frozenset([
        'add', 'clear', 'difference_update', 'discard', 'pop', 'remove',
        'symmetric_difference_update', 'update'
    ])),
    (_mutable_mapping_types, frozenset([
        'clear', 'pop', 'popitem', 'setdefault', 'update'
    ])),
    (_mutable_sequence_types, frozenset([
        'append', 'reverse', 'insert', 'sort', 'extend', 'remove'
    ])),
    (deque, frozenset([
        'append', 'appendleft', 'clear', 'extend', 'extendleft', 'pop',
        'popleft', 'remove', 'rotate'

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/http.py   gae-twitter-oauth-example(Download)
 
_accept_re = re.compile(r'([^\s;,]+)(?:[^,]*?;\s*q=(\d*(?:\.\d+)?))?')
_token_chars = frozenset("!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                         '^_`abcdefghijklmnopqrstuvwxyz|~')
_etag_re = re.compile(r'([Ww]/)?(?:"(.*?)"|(.*?))(?:\s*,\s*|$)')
    (_quoted_string_re, _quoted_string_re))
 
_entity_headers = frozenset([
    'allow', 'content-encoding', 'content-language', 'content-length',
    'content-location', 'content-md5', 'content-range', 'content-type',
    'expires', 'last-modified'
])
_hop_by_pop_headers = frozenset([

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next