82 Function to compile one Python source file to Python bytecode |
82 Function to compile one Python source file to Python bytecode |
83 and to perform a pyflakes check. |
83 and to perform a pyflakes check. |
84 </p> |
84 </p> |
85 <dl> |
85 <dl> |
86 |
86 |
87 <dt><i>filename</i></dt> |
87 <dt><i>filename</i> (str)</dt> |
88 <dd> |
88 <dd> |
89 source filename (string) |
89 source filename |
90 </dd> |
90 </dd> |
91 <dt><i>codestring</i></dt> |
91 <dt><i>codestring</i> (str)</dt> |
92 <dd> |
92 <dd> |
93 string containing the code to compile (string) |
93 string containing the code to compile |
94 </dd> |
94 </dd> |
95 <dt><i>checkFlakes</i></dt> |
95 <dt><i>checkFlakes</i> (bool)</dt> |
96 <dd> |
96 <dd> |
97 flag indicating to do a pyflakes check (boolean) |
97 flag indicating to do a pyflakes check |
98 </dd> |
98 </dd> |
99 <dt><i>ignoreStarImportWarnings</i></dt> |
99 <dt><i>ignoreStarImportWarnings</i> (bool)</dt> |
100 <dd> |
100 <dd> |
101 flag indicating to |
101 flag indicating to |
102 ignore 'star import' warnings (boolean) |
102 ignore 'star import' warnings |
103 </dd> |
103 </dd> |
104 </dl> |
104 </dl> |
105 <dl> |
105 <dl> |
106 <dt>Return:</dt> |
106 <dt>Return:</dt> |
107 <dd> |
107 <dd> |
109 hold a list containing details about the error/ warnings |
109 hold a list containing details about the error/ warnings |
110 (file name, line number, column, codestring (only at syntax |
110 (file name, line number, column, codestring (only at syntax |
111 errors), the message, a list with arguments for the message) |
111 errors), the message, a list with arguments for the message) |
112 </dd> |
112 </dd> |
113 </dl> |
113 </dl> |
|
114 <dl> |
|
115 <dt>Return Type:</dt> |
|
116 <dd> |
|
117 dict |
|
118 </dd> |
|
119 </dl> |
114 <div align="right"><a href="#top">Up</a></div> |
120 <div align="right"><a href="#top">Up</a></div> |
115 <hr /> |
121 <hr /> |
116 <hr /> |
122 <hr /> |
117 <a NAME="extractLineFlags" ID="extractLineFlags"></a> |
123 <a NAME="extractLineFlags" ID="extractLineFlags"></a> |
118 <h2>extractLineFlags</h2> |
124 <h2>extractLineFlags</h2> |