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 collinwinter
Recipients
Date 2007-03-12.18:58:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
As discussed in http://mail.python.org/pipermail/python-ideas/2007-March/000320.html, this patch adds a __contains__ method to datetime.date objects:

datetime(2007, 3, 4, x, y, z) in date(2007, 3, 4) -> True
datetime(2007, 3, 5, x, y, z) in date(2007, 3, 4) -> False

Trying to see if a date contains anything other than a datetime results in a TypeError. Patch includes docs and tests.
History
Date User Action Args
2007-08-23 15:57:31adminlinkissue1679204 messages
2007-08-23 15:57:31admincreate