This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients bethard, bob.ippolito, bradengroom, derelbenkoenig, paul.j3, rhettinger
Date 2018-10-18.16:57:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539881850.35.0.788709270274.issue35005@psf.upfronthosting.co.za>
In-reply-to
Content
Adding a new 'type' function or factor is certainly possible, and probably will be free of backward compatibility issues.  But so far no other custom type has been added to argparse.

https://bugs.python.org/issue23884 - rejects adding a DateTime class

https://bugs.python.org/issue22884 - there are several outstanding issue dealing with the FileType class.  That hasn't aged well, since file IO standards have changed over the years.
History
Date User Action Args
2018-10-18 16:57:30paul.j3setrecipients: + paul.j3, rhettinger, bob.ippolito, bethard, bradengroom, derelbenkoenig
2018-10-18 16:57:30paul.j3setmessageid: <1539881850.35.0.788709270274.issue35005@psf.upfronthosting.co.za>
2018-10-18 16:57:30paul.j3linkissue35005 messages
2018-10-18 16:57:30paul.j3create