Hello everyone. First time here, so please be forgiving of any missteps on my 
part. 
This is an idea I have thought about for a while, and I believe it could be 
quite useful.
Would it be possible to enhance the standard range() type to allow for 
elementary operations on ranges?
For example : 
range(10) - range(5) => range(5, 10)
range(3, 5, 2) + range(3, 6, 2) => range(3, 6, 2)

I believe this could be a fair first step into allowing for a whole range of 
mathematical operations in abstract algebra.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/VH3HBAZEKYYBWPBZRXVM3P647JXTUC6K/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to