class documentation
class FileType(object): (source)
Constructor: FileType(mode, bufsize, encoding, errors)
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 |