Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
warnings.WarningMessage Class Reference
Inheritance diagram for warnings.WarningMessage:
Inheritance graph
[legend]
Collaboration diagram for warnings.WarningMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes

 _category_name

Static Private Attributes

tuple _WARNING_DETAILS

Detailed Description

Holds the result of a single showwarning() call.

Definition at line 269 of file warnings.py.


Constructor & Destructor Documentation

def warnings.WarningMessage.__init__ (   self,
  message,
  category,
  filename,
  lineno,
  file = None,
  line = None 
)

Definition at line 277 of file warnings.py.

00277 
00278                     line=None):
00279         local_values = locals()
00280         for attr in self._WARNING_DETAILS:
00281             setattr(self, attr, local_values[attr])
00282         self._category_name = category.__name__ if category else None

Here is the caller graph for this function:


Member Function Documentation

Definition at line 283 of file warnings.py.

00283 
00284     def __str__(self):
00285         return ("{message : %r, category : %r, filename : %r, lineno : %s, "
00286                     "line : %r}" % (self.message, self._category_name,
00287                                     self.filename, self.lineno, self.line))
00288 

Here is the call graph for this function:


Member Data Documentation

Definition at line 281 of file warnings.py.

Initial value:
("message", "category", "filename", "lineno", "file",
                        "line")

Definition at line 273 of file warnings.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


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