mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Correctly document class instead of function (GH-32016)
This commit is contained in:
		
							parent
							
								
									b0f886d1bc
								
							
						
					
					
						commit
						624e3986fb
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -99,9 +99,9 @@ The module defines the following user-callable items:
 | 
				
			||||||
      Added *errors* parameter.
 | 
					      Added *errors* parameter.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. function:: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None)
 | 
					.. class:: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   This function operates exactly as :func:`TemporaryFile` does, except that
 | 
					   This class operates exactly as :func:`TemporaryFile` does, except that
 | 
				
			||||||
   data is spooled in memory until the file size exceeds *max_size*, or
 | 
					   data is spooled in memory until the file size exceeds *max_size*, or
 | 
				
			||||||
   until the file's :func:`fileno` method is called, at which point the
 | 
					   until the file's :func:`fileno` method is called, at which point the
 | 
				
			||||||
   contents are written to disk and operation proceeds as with
 | 
					   contents are written to disk and operation proceeds as with
 | 
				
			||||||
| 
						 | 
					@ -124,9 +124,9 @@ The module defines the following user-callable items:
 | 
				
			||||||
      Added *errors* parameter.
 | 
					      Added *errors* parameter.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. function:: TemporaryDirectory(suffix=None, prefix=None, dir=None, ignore_cleanup_errors=False)
 | 
					.. class:: TemporaryDirectory(suffix=None, prefix=None, dir=None, ignore_cleanup_errors=False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   This function securely creates a temporary directory using the same rules as :func:`mkdtemp`.
 | 
					   This class securely creates a temporary directory using the same rules as :func:`mkdtemp`.
 | 
				
			||||||
   The resulting object can be used as a context manager (see
 | 
					   The resulting object can be used as a context manager (see
 | 
				
			||||||
   :ref:`tempfile-examples`).  On completion of the context or destruction
 | 
					   :ref:`tempfile-examples`).  On completion of the context or destruction
 | 
				
			||||||
   of the temporary directory object, the newly created temporary directory
 | 
					   of the temporary directory object, the newly created temporary directory
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue