Lines Matching defs:first
9 def first(iterable):
43 # The first argument is a triple (related, html, plain) of indices into the
46 # when passed to get_body (ie: the "first" part of that type in the
50 # that should be returned by a call to 'iter_parts'. Note that the first
357 # first one if there isn't any start parameter. That is, this is a
456 self.assertEqual(m.get_body(), first(expected))
459 first(expected))
461 first(expected[related:html+1]))
463 first([expected[related], expected[plain]]))
465 first(expected[html:plain+1]))
471 first(expected[plain:html-1:-1]))
473 first([expected[plain], expected[related]]))
475 first(expected[html::-1]))
477 first(expected[::-1]))
479 first([expected[html],
837 # first word.
851 # and after the fold point, where the first
897 # and after the first fold point, and ASCII words
914 # the first fold point, and ASCII words after the
915 # first fold point, and UTF-8 words after the second