python pickling bug? (off-topic)

Will Partain <[email protected]>
Newsgroups gmane.comp.sysutils.ark.devel
Message-ID <[email protected]>
I think the script below demonstrates a python pickling bug;
if any of you more-Pythonic dudes can point out the error of
my ways, it will be ARK-beneficial :-)

[I've already submitted a bug report to Python land]

Will

======================
#! /usr/bin/env python

def main():
    # fails with both pickle and cPickle
    import pickle
    test_in = u"""
      Test Input
    , Line 2
    , Line 3
    """
    test_out = pickle.loads(pickle.dumps(test_in))
    print test_out

if __name__ == '__main__': main()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.