Arguments to patterns

Signed-off-by: Paul Brook <paul@nowt.org>
Allow init() to raise StopIteration

Signed-off-by: Paul Brook <paul@nowt.org>