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 ned.deily
Recipients Sworddragon, ned.deily
Date 2014-02-25.05:50:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393307423.98.0.0276410465589.issue20764@psf.upfronthosting.co.za>
In-reply-to
Content
I think you are misunderstanding how del and mutable sequences work.  In your code snippet, the del unbinds the name "root_dir" but it does not alter the dirnames list object returned by os.path.  Try replacing "del root_dir" with "del root_dir[:]" or "root_dir.clear()".

http://docs.python.org/3/reference/simple_stmts.html#the-del-statement
http://docs.python.org/3/library/stdtypes.html#mutable-sequence-types
History
Date User Action Args
2014-02-25 05:50:24ned.deilysetrecipients: + ned.deily, Sworddragon
2014-02-25 05:50:23ned.deilysetmessageid: <1393307423.98.0.0276410465589.issue20764@psf.upfronthosting.co.za>
2014-02-25 05:50:23ned.deilylinkissue20764 messages
2014-02-25 05:50:23ned.deilycreate