Side by Side Diff

Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(381)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Side by Side Diff: Python/import.c

Issue 20103: http://bugs.python.org/issue2459 -- speed up loops Base URL: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: Created 16 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Python/compile.c ('k') | Python/peephole.c » ('j') | no next file with comments »
('i') | ('e') | ('c') | ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « Python/compile.c ('k') | Python/peephole.c » ('j') | no next file with comments »
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /