[Python-bugs-list] [ python-Bugs-407538 ] pickling fails on strings with newlines

nobody nobody@sourceforge.net
Sat, 10 Mar 2001 06:28:45 -0800


Bugs #407538, was updated on 2001-03-10 06:28
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=407538&group_id=5470

Category: Python Library
Group: None
Status: Open
Priority: 5
Submitted By: Will Partain
Assigned to: Nobody/Anonymous
Summary: pickling fails on strings with newlines

Initial Comment:
#! /usr/bin/env python

# duznae work (this is with 2.0 on solaris)

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()


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=407538&group_id=5470