logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [psycopg] #178: argument formats can't be mixed: msg#00030

Subject: Re: [psycopg] #178: argument formats can't be mixed
On Thu, Jun 14, 2007 at 12:58:04PM +0200, Robert Siemer wrote:

> > We all agree that supporting "iterables" instead of just tuples in
> > execute and executemany is fine?
> 
> Definitely not! - I don't want them to iter over a string char-by-char! 
That's true. We need to be careful about what exactly we
think should be an "iterable" in this case.

> In use iscontainer(obj) in my programs, which is a function that test if 
> the object is basestring derived --> False, and than if iter() raises no
> exception --> True
Sounds very reasonable.

Thanks,
Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


<Prev in Thread] Current Thread [Next in Thread>