mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	merge 3.2 (#13259)
This commit is contained in:
		
						commit
						3ed559a3c7
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -1157,6 +1157,14 @@ Basic customization
 | 
				
			||||||
   .. XXX what about subclasses of string?
 | 
					   .. XXX what about subclasses of string?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. method:: object.__bytes__(self)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   .. index:: builtin: bytes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Called by :func:`bytes` to compute a byte-string representation of an
 | 
				
			||||||
 | 
					   object. This should return a ``bytes`` object.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. method:: object.__format__(self, format_spec)
 | 
					.. method:: object.__format__(self, format_spec)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. index::
 | 
					   .. index::
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue