mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	fix *serious* (new) bug in testbool: by default objects should test
true, not false!!!
This commit is contained in:
		
							parent
							
								
									448f4bf45a
								
							
						
					
					
						commit
						f9a2d33f01
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1422,7 +1422,7 @@ testbool(v) | |||
| 	else if (v->ob_type->tp_as_sequence != NULL) | ||||
| 		res = (*v->ob_type->tp_as_sequence->sq_length)(v); | ||||
| 	else | ||||
| 		res = 0; | ||||
| 		res = 1; | ||||
| 	if (res > 0) | ||||
| 		res = 1; | ||||
| 	return res; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum