MCPcopy
hub / github.com/fluentpython/example-code-2e / match_asian_countries

Function match_asian_countries

05-data-classes/match_cities.py:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44# tag::ASIA_COUNTRIES[]
45def match_asian_countries():
46 results = []
47 for city in cities:
48 match city:
49 case City(continent='Asia', country=cc):
50 results.append(cc)
51 return results
52# end::ASIA_COUNTRIES[]
53
54# tag::ASIA_COUNTRIES_POSITIONAL[]

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected