path,
serializer=yamlserializer,
record_mode='once',
- match_on=[uri, method],
- filter_headers=[],
- filter_query_parameters=[],
+ match_on=(uri, method),
+ filter_headers=(),
+ filter_query_parameters=(),
before_record=None,
- ignore_hosts=[],
- ignore_localhost=[],
+ ignore_hosts=(),
+ ignore_localhost=()
):
self._path = path
self._serializer = serializer
>>> c = Counter({'a': 4, 'b': 2}) # a new counter from a mapping
>>> c = Counter(a=4, b=2) # a new counter from keyword args
- '''
+ '''
self.update(iterable, **kwds)
def __missing__(self, key):
>>> Counter('abracadabra').most_common(3)
[('a', 5), ('r', 2), ('b', 2)]
- '''
+ '''
if n is None:
return sorted(self.iteritems(), key=itemgetter(1), reverse=True)
return nlargest(n, self.iteritems(), key=itemgetter(1))
>>> c['h'] # four 'h' in which, witch, and watch
4
- '''
+ '''
if iterable is not None:
if hasattr(iterable, 'iteritems'):
if self: