On Mar 18, 4:50 pm, "andrew cooke" <and...@acooke.org> wrote:

> this is completely normal (i do exactly this all the time), BUT you should
> use "==", not "is".  

Typically, but not always; for example check out the identity map [1]
pattern used in SQLAlchemy [2].

George

[1] http://martinfowler.com/eaaCatalog/identityMap.html
[2] http://www.sqlalchemy.org/docs/05/session.html#what-does-the-session-do
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to