how to prevent the "extended call syntax" (*) from expanding a string into a list of characters

James Mills prologic at shortcircuit.net.au
Thu Jul 22 02:53:05 EDT 2010


On Thu, Jul 22, 2010 at 4:26 PM, fulv <fulviocasali at gmail.com> wrote:
>  args = (connection_string)

Replace this with:

args = (connection_string,)

NOTE: The trailing , (comma) indicating that this _is_ a tuple.

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"



More information about the Python-list mailing list