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
Collaboration diagram for warnings.WarningMessage:
Collaboration graph

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


Static Private Attributes


Detailed Description

Holds the result of a single showwarning() call.

Definition at line 269 of file

Constructor & Destructor Documentation

def warnings.WarningMessage.__init__ (   self,
  file = None,
  line = None 

Definition at line 277 of file

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

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))

Here is the call graph for this function:

Member Data Documentation

Definition at line 281 of file

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

Definition at line 273 of file

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: