MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / get_emails

Function get_emails

example_code/item_103.py:59–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58print("Example 2")
59def get_emails():
60 yield Email("foo@example.com", "bar@example.com", "hello1")
61 yield Email("baz@example.com", "banana@example.com", "hello2")
62 yield None
63 yield Email("meep@example.com", "butter@example.com", "hello3")
64 yield Email("stuff@example.com", "avocado@example.com", "hello4")
65 yield None
66 yield Email("thingy@example.com", "orange@example.com", "hello5")
67 yield Email("roger@example.com", "bob@example.com", "hello6")
68 yield None
69 yield Email("peanut@example.com", "alice@example.com", "hello7")
70 yield None
71
72EMAIL_IT = get_emails()
73

Callers 1

item_103.pyFile · 0.85

Calls 1

EmailClass · 0.85

Tested by

no test coverage detected