Matt Joiner <anacro...@gmail.com> added the comment: Steven, patch attached. I lost steam in the unittests with all the meta, suffice it that the names match the file descriptors of the stream sources. i.e. FileType('rb') would give a file with name=0, and so forth. My chosen method also allows other mode flags as well as custom bufsizes.
---------- keywords: +patch Added file: http://bugs.python.org/file24868/argparse-filetype-stdio-modes.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14156> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com