src/eric7/Documentation/Source/eric7.SystemUtilities.PythonUtilities.html

branch
eric7
changeset 10431
64157aeb0312
parent 10358
957c9de01d42
child 10479
856476537696
equal deleted inserted replaced
10430:e440aaf179ce 10431:64157aeb0312
137 <p> 137 <p>
138 Function to determine the python version of a given file. 138 Function to determine the python version of a given file.
139 </p> 139 </p>
140 <dl> 140 <dl>
141 141
142 <dt><i>filename</i></dt> 142 <dt><i>filename</i> (str)</dt>
143 <dd> 143 <dd>
144 name of the file with extension (str) 144 name of the file with extension
145 </dd> 145 </dd>
146 <dt><i>source</i></dt> 146 <dt><i>source</i> (str)</dt>
147 <dd> 147 <dd>
148 of the file (str) 148 of the file
149 </dd> 149 </dd>
150 <dt><i>editor</i></dt> 150 <dt><i>editor</i> (Editor)</dt>
151 <dd> 151 <dd>
152 reference to the editor, if the file is opened 152 reference to the editor, if the file is opened already
153 already (Editor object) 153 </dd>
154 </dd> 154 </dl>
155 </dl> 155 <dl>
156 <dl> 156 <dt>Return:</dt>
157 <dt>Return:</dt> 157 <dd>
158 <dd> 158 Python version if file is Python3
159 Python version if file is Python3 (int) 159 </dd>
160 </dl>
161 <dl>
162 <dt>Return Type:</dt>
163 <dd>
164 int
160 </dd> 165 </dd>
161 </dl> 166 </dl>
162 <div align="right"><a href="#top">Up</a></div> 167 <div align="right"><a href="#top">Up</a></div>
163 <hr /> 168 <hr />
164 <hr /> 169 <hr />
199 Function to determine the path to Python's library. 204 Function to determine the path to Python's library.
200 </p> 205 </p>
201 <dl> 206 <dl>
202 <dt>Return:</dt> 207 <dt>Return:</dt>
203 <dd> 208 <dd>
204 path to the Python library (string) 209 path to the Python library
210 </dd>
211 </dl>
212 <dl>
213 <dt>Return Type:</dt>
214 <dd>
215 str
205 </dd> 216 </dd>
206 </dl> 217 </dl>
207 <div align="right"><a href="#top">Up</a></div> 218 <div align="right"><a href="#top">Up</a></div>
208 <hr /> 219 <hr />
209 <hr /> 220 <hr />
259 Function to get the Python version (major, minor) as an integer value. 270 Function to get the Python version (major, minor) as an integer value.
260 </p> 271 </p>
261 <dl> 272 <dl>
262 <dt>Return:</dt> 273 <dt>Return:</dt>
263 <dd> 274 <dd>
264 An integer representing major and minor version number (integer) 275 integer representing major and minor version number
276 </dd>
277 </dl>
278 <dl>
279 <dt>Return Type:</dt>
280 <dd>
281 int
265 </dd> 282 </dd>
266 </dl> 283 </dl>
267 <div align="right"><a href="#top">Up</a></div> 284 <div align="right"><a href="#top">Up</a></div>
268 <hr /> 285 <hr />
269 <hr /> 286 <hr />

eric ide

mercurial