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 Jurko.Gospodnetić
Recipients Jurko.Gospodnetić, eric.araujo, ncoghlan, terry.reedy
Date 2010-12-11.17:12:47
SpamBayes Score 1.826761e-12
Marked as misclassified No
Message-id <1292087570.29.0.16680308981.issue10188@psf.upfronthosting.co.za>
In-reply-to
Content
Also this class, because it defines __del__ too simply, will display a user-unfriendly error message when cleaning up a TemporaryDirectory object whose constructor raised an exception when attempting to create its temporary folder.

  For example try to create a TemporaryDirectory with prefix="aa>aa" on Windows. That should fail as folders there can not contain '>' characters and later on in the program you should get an error message something like this one:

Exception AttributeError: "'TemporaryDirectory' object has no attribute '_closed'" in <bound method TemporaryDirectory.cleanup of <tempfile.TemporaryDirectory object at 0x00CE1E10>> ignored

  Hope this helps.

[Sorry, did not know whether to add this as a separate issue as it seemed kind of related to this one.]
History
Date User Action Args
2010-12-11 17:12:50Jurko.Gospodnetićsetrecipients: + Jurko.Gospodnetić, terry.reedy, ncoghlan, eric.araujo
2010-12-11 17:12:50Jurko.Gospodnetićsetmessageid: <1292087570.29.0.16680308981.issue10188@psf.upfronthosting.co.za>
2010-12-11 17:12:47Jurko.Gospodnetićlinkissue10188 messages
2010-12-11 17:12:47Jurko.Gospodnetićcreate