mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
This commit is contained in:
		
							parent
							
								
									b505a6ac91
								
							
						
					
					
						commit
						b9183950d8
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -155,8 +155,9 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. method:: close()
 | 
					   .. method:: close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Close the file.  Subsequent calls to other methods of the object will
 | 
					      Closes the mmap. Subsequent calls to other methods of the object will
 | 
				
			||||||
      result in an exception being raised.
 | 
					      result in a ValueError exception being raised. This will not close
 | 
				
			||||||
 | 
					      the open file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. attribute:: closed
 | 
					   .. attribute:: closed
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue