Skip to content

Conversation

@tuxzz
Copy link
Contributor

@tuxzz tuxzz commented Jun 3, 2017

make interval overlap faster and cleaner

@tuxzz
Copy link
Contributor Author

tuxzz commented Jun 3, 2017

The build is only failing because of the issue between coverage and Python 3.2, not my fault.

(self.begin <= begin < self.end) or
(self.begin < end <= self.end)
)
return begin < self.end and end > self.begin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More info about why this works: https://stackoverflow.com/a/3269471

@chaimleib chaimleib changed the base branch from master to dev December 11, 2017 04:56
@chaimleib
Copy link
Owner

Thanks! Very cool!

@chaimleib chaimleib merged commit 7fd3e7d into chaimleib:dev Dec 11, 2017
chaimleib added a commit that referenced this pull request Dec 11, 2017
faster interval overlaps #56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants