On Thu, Apr 15, 2010 at 03:56:08PM +0200, Frank Wagner wrote:
> (Gebucht.q.OPTIONSDATUM is None)
(Gebucht.q.OPTIONSDATUM == None)
Python allow to override == operator (__eq__ magic method) but not 'is'.
Hence SQLObject can do symbolic manipulation with '== None' but cannot
catch 'is None' - Python already passed False and SQLObject happily
converts it to 0.
Oleg.
--
Oleg Broytman http://phd.pp.ru/ [email protected]
Programmers don't die, they just GOSUB without RETURN.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss