On Apr 11, 4:20 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 11 Apr 2007 17:15:48 -0300, <[EMAIL PROTECTED]> escribió:
>
> > The file contents have leading whitespace, then a number:
> > 123456 \n
> > I expect to return '123456'
>
> And nothing following the number?
>
> p
On Apr 11, 4:10 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 11 Apr 2007 16:13:42 -0300, <[EMAIL PROTECTED]> escribió:
>
>
>
>
>
> > Hi folks,
> > I am trying to read the first occurence of non-whitespace in a file,
> > within a zipfile. Here is my code:
>
> > zipnames = glob.glob("
Hi folks,
I am trying to read the first occurence of non-whitespace in a file,
within a zipfile. Here is my code:
zipnames = glob.glob("*")
for zipname in zipnames:
z = zipfile.ZipFile(zipname, "r")
for filename in z.namelist():
count = len(z.read(filename).split('\n'))
if fnmatch.fnma