On Wed, Sep 15, 2010 at 10:51 AM, Benjamin Peterson <report@bugs.python.org> wrote:
I'm not sure if this pickling stuff matters as long as they both pickle.

I'm not sure either.  Do other Python implementations try to maintain a compatible pickle format with CPython?  If so, I think CPython's C and Python versions should also pickle to the same format.
 
Yes, all the code expects an AttributeError on name is it's not
present. For example, FileIO only sets its name attribute if it is
passed a filename and not an fd.

Actually, FileIO sets the name attribute to the file descriptor if it isn't passed a name:

>>> f = io.FileIO(1)
>>> f.name
1