mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Merge str docstring fix from 3.2
This commit is contained in:
		
						commit
						0e41628d35
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -14083,11 +14083,15 @@ unicode_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| } | ||||
| 
 | ||||
| PyDoc_STRVAR(unicode_doc, | ||||
|              "str(string[, encoding[, errors]]) -> str\n\
 | ||||
|              "str(object[, encoding[, errors]]) -> str\n\
 | ||||
| \n\ | ||||
| Create a new string object from the given encoded string.\n\ | ||||
| encoding defaults to the current default string encoding.\n\ | ||||
| errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'."); | ||||
| Create a new string object from the given object. If encoding or\n\ | ||||
| errors is specified, then the object must expose a data buffer\n\ | ||||
| that will be decoded using the given encoding and error handler.\n\ | ||||
| Otherwise, returns the result of object.__str__() (if defined)\n\ | ||||
| or repr(object).\n\ | ||||
| encoding defaults to sys.getdefaultencoding().\n\ | ||||
| errors defaults to 'strict'."); | ||||
| 
 | ||||
| static PyObject *unicode_iter(PyObject *seq); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nick Coghlan
						Nick Coghlan