Message52186
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. |
|
Date |
User |
Action |
Args |
2007-08-23 15:57:31 | admin | link | issue1679204 messages |
2007-08-23 15:57:31 | admin | create | |
|