mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Better error msg for 3-arg pow with a float argument.
This commit is contained in:
		
							parent
							
								
									773c83be04
								
							
						
					
					
						commit
						97f4a33e12
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -481,7 +481,7 @@ float_pow(PyObject *v, PyObject *w, PyObject *z)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((PyObject *)z != Py_None) {
 | 
						if ((PyObject *)z != Py_None) {
 | 
				
			||||||
		PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
 | 
							PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
 | 
				
			||||||
			"allowed unless all other arguments are integers");
 | 
								"allowed unless all arguments are integers");
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue