Daniel Nogradi wrote: > Caching? > >>>> from cPickle import dumps >>>> dumps('0') == dumps(str(0)) > True >>>> dumps('1') == dumps(str(1)) > True >>>> dumps('2') == dumps(str(2)) > True > ........ > ........ >>>> dumps('9') == dumps(str(9)) > True >>>> dumps('10') == dumps(str(10)) > False >>>> dumps('11') == dumps(str(11)) > False
All strings of length 0 (there is 1) and 1 (there are 256) are interned. - Josiah -- http://mail.python.org/mailman/listinfo/python-list