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 hynek
Recipients barry, chris.jerdonek, eng793, eric.araujo, giampaolo.rodola, hynek, jwilk, larry, pitrou, serhiy.storchaka
Date 2012-10-20.17:48:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <864B4B27-2744-49C3-BDE6-81828AD33429@ox.cx>
In-reply-to <1350748789.92.0.918309462485.issue15872@psf.upfronthosting.co.za>
Content
> To be honest I don't really understand the point of the ignore_errors flag on rmtree. If rmtree fails to delete the directory tree (which will happen if one of the files can't be deleted), why would you want it to return succesfully?

I presume it’s meant as a best-effort cleanup.

Regardless both Eric & Serhiy are right: it’s a programmer error to call it on files and it may shadow bugs catching it. OTOH the implementation is inconsistent and not backward compatible now, so we have to fix it unfortunately.

The patch needs to address Giampaolo’s (bug tracker) & Serhiy’s (Rietveld) comments before it can be merged though – thanks. :)
History
Date User Action Args
2012-10-20 17:48:37hyneksetrecipients: + hynek, barry, pitrou, larry, giampaolo.rodola, jwilk, eric.araujo, chris.jerdonek, serhiy.storchaka, eng793
2012-10-20 17:48:36hyneklinkissue15872 messages
2012-10-20 17:48:36hynekcreate