kvesteri / intervals

Python tools for handling intervals (ranges of comparable objects).
BSD 3-Clause "New" or "Revised" License
107 stars 17 forks source link

Support for unbounded intervals #21

Closed homeworkprod closed 8 years ago

homeworkprod commented 10 years ago

I'd like to see support for intervals which only define either a lower or upper boundary.

Examples include a shop article that is available only until a certain date (like a discontinued product), or only starting on a certain date (like a newly introduced product). The article would include both a lifetime start date and end date. Making it available for a limited period of time already works (using an interval with two boundaries) as would making it available forever (both start date and end date not being set; this doesn't have to be modeled as an interval, though, as it can be handled before doing any interval membership tests).

kvesteri commented 8 years ago

This is supported now.

homeworkprod commented 8 years ago

Hey @kvesteri, nice to hear that!

Would you mind pointing me to the relevant documentation and/or commits? I didn't find anything related to that.

kvesteri commented 8 years ago

I added docs for those. Check the updated readme.