[Tutor] join question
Emile van Sebille
emile at fenx.com
Thu Oct 14 16:16:28 CEST 2010
On 10/14/2010 6:50 AM Roelof Wobben said...
>
>
> Hello,
>
> I found this answer to a problem for me :
>
>
> print ''.join([zf.getinfo('%s.txt' % p).comment for p in zpp])
>
> So I thought that this would be the same :
>
> for p in zpp:
> test = zf.getinfo(p).comment
This isn't transcribed properly
test = zf.getinfo('%s.txt' % p).comment
> print ''.join(test)
>
> But it seems not to work
>
> Can anyone explain why not ?
>
> Roelof
>
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list