Table of Contents

Eric3 Source Documentation: Debugger  
-
{>csydZ	dkZdklZlZlZlZdZ#dfdYZdefdYZ	dS(sA
Module implementing an asynchronous interface for the debugger.
N(sSIGNALsPYSIGNALsQObjectsQSocketNotifiercs=y|i}Wnd}nX |SdS(s
    Module function to check for data to be written.
    
    Arguments
    
        file -- the file object to be checked (file)
        
    Returns
    
        flag indicating if there is data wating (int)
    iN(sfilespendingWritespending(sfilespending((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysAsyncPendingWrites
s	AsyncFilecs#tZdZ&(dZ=dZKdZWdZadZjdZpdZ	zdZ
d	d
Zd	dZd	dZ
d
dZdZd	dZdZdZRS(s?
    Class wrapping a socket object with a file interface.
    csR(35d|_6||_7||_8||_9d|_;d|_dS(s
        Constructor
        
        Arguments
        
            sock -- the socket object being wrapped
            
            mode -- mode of this file (string)
            
            name -- name of this file (string)
        isN(sselfsclosedssocksmodesnames	softspaceswpending(sselfssocksmodesname((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys__init__(scs-=GH||ijoItdndS(s
        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.
        
        Arguments
        
            mode -- the mode to be checked (string)
        s[Errno 9] Bad file descriptorN(smodesselfsIOError(sselfsmode((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys	checkMode=s
csGKRS|o3T|ii|i| }U|i||_ndS(s
        Private method to write a specific number of pending bytes.
        
        Arguments
        
            n -- the number of bytes to be written (int)
        N(snsselfssockssendswpendingssent(sselfsnssent((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysnWriteKs
cs!W^_|iiddSdS(s
        Public method that returns the number of bytes waiting to be written.
        
        Returns
        
            the number of bytes to be written (int)
        s
iN(sselfswpendingsrfind(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pyspendingWriteWscsEade|io-f|ig|iihd|_ndS(s2
        Public method to close the file.
        iN(sselfsclosedsflushssocksclose(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pyscloseas

cs#jmn|it|idS(s;
        Public method to write all pending bytes.
        N(sselfsnWriteslenswpending(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysflushjscspwxdSdS(s
        Public method to indicate whether a tty interface is supported.
        
        Returns
        
            always false
        iN((sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysisattypscsz|iiSdS(sz
        Public method returning the file number.
        
        Returns
        
            file number (int)
        N(sselfssocksfileno(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysfilenozsicsJ|id|djo
d}n|ii|SdS(s
        Public method to read bytes from this file.
        
        Arguments
        
            size -- maximum number of bytes to be read (int)
            
        Returns
        
            the bytes read (any)
        srii NN(sselfs	checkModessizessocksrecv(sselfssize((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysreads

cs|id|djo
d}n|ii|ti}|id}|djo|d}nt
|}|ii|SdS(s
        Public method to read a line from this file.
        
        Arguments
        
            size -- maximum number of bytes to be read (int)
            
        Returns
        
            one line of text up to size bytes (string)
            
        Note
        
            This method will not block and may return only a part of a
            line if that is all that is available.
        srii Ns
iN(sselfs	checkModessizessocksrecvssocketsMSG_PEEKslinesfindseolslen(sselfssizeslineseol((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysreadlines
csg}|}|i|}t|}x|djon|i||djo)||}|djoPnn|i|}t|}q?W|SdS(s
        Public method to read all lines from this file.
        
        Arguments
        
            sizehint -- hint of the numbers of bytes to be read (int)
            
        Returns
        
            list of lines read (list of strings)
        iN(	slinesssizehintsroomsselfsreadlineslineslenslinelensappend(sselfssizehintsroomslinelenslineslines((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys	readliness		
icstddS(s
        Public method to move the filepointer.
        
        This method is not supported and always raises an
        IOError.
        s[Errno 29] Illegal seekN(sIOError(sselfsoffsetswhence((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysseekscstddS(s
        Public method to get the filepointer position.
        
        This method is not supported and always raises an
        IOError.
        s[Errno 29] Illegal seekN(sIOError(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pystellscstddS(s
        Public method to truncate the file.
        
        This method is not supported and always raises an
        IOError.
        s[Errno 29] Illegal seekN(sIOError(sselfssize((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pystruncatescsC|id|i||_|i|idS(s
        Public method to write a string to the file.
        
        Arguments
        
            str -- bytes to be written (string)
        swN(sselfs	checkModeswpendingsstrsnWritespendingWrite(sselfsstr((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pyswritescst|i|dS(s
        Public method to write a list of strings to the file.
        
        Arguments
        
            list -- the list to be written (list of string)
        N(smapsselfswriteslist(sselfslist((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys
writeliness(s__name__s
__module__s__doc__s__init__s	checkModesnWritespendingWritesclosesflushsisattysfilenosreadsreadlines	readlinessseekstellstruncateswrites
writelines(((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys	AsyncFile#s"
	

& 			sAsyncIOcswtZdZedZ)dZ2dZBdZMdZndZ	}dZ
dZRS(	s
    Class implementing asynchronous reading and writing.
    
    It implements asynchronous reading and writing using the Qt event
    loop.  
    
    Signals
    
        lineReady -- emitted when a complete line has been read
        
        gotEOF -- emitted if EOF was read
    cs*#$ti||'|idS(s
        Constructor
        
        Arguments
        
            parent -- the optional parent of this object (QObject)
        N(sQObjects__init__sselfsparents
disconnect(sselfsparent((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys__init__scs:),-t|_.t|_/t|_0t|_dS(sE
        Public method to disconnect any current connection.
        N(sNonesselfsreadsnsreadfdswritesnswritefd(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys
disconnect)s
cs:2;<d|_=||_?d|_@||_dS(s
        Public method called to set the descriptors for the connection.
        
        Arguments
        
            rfd -- file descriptor of the input file (int)
            
            wfd -- file descriptor of the output file (int)
        sN(sselfsrbufsrfdsreadfdswbufswfdswritefd(sselfsrfdswfd((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pyssetDescriptors2s
	csBEFt|iiti|_G|ii|itd|iIt|i	iti
|_J|ii|itd|iK|i
dS(sU
        Public method to set up the socket notifiers for the Qt event loop.
        sactivated(int)N(sQSocketNotifiersselfsreadfdsfilenosReadsreadsnsconnectsSIGNALs	readReadyswritefdsWriteswritesns
writeReadyssetWriteNotifier(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pyssetNotifiersBs!%!%csMTZy[|ii}Wn\]dSnX_t|djo$`|itdfadSnc|i||_f|iid}hxqh|djo`i|i|d }j|i|d|_k|itd|fl|iid}qWdS(s
        Protected method called when there is data ready to be read.
        
        Arguments
        
            fd -- file descriptor of the file that has data to be read (int)
        NisgotEOFs
is	lineReady(sselfsreadfdsreadlinesgotslensemitsPYSIGNALsrbufsfindseolss(sselfsfdsssgotseol((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys	readReadyMs cs`nuv|ii|iw|iixd|_z|itj	o{|indS(s
        Protected method called when we are ready to write data.
        
        Arguments
        
            fd -- file descriptor of the file that has data to be written (int)
        sN(sselfswritefdswriteswbufsflushswritesnsNonessetWriteNotifier(sselfsfd((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys
writeReadynscs5}t|io|iidndS(s
        Private method called to disable the write notifier.

        If there is no data to be written, the write notifier
        will be diabled.
        iN(sAsyncPendingWritesselfswritefdswritesns
setEnabled(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pyssetWriteNotifier}scsG|itj	o|iidn|i||_dS(s
        Public method to write a string.
        
        Arguments
        
            s -- the data to be written (string)
        iN(sselfswritesnsNones
setEnabledswbufss(sselfss((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pyswrites(s__name__s
__module__s__doc__sNones__init__s
disconnectssetDescriptorsssetNotifierss	readReadys
writeReadyssetWriteNotifierswrite(((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pysAsyncIOs
	!
(
s__doc__ssocketsqtsSIGNALsPYSIGNALsQObjectsQSocketNotifiersAsyncPendingWrites	AsyncFilesAsyncIO(sAsyncIOsPYSIGNALsQSocketNotifierssocketsAsyncPendingWritesSIGNALs	AsyncFilesQObject((s>/home/detlev/Development/Python/Eric/eric3/Debugger/AsyncIO.pys?	s
"

Table of Contents

This document was automatically generated by HappyDoc version 2.1