146 </p><dl> |
146 </p><dl> |
147 <dt><i>mode</i></dt> |
147 <dt><i>mode</i></dt> |
148 <dd> |
148 <dd> |
149 the mode to be checked (string) |
149 the mode to be checked (string) |
150 </dd> |
150 </dd> |
|
151 </dl><dl> |
|
152 <dt>Raises <b>IOError</b>:</dt> |
|
153 <dd> |
|
154 raised to indicate a bad file descriptor |
|
155 </dd> |
151 </dl><a NAME="AsyncFile.__nWrite" ID="AsyncFile.__nWrite"></a> |
156 </dl><a NAME="AsyncFile.__nWrite" ID="AsyncFile.__nWrite"></a> |
152 <h4>AsyncFile.__nWrite</h4> |
157 <h4>AsyncFile.__nWrite</h4> |
153 <b>__nWrite</b>(<i>n</i>) |
158 <b>__nWrite</b>(<i>n</i>) |
154 <p> |
159 <p> |
155 Private method to write a specific number of pending bytes. |
160 Private method to write a specific number of pending bytes. |
285 <h4>AsyncFile.seek</h4> |
290 <h4>AsyncFile.seek</h4> |
286 <b>seek</b>(<i>offset, whence=0</i>) |
291 <b>seek</b>(<i>offset, whence=0</i>) |
287 <p> |
292 <p> |
288 Public method to move the filepointer. |
293 Public method to move the filepointer. |
289 </p><dl> |
294 </p><dl> |
|
295 <dt><i>offset</i></dt> |
|
296 <dd> |
|
297 offset to seek for |
|
298 </dd><dt><i>whence</i></dt> |
|
299 <dd> |
|
300 where to seek from |
|
301 </dd> |
|
302 </dl><dl> |
290 <dt>Raises <b>IOError</b>:</dt> |
303 <dt>Raises <b>IOError</b>:</dt> |
291 <dd> |
304 <dd> |
292 This method is not supported and always raises an |
305 This method is not supported and always raises an |
293 IOError. |
306 IOError. |
294 </dd> |
307 </dd> |
307 <h4>AsyncFile.truncate</h4> |
320 <h4>AsyncFile.truncate</h4> |
308 <b>truncate</b>(<i>size=-1</i>) |
321 <b>truncate</b>(<i>size=-1</i>) |
309 <p> |
322 <p> |
310 Public method to truncate the file. |
323 Public method to truncate the file. |
311 </p><dl> |
324 </p><dl> |
|
325 <dt><i>size</i></dt> |
|
326 <dd> |
|
327 size to truncate to (integer) |
|
328 </dd> |
|
329 </dl><dl> |
312 <dt>Raises <b>IOError</b>:</dt> |
330 <dt>Raises <b>IOError</b>:</dt> |
313 <dd> |
331 <dd> |
314 This method is not supported and always raises an |
332 This method is not supported and always raises an |
315 IOError. |
333 IOError. |
316 </dd> |
334 </dd> |
321 Public method to write a string to the file. |
339 Public method to write a string to the file. |
322 </p><dl> |
340 </p><dl> |
323 <dt><i>s</i></dt> |
341 <dt><i>s</i></dt> |
324 <dd> |
342 <dd> |
325 bytes to be written (string) |
343 bytes to be written (string) |
|
344 </dd> |
|
345 </dl><dl> |
|
346 <dt>Raises <b>socket.error</b>:</dt> |
|
347 <dd> |
|
348 raised to indicate too many send attempts |
326 </dd> |
349 </dd> |
327 </dl><a NAME="AsyncFile.writelines" ID="AsyncFile.writelines"></a> |
350 </dl><a NAME="AsyncFile.writelines" ID="AsyncFile.writelines"></a> |
328 <h4>AsyncFile.writelines</h4> |
351 <h4>AsyncFile.writelines</h4> |
329 <b>writelines</b>(<i>list</i>) |
352 <b>writelines</b>(<i>list</i>) |
330 <p> |
353 <p> |