what the wrong with the following code ????

>>> d={"server":"mpilgrim","database":"master",
... "uid":"sa",
... "pwd":"secret"}

>>> d
{'pwd': 'secret', 'database': 'master', 'uid': 'sa', 'server':
'mpilgrim'}

>>> ["%s="%s" % (k,v) for k,v in d.items()]
  File "<stdin>", line 1
    ["%s="%s" % (k,v) for k,v in d.items()]
                                          ^
SyntaxError: EOL while scanning single-quoted string
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to