| OLD | NEW |
| 1 | 1 |
| 2 /* Module definition and import implementation */ | 2 /* Module definition and import implementation */ |
| 3 | 3 |
| 4 #include "Python.h" | 4 #include "Python.h" |
| 5 | 5 |
| 6 #include "Python-ast.h" | 6 #include "Python-ast.h" |
| 7 #undef Yield /* undefine macro conflicting with winbase.h */ | 7 #undef Yield /* undefine macro conflicting with winbase.h */ |
| 8 #include "pyarena.h" | 8 #include "pyarena.h" |
| 9 #include "pythonrun.h" | 9 #include "pythonrun.h" |
| 10 #include "errcode.h" | 10 #include "errcode.h" |
| (...skipping 56 matching lines...) | | Loading... |
| 67 Python 2.5b3: 62101 (fix wrong code: for x, in ...) | 67 Python 2.5b3: 62101 (fix wrong code: for x, in ...) |
| 68 Python 2.5b3: 62111 (fix wrong code: x += yield) | 68 Python 2.5b3: 62111 (fix wrong code: x += yield) |
| 69 Python 2.5c1: 62121 (fix wrong lnotab with for loops and | 69 Python 2.5c1: 62121 (fix wrong lnotab with for loops and |
| 70 storing constants that should have been removed) | 70 storing constants that should have been removed) |
| 71 Python 2.5c2: 62131 (fix wrong code: for x, in ... in listcomp/genexp) | 71 Python 2.5c2: 62131 (fix wrong code: for x, in ... in listcomp/genexp) |
| 72 Python 2.6a0: 62151 (peephole optimizations and STORE_MAP opcode) | 72 Python 2.6a0: 62151 (peephole optimizations and STORE_MAP opcode) |
| 73 Python 2.6a1: 62161 (WITH_CLEANUP optimization) | 73 Python 2.6a1: 62161 (WITH_CLEANUP optimization) |
| 74 Python 2.7a0: 62171 (optimize list comprehensions/change LIST_APPEND) | 74 Python 2.7a0: 62171 (optimize list comprehensions/change LIST_APPEND) |
| 75 Python 2.7a0: 62181 (optimize conditional branches: | 75 Python 2.7a0: 62181 (optimize conditional branches: |
| 76 introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE) | 76 introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE) |
| 77 Python 2.7a0: 62191 (FOR_ITER optimization, |
| 78 lnotab format allowing negative line increments) |
| 77 . | 79 . |
| 78 */ | 80 */ |
| 79 #define MAGIC (62181 | ((long)'\r'<<16) | ((long)'\n'<<24)) | 81 #define MAGIC (62191 | ((long)'\r'<<16) | ((long)'\n'<<24)) |
| 80 | 82 |
| 81 /* Magic word as global; note that _PyImport_Init() can change the | 83 /* Magic word as global; note that _PyImport_Init() can change the |
| 82 value of this global to accommodate for alterations of how the | 84 value of this global to accommodate for alterations of how the |
| 83 compiler works which are enabled by command line switches. */ | 85 compiler works which are enabled by command line switches. */ |
| 84 static long pyc_magic = MAGIC; | 86 static long pyc_magic = MAGIC; |
| 85 | 87 |
| 86 /* See _PyImport_FixupExtension() below */ | 88 /* See _PyImport_FixupExtension() below */ |
| 87 static PyObject *extensions = NULL; | 89 static PyObject *extensions = NULL; |
| 88 | 90 |
| 89 /* This table is defined in config.c: */ | 91 /* This table is defined in config.c: */ |
| (...skipping 3294 matching lines...) | | Loading... |
| 3384 | 3386 |
| 3385 newtab[0].name = name; | 3387 newtab[0].name = name; |
| 3386 newtab[0].initfunc = initfunc; | 3388 newtab[0].initfunc = initfunc; |
| 3387 | 3389 |
| 3388 return PyImport_ExtendInittab(newtab); | 3390 return PyImport_ExtendInittab(newtab); |
| 3389 } | 3391 } |
| 3390 | 3392 |
| 3391 #ifdef __cplusplus | 3393 #ifdef __cplusplus |
| 3392 } | 3394 } |
| 3393 #endif | 3395 #endif |
| OLD | NEW |