Message215190
| Author |
Alex.Grinko |
| Recipients |
Alex.Grinko |
| Date |
2014年03月30日.18:02:23 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1396202543.66.0.928305526795.issue21104@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When reading from text file on Windows Python ends loop on character 0x1A
sample.py:
number = 0
with open("sample.txt",'r') as f:
for line in f:
number += 1
print line
print "File has 8 lines, but Python could read only ",number |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年03月30日 18:02:23 | Alex.Grinko | set | recipients:
+ Alex.Grinko |
| 2014年03月30日 18:02:23 | Alex.Grinko | set | messageid: <1396202543.66.0.928305526795.issue21104@psf.upfronthosting.co.za> |
| 2014年03月30日 18:02:23 | Alex.Grinko | link | issue21104 messages |
| 2014年03月30日 18:02:23 | Alex.Grinko | create |
|