mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Document that apply() can now take any sequence in argument 2.
This commit is contained in:
		
							parent
							
								
									968f8cbace
								
							
						
					
					
						commit
						b2031f72d3
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -55,8 +55,9 @@ find the \code{eggs} variable.
 | 
				
			||||||
\begin{funcdesc}{apply}{function, args\optional{, keywords}}
 | 
					\begin{funcdesc}{apply}{function, args\optional{, keywords}}
 | 
				
			||||||
The \var{function} argument must be a callable object (a user-defined or
 | 
					The \var{function} argument must be a callable object (a user-defined or
 | 
				
			||||||
built-in function or method, or a class object) and the \var{args}
 | 
					built-in function or method, or a class object) and the \var{args}
 | 
				
			||||||
argument must be a tuple.  The \var{function} is called with
 | 
					argument must be a sequence (if it is not a tuple, the sequence is
 | 
				
			||||||
\var{args} as argument list; the number of arguments is the the length
 | 
					first converted to a tuple).  The \var{function} is called with
 | 
				
			||||||
 | 
					\var{args} as the argument list; the number of arguments is the the length
 | 
				
			||||||
of the tuple.  (This is different from just calling
 | 
					of the tuple.  (This is different from just calling
 | 
				
			||||||
\code{\var{func}(\var{args})}, since in that case there is always
 | 
					\code{\var{func}(\var{args})}, since in that case there is always
 | 
				
			||||||
exactly one argument.)
 | 
					exactly one argument.)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue