mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Bug #1486663: don't reject keyword arguments for subclasses of builtin
types.
This commit is contained in:
		
							parent
							
								
									aef4c6bc00
								
							
						
					
					
						commit
						b84c13792d
					
				
					 9 changed files with 62 additions and 16 deletions
				
			
		|  | @ -1797,7 +1797,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 	PyObject *initial = NULL, *it = NULL; | ||||
| 	struct arraydescr *descr; | ||||
| 	 | ||||
| 	if (!_PyArg_NoKeywords("array.array()", kwds)) | ||||
| 	if (type == &Arraytype && !_PyArg_NoKeywords("array.array()", kwds)) | ||||
| 		return NULL; | ||||
| 
 | ||||
| 	if (!PyArg_ParseTuple(args, "c|O:array", &c, &initial)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl