We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear author,
Thank you for your excellent work! I have a question:
when the interval is not atomic, eg,
x = P.open(0, 1) | P.closed(3, 4)
I can use x.lower and x.upper get 0 and 4. Which attribute can I use to access 1 and 3?
The text was updated successfully, but these errors were encountered:
Hello,
You can iterate on an interval to get access to the underlying atomic intervals:
>>> x = P.open(0, 1) | P.closed(3, 4) >>> for i in x: print(i.lower, i.upper) 0 1 3 4
To get them all at once, e.g. in a list, you can use list comprehensions, as usual:
>>> lower = [i.lower for i in x] >>> upper = [i.upper for i in x]
Sorry, something went wrong.
Many thanks!
You're welcome ;-)
No branches or pull requests
Dear author,
Thank you for your excellent work! I have a question:
when the interval is not atomic, eg,
x = P.open(0, 1) | P.closed(3, 4)
I can use x.lower and x.upper get 0 and 4. Which attribute can I use to access 1 and 3?
The text was updated successfully, but these errors were encountered: