mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	in dict displays, evaluate the key before the value (closes #11205)
Patch partially by Steve Dougherty.
This commit is contained in:
		
							parent
							
								
									44e625860b
								
							
						
					
					
						commit
						ee85339cc6
					
				
					 6 changed files with 127 additions and 113 deletions
				
			
		|  | @ -2584,8 +2584,8 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) | |||
|                 goto error; | ||||
|             while (--oparg >= 0) { | ||||
|                 int err; | ||||
|                 PyObject *key = TOP(); | ||||
|                 PyObject *value = SECOND(); | ||||
|                 PyObject *value = TOP(); | ||||
|                 PyObject *key = SECOND(); | ||||
|                 STACKADJ(-2); | ||||
|                 err = PyDict_SetItem(map, key, value); | ||||
|                 Py_DECREF(value); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson