Message147334
| Author |
ncoghlan |
| Recipients |
ncoghlan |
| Date |
2011年11月09日.07:22:37 |
| SpamBayes Score |
0.0008847341 |
| Marked as misclassified |
No |
| Message-id |
<1320823358.89.0.0610537790817.issue13375@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The 3-tuple values yielded by os.walk could be made easier to work with in some use cases by offering a namedtuple style interface (similar to what is done with sys.float_info).
for dirinfo in os.walk(base_dir):
print(dirinfo.path)
print(dirinfo.subdirs)
print(dirinfo.files) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年11月09日 07:22:39 | ncoghlan | set | recipients:
+ ncoghlan |
| 2011年11月09日 07:22:38 | ncoghlan | set | messageid: <1320823358.89.0.0610537790817.issue13375@psf.upfronthosting.co.za> |
| 2011年11月09日 07:22:38 | ncoghlan | link | issue13375 messages |
| 2011年11月09日 07:22:37 | ncoghlan | create |
|