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 | HWJ |
|---|---|
| Recipients | HWJ |
| Date | 2008年06月24日.10:28:23 |
| SpamBayes Score | 0.00030527244 |
| Marked as misclassified | No |
| Message-id | <1214303307.09.0.102277146744.issue3187@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The script below produces 1664 lines of output before it bails out with
Traceback (most recent call last):
File "WalkBug.py", line 5, in <module>
for Dir, SubDirs, Files in os.walk('/home/jarausch') :
File "/usr/local/lib/python3.0/os.py", line 278, in walk
for x in walk(path, topdown, onerror, followlinks):
File "/usr/local/lib/python3.0/os.py", line 268, in walk
if isdir(join(top, name)):
File "/usr/local/lib/python3.0/posixpath.py", line 64, in join
if b.startswith('/'):
TypeError: expected an object with the buffer interface
=========================
file WalkBug.py:
#!/usr/local/bin/python3.0
import os
for Dir, SubDirs, Files in os.walk('/home/jarausch') :
print("processing {0:d} files in {1}".format(len(Files),Dir)) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月24日 10:28:27 | HWJ | set | spambayes_score: 0.000305272 -> 0.00030527244 recipients: + HWJ |
| 2008年06月24日 10:28:27 | HWJ | set | spambayes_score: 0.000305272 -> 0.000305272 messageid: <1214303307.09.0.102277146744.issue3187@psf.upfronthosting.co.za> |
| 2008年06月24日 10:28:25 | HWJ | link | issue3187 messages |
| 2008年06月24日 10:28:24 | HWJ | create | |