mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	document IOBase.__del__'s behavior (closes #21764)
Patch from Nikolaus Rath.
This commit is contained in:
		
							parent
							
								
									a8c75fe31a
								
							
						
					
					
						commit
						ef8abfc082
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -353,6 +353,12 @@ I/O Base Classes
 | 
				
			||||||
      is usual for each of the lines provided to have a line separator at the
 | 
					      is usual for each of the lines provided to have a line separator at the
 | 
				
			||||||
      end.
 | 
					      end.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   .. method:: __del__()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      Prepare for object destruction. :class:`IOBase` provides a default
 | 
				
			||||||
 | 
					      implementation of this method that calls the instance's
 | 
				
			||||||
 | 
					      :meth:`~IOBase.close` method.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. class:: RawIOBase
 | 
					.. class:: RawIOBase
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue