[Python-ideas] range() manipulations

2022-08-01 Thread arvindsistla
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 : ra

[Python-ideas] Re: range() manipulations

2022-08-01 Thread arvindsistla
Thanks so much Christopher. I have several ideas for use cases, but you're right, it's probably better off as a library. That's exactly what I'll do now. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-idea

[Python-ideas] Re: range() manipulations

2022-08-01 Thread arvindsistla
You're right, sets does make sense in these specific use cases, but I want to preserve order too. You're also right, a custom class is a much better idea. Thanks so much. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an em