Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75344
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-07-29 00:48 -0700 |
| References | <de64e370-d83a-4919-863b-e744ad20b62a@googlegroups.com> <4a5222f3-78a8-4812-897f-3864da0733e6@googlegroups.com> |
| Message-ID | <35126ce2-0976-44b5-9111-86454b0501b8@googlegroups.com> (permalink) |
| Subject | Re: Parse bug text file |
| From | wxjmfauth@gmail.com |
Le lundi 28 juillet 2014 20:37:50 UTC+2, CM a écrit :
> Thank you, Chris, Terry, and jmf, for these pointers. Very helpful.
>
>
>
> -CM
I'm wondering what "big text file" means.
>>> with open('UnicodeData.txt', 'r', encoding='ascii') as f:
... r = f.read()
...
>>> len(r)
1366791
>>> a = r.split('\n') # mimicking a '-'
>>> len(a)
24430
>>> na = [e for e in a]
>>>
jmf
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Parse bug text file CM <cmpython@gmail.com> - 2014-07-27 11:08 -0700
Re: Parse bug text file Chris Angelico <rosuav@gmail.com> - 2014-07-28 04:17 +1000
Re: Parse bug text file Terry Reedy <tjreedy@udel.edu> - 2014-07-27 15:15 -0400
Re: Parse bug text file wxjmfauth@gmail.com - 2014-07-27 13:55 -0700
Re: Parse bug text file CM <cmpython@gmail.com> - 2014-07-28 11:37 -0700
Re: Parse bug text file wxjmfauth@gmail.com - 2014-07-29 00:48 -0700
csiph-web