mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 10:26:02 +00:00 
			
		
		
		
	Minor updates to add more pointers to the pickle documentation, and to
clarify some of the interface.
This commit is contained in:
		
							parent
							
								
									fd4f069b12
								
							
						
					
					
						commit
						d44e7ad702
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -24,9 +24,15 @@ functions or class instances. | |||
|   Declares that \var{function} should be used as a ``reduction'' | ||||
|   function for objects of type \var{type}; \var{type} should not a | ||||
|   class object.  \var{function} should return either a string or a | ||||
|   tuple.  The optional \var{constructor} parameter, if provided, is a | ||||
|   tuple containing two or three elements. | ||||
| 
 | ||||
|   The optional \var{constructor} parameter, if provided, is a | ||||
|   callable object which can be used to reconstruct the object when | ||||
|   called with the tuple of arguments returned by \var{function} at | ||||
|   pickling time.  \exception{TypeError} will be raised if | ||||
|   \var{object} is a class or \var{constructor} is not callable. | ||||
| 
 | ||||
|   See the \refmodule{pickle} module for more | ||||
|   details on the interface expected of \var{function} and | ||||
|   \var{constructor}. | ||||
| \end{funcdesc} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Barry Warsaw
						Barry Warsaw