joining NoneType and DateTimeType

S

s99999999s2003

hi
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?
thanks
 
S

Simon Brunning

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top