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, paul.j3, petedmarsh
Date 2015-04-07.22:19:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428445170.65.0.370207323247.issue23884@psf.upfronthosting.co.za>
In-reply-to
Content
It's a possible addition, but I don't have sense of the demand for it.

I wonder, what does the class offer that a function like this doesn't?

    def adate(date_string):
        return datetime.datetime.strptime(date_string,'%Y-%m-%d').date()

I'd be hesitant to add FileType if wasn't already present.  It hasn't aged very well.  We've had bug issues related to v3 binary files, and contexts.   The main feature that FileType (beyond verifying that the file actually does exist) adds is the recognition of '-' as stdin/out.  

By analogy I'm lukewarm about adding a DateType class.
History
Date User Action Args
2015-04-07 22:19:30paul.j3setrecipients: + paul.j3, bethard, petedmarsh
2015-04-07 22:19:30paul.j3setmessageid: <1428445170.65.0.370207323247.issue23884@psf.upfronthosting.co.za>
2015-04-07 22:19:30paul.j3linkissue23884 messages
2015-04-07 22:19:30paul.j3create