str() and repr() question

Thomas Krüger see_signature at nospam.nowire.org
Thu Apr 26 04:25:21 EDT 2007


adima schrieb:
> 		str = DoTestTime(EachFile)
                ^^^
> 		print type(str)
> 		for s in str:
> 			print s
> 			out.write(str(s))
                                  ^^^

> Where is the problem here?
> Thanks in advance.
> 

You have overwritten the built-in str function some lines above.

Thomas

-- 
sinature: http://nospam.nowire.org/signature_usenet.png



More information about the Python-list mailing list