Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
unittest.runner._WritelnDecorator Class Reference
Inheritance diagram for unittest.runner._WritelnDecorator:
Inheritance graph
Collaboration diagram for unittest.runner._WritelnDecorator:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __getattr__
def writeln

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Used to decorate file-like objects with a handy 'writeln' method

Definition at line 13 of file

Constructor & Destructor Documentation

def unittest.runner._WritelnDecorator.__init__ (   self,

Definition at line 15 of file

00016     def __init__(self,stream):
00017 = stream

Here is the caller graph for this function:

Member Function Documentation

Definition at line 18 of file

00019     def __getattr__(self, attr):
00020         if attr in ('stream', '__getstate__'):
00021             raise AttributeError(attr)
00022         return getattr(,attr)

Here is the call graph for this function:

def unittest.runner._WritelnDecorator.writeln (   self,
  arg = None 

Definition at line 23 of file

00024     def writeln(self, arg=None):
00025         if arg:
00026             self.write(arg)
00027         self.write('\n') # text-mode streams translate to \r\n if needed

Member Data Documentation

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 16 of file

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