mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Clarified that the footnote applies to versions 1.5 and after instead of
just version 1.5. Closes SF bug 577793.
This commit is contained in:
		
							parent
							
								
									57e79459fa
								
							
						
					
					
						commit
						a0e4d6ceaf
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -986,10 +986,10 @@ instead.  Also, when \method{__del__()} is invoked in response to a module
 | 
				
			||||||
being deleted (e.g., when execution of the program is done), other
 | 
					being deleted (e.g., when execution of the program is done), other
 | 
				
			||||||
globals referenced by the \method{__del__()} method may already have been
 | 
					globals referenced by the \method{__del__()} method may already have been
 | 
				
			||||||
deleted.  For this reason, \method{__del__()} methods should do the
 | 
					deleted.  For this reason, \method{__del__()} methods should do the
 | 
				
			||||||
absolute minimum needed to maintain external invariants.  Python 1.5
 | 
					absolute minimum needed to maintain external invariants.  Starting with
 | 
				
			||||||
guarantees that globals whose name begins with a single underscore are
 | 
					version 1.5, Python guarantees that globals whose name begins with a single
 | 
				
			||||||
deleted from their module before other globals are deleted; if no
 | 
					underscore are deleted from their module before other globals are deleted;
 | 
				
			||||||
other references to such globals exist, this may help in assuring that
 | 
					if no other references to such globals exist, this may help in assuring that
 | 
				
			||||||
imported modules are still available at the time when the
 | 
					imported modules are still available at the time when the
 | 
				
			||||||
\method{__del__()} method is called.
 | 
					\method{__del__()} method is called.
 | 
				
			||||||
\end{notice}
 | 
					\end{notice}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue