Hello! On Wed, Jan 24, 2007 at 11:32:57PM +0200, Dan Pascu wrote: > The attached patch allows one to use set/frozenset sets (available since > python 2.4) or Set/ImmutableSet sets (available since python 2.3) as > sequences passed to the IN operator (currently only lists and tuples can > be used). In fact it'll accept a set of values everywhere a list/tuple of > values is accepted.
I am going to add the following tests: def test_dict(): assert sqlrepr({"key": "value"}, "sqlite") == "('key')" def test_sets(): try: set except NameError: pass else: assert sqlrepr(set([1])) == "(1)" try: from sets import Set except ImportError: pass else: assert sqlrepr(Set([1])) == "(1)" Any opinion? Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss