Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_argparse.WFile Class Reference
Inheritance diagram for test.test_argparse.WFile:
Inheritance graph
[legend]
Collaboration diagram for test.test_argparse.WFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __eq__

Public Attributes

 name
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

tuple seen = set()

Detailed Description

Definition at line 1488 of file test_argparse.py.


Constructor & Destructor Documentation

def test.test_argparse.WFile.__init__ (   self,
  name 
)

Definition at line 1491 of file test_argparse.py.

01491 
01492     def __init__(self, name):
01493         self.name = name

Here is the caller graph for this function:


Member Function Documentation

def test.test_argparse.WFile.__eq__ (   self,
  other 
)

Definition at line 1494 of file test_argparse.py.

01494 
01495     def __eq__(self, other):
01496         if other not in self.seen:
01497             text = 'Check that file is writable.'
01498             if 'b' in other.mode:
01499                 text = text.encode('ascii')
01500             other.write(text)
01501             other.close()
01502             self.seen.add(other)
01503         return self.name == other.name
01504 


Member Data Documentation

Definition at line 1492 of file test_argparse.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

tuple test.test_argparse.WFile.seen = set() [static]

Definition at line 1489 of file test_argparse.py.


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