mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	CallMethod is faster with a NULL third-argument than with an empty format string.
This commit is contained in:
		
							parent
							
								
									9748a1098f
								
							
						
					
					
						commit
						867558afd6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2050,7 +2050,7 @@ builtin_trunc(PyObject *self, PyObject *number) | |||
|         /* XXX: The py3k branch gets better errors for this by using
 | ||||
|            _PyType_Lookup(), but since float's mro isn't set in py2.6, | ||||
|            we just use PyObject_CallMethod here. */ | ||||
| 	return PyObject_CallMethod(number, "__trunc__", ""); | ||||
| 	return PyObject_CallMethod(number, "__trunc__", NULL); | ||||
| } | ||||
| 
 | ||||
| PyDoc_STRVAR(trunc_doc, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger