[Python-bugs-list] [ python-Bugs-407538 ] pickling fails on Unicode strings with newlines
nobody
nobody@sourceforge.net
Sat, 10 Mar 2001 11:36:40 -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: Closed
Priority: 5
Submitted By: Will Partain
Assigned to: Guido van Rossum
Summary: pickling fails on Unicode 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()
----------------------------------------------------------------------
Comment By: Guido van Rossum
Date: 2001-03-10 11:36
Message:
Logged In: YES
user_id=6380
Thanks. This is a known bug in 2.0. It has been fixed in
2.1.
Note that it is only a problem with Unicode strings.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=407538&group_id=5470