[Tutor] join question

Roelof Wobben rwobben at hotmail.com
Thu Oct 14 15:50:29 CEST 2010



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 
      print ''.join(test)
 
But it seems not to work
 
Can anyone explain why not ?
 
Roelof
 
 
  		 	   		  


More information about the Tutor mailing list