155 </p><dl> |
155 </p><dl> |
156 <dt><i>mode</i></dt> |
156 <dt><i>mode</i></dt> |
157 <dd> |
157 <dd> |
158 the mode to be checked (string) |
158 the mode to be checked (string) |
159 </dd> |
159 </dd> |
|
160 </dl><dl> |
|
161 <dt>Raises <b>IOError</b>:</dt> |
|
162 <dd> |
|
163 raised to indicate a bad file descriptor |
|
164 </dd> |
160 </dl><a NAME="AsyncFile.__nWrite" ID="AsyncFile.__nWrite"></a> |
165 </dl><a NAME="AsyncFile.__nWrite" ID="AsyncFile.__nWrite"></a> |
161 <h4>AsyncFile.__nWrite</h4> |
166 <h4>AsyncFile.__nWrite</h4> |
162 <b>__nWrite</b>(<i>n</i>) |
167 <b>__nWrite</b>(<i>n</i>) |
163 <p> |
168 <p> |
164 Private method to write a specific number of pending bytes. |
169 Private method to write a specific number of pending bytes. |
373 Public method to write a string to the file. |
378 Public method to write a string to the file. |
374 </p><dl> |
379 </p><dl> |
375 <dt><i>s</i></dt> |
380 <dt><i>s</i></dt> |
376 <dd> |
381 <dd> |
377 bytes to be written (string) |
382 bytes to be written (string) |
|
383 </dd> |
|
384 </dl><dl> |
|
385 <dt>Raises <b>socket.error</b>:</dt> |
|
386 <dd> |
|
387 raised to indicate too many send attempts |
378 </dd> |
388 </dd> |
379 </dl><a NAME="AsyncFile.writelines" ID="AsyncFile.writelines"></a> |
389 </dl><a NAME="AsyncFile.writelines" ID="AsyncFile.writelines"></a> |
380 <h4>AsyncFile.writelines</h4> |
390 <h4>AsyncFile.writelines</h4> |
381 <b>writelines</b>(<i>list</i>) |
391 <b>writelines</b>(<i>list</i>) |
382 <p> |
392 <p> |