Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61822

Re: TypeError: not all arguments converted during string formatting

Date 2013-12-13 14:26 +0100
From Ervin Hegedüs <airween@gmail.com>
Subject Re: TypeError: not all arguments converted during string formatting
References <01721890-9bbb-4c90-9668-11a73ef5ea8a@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.4069.1386941301.18130.python-list@python.org> (permalink)

Show all headers | View raw


hello,

On Fri, Dec 13, 2013 at 05:18:59AM -0800, Jai wrote:
>             sql = """insert into
>             fashion(GENDER,links,category,item_content,price,seller) \
> VAlUES('%s','%s','%s','%s','%s','s')"""
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

may be you miss a "%" sign?

>     query = query % db.literal(args)
> TypeError: not all arguments converted during string formatting


cheers:


a.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

TypeError: not all arguments converted during string formatting Jai <jaiprakashsingh213@gmail.com> - 2013-12-13 05:18 -0800
  Re: TypeError: not all arguments converted during string formatting Ervin Hegedüs <airween@gmail.com> - 2013-12-13 14:26 +0100
  Re: TypeError: not all arguments converted during string formatting Peter Otten <__peter__@web.de> - 2013-12-13 14:33 +0100

csiph-web