구조체와 고전적인 코루틴 등 자주 보거나 사용할 일이 없는 제너레이터의 고급 기능을 다룬다.
몇몇 절에서는 반복형, 반복자, 고전적 코루틴에 자료형 힌트를 붙이는 방법을 설명한다.
yield from
은 제너레이터를 조합하는 새로운 방식을 제공한다. 다음 절에서 알아보자.
17
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.