Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
email.header._Accumulator Class Reference

List of all members.

Public Member Functions

def __init__
def push
def pop_from
def pop
def __len__
def __str__
def reset
def is_onlyws
def part_count

Private Attributes

 _initial_size

Detailed Description

Definition at line 504 of file header.py.


Constructor & Destructor Documentation

def email.header._Accumulator.__init__ (   self,
  initial_size = 0 
)

Definition at line 506 of file header.py.

00506 
00507     def __init__(self, initial_size=0):
00508         self._initial_size = initial_size
00509         super().__init__()

Here is the caller graph for this function:


Member Function Documentation

Definition at line 523 of file header.py.

00523 
00524     def __len__(self):
00525         return sum((len(fws)+len(part) for fws, part in self),
00526                    self._initial_size)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 527 of file header.py.

00527 
00528     def __str__(self):
00529         return EMPTYSTRING.join((EMPTYSTRING.join((fws, part))
00530                                 for fws, part in self))

Definition at line 537 of file header.py.

00537 
00538     def is_onlyws(self):
00539         return self._initial_size==0 and (not self or str(self).isspace())

Here is the call graph for this function:

Definition at line 540 of file header.py.

00540 
00541     def part_count(self):
00542         return super().__len__()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 518 of file header.py.

00518 
00519     def pop(self):
00520         if self.part_count()==0:
00521             return ('', '')
00522         return super().pop()

Here is the call graph for this function:

Here is the caller graph for this function:

def email.header._Accumulator.pop_from (   self,
  i = 0 
)

Definition at line 513 of file header.py.

00513 
00514     def pop_from(self, i=0):
00515         popped = self[i:]
00516         self[i:] = []
00517         return popped

def email.header._Accumulator.push (   self,
  fws,
  string 
)

Definition at line 510 of file header.py.

00510 
00511     def push(self, fws, string):
00512         self.append((fws, string))

Here is the call graph for this function:

Here is the caller graph for this function:

def email.header._Accumulator.reset (   self,
  startval = None 
)

Definition at line 531 of file header.py.

00531 
00532     def reset(self, startval=None):
00533         if startval is None:
00534             startval = []
00535         self[:] = startval
00536         self._initial_size = 0

Here is the caller graph for this function:


Member Data Documentation

Definition at line 507 of file header.py.


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