function return

Matt Nordhoff mnordhoff at mattnordhoff.com
Fri Sep 12 02:07:16 EDT 2008


Gabriel Genellina wrote:
> 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))

Haha, whoops. Sorry!
-- 



More information about the Python-list mailing list