Is a merge interval function available?

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Feb 10 19:26:40 EST 2010


On Wed, 10 Feb 2010 15:23:42 -0800, Peng Yu wrote:

> I'm wondering there is already a function in python library that can
> merge intervals. For example, if I have the following intervals ('[' and
> ']' means closed interval as in
> http://en.wikipedia.org/wiki/Interval_(mathematics)
#Excluding_the_endpoints)

Not in the standard library. There may be third-party libraries that do 
it. Did you google "python interval"?




-- 
Steven



More information about the Python-list mailing list