Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、 を使用してイテレータを作成した場合、chainそれを複数のスレッドで呼び出すことはできますか? GIL に依存するスレッドセーフは許容されますが、好ましくないことに注意してください。
chain
(これは、 C で記述されたイテレーターではなく、ジェネレーターを扱うこの質問とは少し異なることに注意してください)。