Public Member Functions | List of all members
basis.argparse.FileType Class Reference
+ Inheritance diagram for basis.argparse.FileType:
+ Collaboration diagram for basis.argparse.FileType:

Public Member Functions

def __call__ (self, string)
 
def __init__ (self, mode='r', bufsize=None)
 
def __repr__ (self)
 

Detailed Description

Factory for creating file object types

Instances of FileType are typically passed as type= arguments to the
ArgumentParser add_argument() method.

Keyword Arguments:
    - mode -- A string indicating how the file is to be opened. Accepts the
        same values as the builtin open() function.
    - bufsize -- The file's desired buffer size. Accepts the same values as
        the builtin open() function.

Definition at line 1138 of file argparse.py.

Constructor & Destructor Documentation

§ __init__()

def basis.argparse.FileType.__init__ (   self,
  mode = 'r',
  bufsize = None 
)

Definition at line 1151 of file argparse.py.

Member Function Documentation

§ __call__()

def basis.argparse.FileType.__call__ (   self,
  string 
)

Definition at line 1155 of file argparse.py.

§ __repr__()

def basis.argparse.FileType.__repr__ (   self)

Definition at line 1177 of file argparse.py.


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