mirror of
				https://github.com/python/cpython.git
				synced 2025-10-28 20:25:04 +00:00 
			
		
		
		
	 be467e5c69
			
		
	
	
		be467e5c69
		
	
	
	
	
		
			
			Strings are unpickled by calling eval on the string's repr. This
    change makes pickle work like cPickle; it checks if the pickled
    string is safe to eval and raises ValueError if it is not.
test suite modifications:
    Verify that pickle catches a variety of insecure string pickles
    Make test_pickle and test_cpickle use exactly the same test suite
    Add test for pickling recursive object
		
	
			
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			89 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			89 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Test the cPickle module
 | |
| 
 | |
| import cPickle
 | |
| import test_pickle
 | |
| test_pickle.dotest(cPickle)
 |