class documentation

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.
  • encoding -- The file's encoding. Accepts the same values as the
    builtin open() function.
  • errors -- A string indicating how encoding and decoding errors are to
    be handled. Accepts the same value as the builtin open() function.
Method __call__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Instance Variable _bufsize Undocumented
Instance Variable _encoding Undocumented
Instance Variable _errors Undocumented
Instance Variable _mode Undocumented
def __call__(self, string): (source)

Undocumented

def __init__(self, mode='r', bufsize=-1, encoding=None, errors=None): (source)

Undocumented

def __repr__(self): (source)

Undocumented

_bufsize = (source)

Undocumented

_encoding = (source)

Undocumented

Undocumented

Undocumented