Skip to content
New issue

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

Convert range() objects using 'integer_interval' from cd 'interval1' #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tkw1536
Copy link
Member

@tkw1536 tkw1536 commented May 21, 2020

This issue adds translation for the range() class to the DefaultConverter. Note that a python range(start, stop) does not include the value of stop, whereas the 'integer_interval' symbol does. The converter thus has to add or subtract one.

Fixes #29.

This issue adds translation for the range() class to the
DefaultConverter. Note that a python range(start, stop) does not include
the value of stop, whereas the 'integer_interval' symbol does. The
converter thus has to add or subtract one.

Fixes OpenMath#29.
Copy link

@MarcoCostantini MarcoCostantini left a comment

Choose a reason for hiding this comment

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

include also a change in the file https://github.com/OpenMath/py-openmath/blob/master/README.rst
add the ranges to the list of data types converted by default

@tkw1536
Copy link
Member Author

tkw1536 commented May 22, 2020

Thanks, I've updated the README.

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.

please implement OpenMath integer_interval as Python range
2 participants