function return
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Thu Sep 11 19:28:32 EDT 2008
En Thu, 11 Sep 2008 10:59:10 -0300, Matt Nordhoff
<mnordhoff at mattnordhoff.com> escribió:
>> result = "%s\t%s\t%s" %(id,gene_symbol,ptms)
>
> This is very trivial, but you could change the above line to:
>
> result = "\t".join(id, gene_symbol, ptms)
So trivial that you did not even attempt to test it, I presume. It must
obviously work... except it doesn't :)
result = "\t".join((id, gene_symbol, ptms))
--
Gabriel Genellina
More information about the Python-list
mailing list