Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
asynchat.simple_producer Class Reference

List of all members.

Public Member Functions

def __init__
def more

Public Attributes

 data
 buffer_size

Detailed Description

Definition at line 276 of file asynchat.py.


Constructor & Destructor Documentation

def asynchat.simple_producer.__init__ (   self,
  data,
  buffer_size = 512 
)

Definition at line 278 of file asynchat.py.

00278 
00279     def __init__ (self, data, buffer_size=512):
00280         self.data = data
00281         self.buffer_size = buffer_size

Here is the caller graph for this function:


Member Function Documentation

Definition at line 282 of file asynchat.py.

00282 
00283     def more (self):
00284         if len (self.data) > self.buffer_size:
00285             result = self.data[:self.buffer_size]
00286             self.data = self.data[self.buffer_size:]
00287             return result
00288         else:
00289             result = self.data
00290             self.data = b''
00291             return result


Member Data Documentation

Definition at line 280 of file asynchat.py.

Definition at line 279 of file asynchat.py.


The documentation for this class was generated from the following file: