Documentation/Source/eric5.DebugClients.Python3.AsyncFile.html

changeset 945
8cd4d08fa9f6
parent 440
69ace3e2dcf6
child 1214
a65a4f31b051
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
151 <dd> 151 <dd>
152 the number of bytes to be written (int) 152 the number of bytes to be written (int)
153 </dd> 153 </dd>
154 </dl><a NAME="AsyncFile.close" ID="AsyncFile.close"></a> 154 </dl><a NAME="AsyncFile.close" ID="AsyncFile.close"></a>
155 <h4>AsyncFile.close</h4> 155 <h4>AsyncFile.close</h4>
156 <b>close</b>(<i>closeit = False</i>) 156 <b>close</b>(<i>closeit=False</i>)
157 <p> 157 <p>
158 Public method to close the file. 158 Public method to close the file.
159 </p><dl> 159 </p><dl>
160 <dt><i>closeit</i></dt> 160 <dt><i>closeit</i></dt>
161 <dd> 161 <dd>
196 <dd> 196 <dd>
197 the number of bytes to be written (int) 197 the number of bytes to be written (int)
198 </dd> 198 </dd>
199 </dl><a NAME="AsyncFile.read" ID="AsyncFile.read"></a> 199 </dl><a NAME="AsyncFile.read" ID="AsyncFile.read"></a>
200 <h4>AsyncFile.read</h4> 200 <h4>AsyncFile.read</h4>
201 <b>read</b>(<i>size = -1</i>) 201 <b>read</b>(<i>size=-1</i>)
202 <p> 202 <p>
203 Public method to read bytes from this file. 203 Public method to read bytes from this file.
204 </p><dl> 204 </p><dl>
205 <dt><i>size</i></dt> 205 <dt><i>size</i></dt>
206 <dd> 206 <dd>
211 <dd> 211 <dd>
212 the bytes read (any) 212 the bytes read (any)
213 </dd> 213 </dd>
214 </dl><a NAME="AsyncFile.read_p" ID="AsyncFile.read_p"></a> 214 </dl><a NAME="AsyncFile.read_p" ID="AsyncFile.read_p"></a>
215 <h4>AsyncFile.read_p</h4> 215 <h4>AsyncFile.read_p</h4>
216 <b>read_p</b>(<i>size = -1</i>) 216 <b>read_p</b>(<i>size=-1</i>)
217 <p> 217 <p>
218 Public method to read bytes from this file. 218 Public method to read bytes from this file.
219 </p><dl> 219 </p><dl>
220 <dt><i>size</i></dt> 220 <dt><i>size</i></dt>
221 <dd> 221 <dd>
226 <dd> 226 <dd>
227 the bytes read (any) 227 the bytes read (any)
228 </dd> 228 </dd>
229 </dl><a NAME="AsyncFile.readline" ID="AsyncFile.readline"></a> 229 </dl><a NAME="AsyncFile.readline" ID="AsyncFile.readline"></a>
230 <h4>AsyncFile.readline</h4> 230 <h4>AsyncFile.readline</h4>
231 <b>readline</b>(<i>sizehint = -1</i>) 231 <b>readline</b>(<i>sizehint=-1</i>)
232 <p> 232 <p>
233 Public method to read one line from this file. 233 Public method to read one line from this file.
234 </p><dl> 234 </p><dl>
235 <dt><i>sizehint</i></dt> 235 <dt><i>sizehint</i></dt>
236 <dd> 236 <dd>
241 <dd> 241 <dd>
242 one line read (string) 242 one line read (string)
243 </dd> 243 </dd>
244 </dl><a NAME="AsyncFile.readline_p" ID="AsyncFile.readline_p"></a> 244 </dl><a NAME="AsyncFile.readline_p" ID="AsyncFile.readline_p"></a>
245 <h4>AsyncFile.readline_p</h4> 245 <h4>AsyncFile.readline_p</h4>
246 <b>readline_p</b>(<i>size = -1</i>) 246 <b>readline_p</b>(<i>size=-1</i>)
247 <p> 247 <p>
248 Public method to read a line from this file. 248 Public method to read a line from this file.
249 </p><p> 249 </p><p>
250 <b>Note</b>: This method will not block and may return 250 <b>Note</b>: This method will not block and may return
251 only a part of a line if that is all that is available. 251 only a part of a line if that is all that is available.
259 <dd> 259 <dd>
260 one line of text up to size bytes (string) 260 one line of text up to size bytes (string)
261 </dd> 261 </dd>
262 </dl><a NAME="AsyncFile.readlines" ID="AsyncFile.readlines"></a> 262 </dl><a NAME="AsyncFile.readlines" ID="AsyncFile.readlines"></a>
263 <h4>AsyncFile.readlines</h4> 263 <h4>AsyncFile.readlines</h4>
264 <b>readlines</b>(<i>sizehint = -1</i>) 264 <b>readlines</b>(<i>sizehint=-1</i>)
265 <p> 265 <p>
266 Public method to read all lines from this file. 266 Public method to read all lines from this file.
267 </p><dl> 267 </p><dl>
268 <dt><i>sizehint</i></dt> 268 <dt><i>sizehint</i></dt>
269 <dd> 269 <dd>
274 <dd> 274 <dd>
275 list of lines read (list of strings) 275 list of lines read (list of strings)
276 </dd> 276 </dd>
277 </dl><a NAME="AsyncFile.seek" ID="AsyncFile.seek"></a> 277 </dl><a NAME="AsyncFile.seek" ID="AsyncFile.seek"></a>
278 <h4>AsyncFile.seek</h4> 278 <h4>AsyncFile.seek</h4>
279 <b>seek</b>(<i>offset, whence = 0</i>) 279 <b>seek</b>(<i>offset, whence=0</i>)
280 <p> 280 <p>
281 Public method to move the filepointer. 281 Public method to move the filepointer.
282 </p><dl> 282 </p><dl>
283 <dt><i>offset</i></dt> 283 <dt><i>offset</i></dt>
284 <dd> 284 <dd>
304 This method is not supported and always raises an 304 This method is not supported and always raises an
305 IOError. 305 IOError.
306 </dd> 306 </dd>
307 </dl><a NAME="AsyncFile.truncate" ID="AsyncFile.truncate"></a> 307 </dl><a NAME="AsyncFile.truncate" ID="AsyncFile.truncate"></a>
308 <h4>AsyncFile.truncate</h4> 308 <h4>AsyncFile.truncate</h4>
309 <b>truncate</b>(<i>size = -1</i>) 309 <b>truncate</b>(<i>size=-1</i>)
310 <p> 310 <p>
311 Public method to truncate the file. 311 Public method to truncate the file.
312 </p><dl> 312 </p><dl>
313 <dt><i>size</i></dt> 313 <dt><i>size</i></dt>
314 <dd> 314 <dd>

eric ide

mercurial