Disable automatic interning

George Sakkis george.sakkis at gmail.com
Thu Mar 19 02:30:26 CET 2009

On Mar 18, 4:50 pm, "andrew cooke" <and... at 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].


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

More information about the Python-list mailing list