Andrew Barnert wrote:
> On Feb 29, 2020, at 10:03, Steve Jorgensen [email protected] wrote:
> > In that case, I still do think that this kind of
> > functionality is of enough general use to have something for it in the 
> > Python standard
> > library, though it should probably be through the introduction of a new 
> > type (possibly
> > named something like "bounds") since neither range nor slice is really a 
> > good fit. I'm
> > thinking it should/would be much more limited in scope than intervaltree 
> > (which does look
> > really nice).
> > There are a ton of different libraries on PyPI for interval/discrete 
> > range/range
> values and sets and algebra and/or arithmetic on them, not to mention related 
> things like
> saturating values within bounds. They all provide different functionality 
> with different
> interfaces. Why do we need to pick one (or redesign and reimplement one 
> without even
> looking for it) in particular?

To me, it just feels like a missing core feature. What I'm talking about is 
something far simpler and less ambitious than what I would expect to see in an 
external addon but something that might likely be useful to any/all such things.

I have decided that it makes more sense for me to publish something like what 
I'm looking for in a library of tools though, and then use that as the basis 
for a new post after I have that ready.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/5JQXHETABMXTKPGDLDCAWQS3W3C7LBK4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to