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 Sworddragon
Recipients Sworddragon, ned.deily
Date 2014-02-26.03:33:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393385602.82.0.0305384688381.issue20764@psf.upfronthosting.co.za>
In-reply-to
Content
It sounds like me that "del dir_list" does only delete the copied list while "del dir_list[:]" accesses the reference and deletes this list. If I'm not wrong with this assumption I think you was meaning dir_list instead of root_dir in your post.

But thanks for the help as I have not expected this on reading just the documentation of os.walk().
History
Date User Action Args
2014-02-26 03:33:22Sworddragonsetrecipients: + Sworddragon, ned.deily
2014-02-26 03:33:22Sworddragonsetmessageid: <1393385602.82.0.0305384688381.issue20764@psf.upfronthosting.co.za>
2014-02-26 03:33:22Sworddragonlinkissue20764 messages
2014-02-26 03:33:22Sworddragoncreate