joining NoneType and DateTimeType

Simon Brunning simon at brunningonline.net
Wed Jun 14 13:07:46 CEST 2006


On 14 Jun 2006 03:43:39 -0700, s99999999s2003 at yahoo.com
<s99999999s2003 at yahoo.com> wrote:
> i have some databse results that are NoneType and DateTimeType. now i
> have trouble
> joining these row results together like "|".join(result) as it says
> cannot join NoneType , DateTimeType . How can i change these types so i
> can join the columns together as string?

 "|".join(str(column) for column in result)

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list