Message238691
Thank you for your explanation Wolfgang! Now it is clear to me. The issue is that the generator calls the close() method of the subgenerator, but if the subgenerator is a file, the close() method closes (surprise!) the file. Two different protocols use the same method.
Interesting, how many similar bugs was introduced by blindly replacing "for/yield" with "yield from"? |
|
Date |
User |
Action |
Args |
2015-03-20 15:22:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, paul.moore, ncoghlan, vstinner, ethan.furman, python-dev, bkabrda, sYnfo, wolma |
2015-03-20 15:22:08 | serhiy.storchaka | set | messageid: <1426864928.55.0.93029263627.issue23700@psf.upfronthosting.co.za> |
2015-03-20 15:22:08 | serhiy.storchaka | link | issue23700 messages |
2015-03-20 15:22:08 | serhiy.storchaka | create | |
|