Open dbgoodman opened 10 years ago
Hi @dbgoodman,
Thanks for your comment.
I guess changing the Interval.__repr__()
method to include the repr()
of its lower and upper values instead of the str()
might make this more obvious. Feel free to submit a pull request with this change and a test otherwise I'll take a look when I get a chance.
Inti
Currently it's very difficult to tell if a user accidentally passed in strings to
pyinterval.closedopen
. For instance, in the case of:The repr() and str() modules don't show the quotes around the values, so it looks like you passed in integers. The only way to tell is by using
I understand you want the module to be type-agnostic, which is admirable, but making repr() look like:
instead of:
might make it easier to debug problems.