Compare recursively objects

Nicolas Fleury nid_oizo at yahoo.com_remove_the_
Wed Mar 17 11:54:15 EST 2004


Paul McGuire wrote:
> In sum, I suspect you will get diverted to dealing with a whole bunch of
> issues that are artifacts of using files, when what you really wanted to do
> is compare some objects.  Perhaps you could pickle to a string and compare
> the strings?  At least this avoids most of the file system complications.

Sounds like a good idea.  I am only in need of that functionality for 
unit testing, so I guess pickle to StringIO is a nice idea.

Thx
Nicolas



More information about the Python-list mailing list