Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
+1 Note that in Python, semi-open intervals are favored, but specifying the last hour of the day is awkward when using datetime (as OP mentioned) and impossible using just time. Using closed intervals is not a good work-around in many cases because it requires the user to be explicit about precision: is the last hour [23:00-23:59], [23:00:00-23:59:00], or [23:00:00.999999-23:59:00.999999]? I offer to write the patch for the C implementation if someone comes up with a patch for datetime.py including tests. ---------- assignee: -> belopolsky components: +Extension Modules stage: -> unit test needed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10427> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com