mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Issue #12844: More than 255 arguments can now be passed to a function.
This commit is contained in:
		
							parent
							
								
									d070b2ddbb
								
							
						
					
					
						commit
						214678e44b
					
				
					 4 changed files with 70 additions and 67 deletions
				
			
		|  | @ -2738,11 +2738,6 @@ ast_for_call(struct compiling *c, const node *n, expr_ty func) | |||
|         return NULL; | ||||
|     } | ||||
| 
 | ||||
|     if (nargs + nkeywords + ngens > 255) { | ||||
|         ast_error(c, n, "more than 255 arguments"); | ||||
|         return NULL; | ||||
|     } | ||||
| 
 | ||||
|     args = _Py_asdl_seq_new(nargs + ngens, c->c_arena); | ||||
|     if (!args) | ||||
|         return NULL; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka