This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Alexey Kazantsev, Vadim Markovtsev, amaury.forgeotdarc, martin.panter, pitrou, serhiy.storchaka, tim.peters
Date 2015-03-21.12:39:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426941565.36.0.00297729026688.issue23720@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, in bug2.py we have different cycle.

a ↔ b
↓   ↓
v → d

a and b are in a cycle, and therefore v and d are in cycle. I think that in such case v always should be destroyed before d, independently of a cycle that refers them. And this is the same situation, as for io classes. A TextIOWrapper object refers a BufferedWriter object, a BufferedWriter object refers a FileIO object. and some cycle refers a TextIOWrapper object. As a result a FileIO object can be closed before a TextIOWrapper object or a BufferedWriter object flush its buffer.
History
Date User Action Args
2015-03-21 12:39:25serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, amaury.forgeotdarc, pitrou, martin.panter, Vadim Markovtsev, Alexey Kazantsev
2015-03-21 12:39:25serhiy.storchakasetmessageid: <1426941565.36.0.00297729026688.issue23720@psf.upfronthosting.co.za>
2015-03-21 12:39:25serhiy.storchakalinkissue23720 messages
2015-03-21 12:39:25serhiy.storchakacreate