Module implementing an asynchronous file like socket interface for the debugger.
None |
AsyncFile | Class wrapping a socket object with a file interface. |
AsyncPendingWrite | Module function to check for data to be written. |
Class wrapping a socket object with a file interface.
maxbuffersize |
maxtries |
None |
AsyncFile | Constructor |
__checkMode | Private method to check the mode. |
__nWrite | Private method to write a specific number of pending bytes. |
close | Public method to close the file. |
fileno | Public method returning the file number. |
flush | Public method to write all pending bytes. |
isatty | Public method to indicate whether a tty interface is supported. |
pendingWrite | Public method that returns the number of bytes waiting to be written. |
read | Public method to read bytes from this file. |
read_p | Public method to read bytes from this file. |
readline | Public method to read one line from this file. |
readline_p | Public method to read a line from this file. |
readlines | Public method to read all lines from this file. |
seek | Public method to move the filepointer. |
tell | Public method to get the filepointer position. |
truncate | Public method to truncate the file. |
write | Public method to write a string to the file. |
writelines | Public method to write a list of strings to the file. |
None |
Constructor
Private method to check the mode.
This method checks, if an operation is permitted according to the mode of the file. If it is not, an IOError is raised.
Private method to write a specific number of pending bytes.
Public method to close the file.
Public method returning the file number.
Public method to write all pending bytes.
Public method to indicate whether a tty interface is supported.
Public method that returns the number of bytes waiting to be written.
Public method to read bytes from this file.
Public method to read bytes from this file.
Public method to read one line from this file.
Public method to read a line from this file.
Note: This method will not block and may return only a part of a line if that is all that is available.
Public method to read all lines from this file.
Public method to move the filepointer.
Public method to get the filepointer position.
Public method to truncate the file.
Public method to write a string to the file.
Public method to write a list of strings to the file.
Module function to check for data to be written.