| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + The locals() dictionary now displays in the lexical order that variables | ||
| 2 | + were defined. Previously, the order was reversed. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -791,7 +791,7 @@ map_to_dict(PyObject *map, Py_ssize_t nmap, PyObject *dict, PyObject **values, | |||
| 791 | 791 | assert(PyTuple_Check(map)); | |
| 792 | 792 | assert(PyDict_Check(dict)); | |
| 793 | 793 | assert(PyTuple_Size(map) >= nmap); | |
| 794 | - for (j = nmap; --j >= 0; ) { | ||
| 794 | + for (j=0; j < nmap; j++) { | ||
| 795 | 795 | PyObject *key = PyTuple_GET_ITEM(map, j); | |
| 796 | 796 | PyObject *value = values[j]; | |
| 797 | 797 | assert(PyUnicode_Check(key)); | |
@@ -844,7 +844,7 @@ dict_to_map(PyObject *map, Py_ssize_t nmap, PyObject *dict, PyObject **values, | |||
| 844 | 844 | assert(PyTuple_Check(map)); | |
| 845 | 845 | assert(PyDict_Check(dict)); | |
| 846 | 846 | assert(PyTuple_Size(map) >= nmap); | |
| 847 | - for (j = nmap; --j >= 0; ) { | ||
| 847 | + for (j=0; j < nmap; j++) { | ||
| 848 | 848 | PyObject *key = PyTuple_GET_ITEM(map, j); | |
| 849 | 849 | PyObject *value = PyObject_GetItem(dict, key); | |
| 850 | 850 | assert(PyUnicode_Check(key)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments