[Python-Dev] doctest and pickle

Mark Janssen dreamingforward at gmail.com
Fri Jun 7 19:50:50 CEST 2013


>     >>> from pickle import dumps, loads
>     >>> Fruit.tomato is loads(dumps(Fruit.tomato))
>     True

Why are you using is here instead of ==?  You're making a circular
loop using "is"
-- 
MarkJ
Tacoma, Washington


More information about the Python-Dev mailing list