Message212237
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(). |
|
Date |
User |
Action |
Args |
2014-02-26 03:33:22 | Sworddragon | set | recipients:
+ Sworddragon, ned.deily |
2014-02-26 03:33:22 | Sworddragon | set | messageid: <1393385602.82.0.0305384688381.issue20764@psf.upfronthosting.co.za> |
2014-02-26 03:33:22 | Sworddragon | link | issue20764 messages |
2014-02-26 03:33:22 | Sworddragon | create | |
|