> Il problema per il quale avevo cominciato a debuggare dipendeva dal fatto > che self.filter_panel.add_filter_conditions(query) non ritornava nulla > Questo spiega il problema originario ma non il comportamento sopra > riportato...
il problema può essere visto in questo codice minimale: def test(): query = None zz test() eseguendo questo codice in ipython:: $ ipython /tmp/aa.py --------------------------------------------------------------------------- <type 'exceptions.NameError'> Traceback (most recent call last) /tmp/aa.py in <module>() 5 6 ----> 7 test() 8 9 /tmp/aa.py in test() 2 3 query = None ----> 4 zz 5 6 <type 'exceptions.NameError'>: global name 'zz' is not defined WARNING: Failure executing file: </tmp/aa.py> In [1]: debug > /tmp/aa.py(4)test() 3 query = None ----> 4 zz 5 ipdb> query = 1 ipdb> query ipdb> query is None True ??? *:-) -- Sandro Dentella *:-) http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python