Support for MIN and MAX in range size constraints
Brought to you by:
elie
Helped at asn1ate on github. For this project we need support for MIN. MAX in size and range constraint. In the attachement added an implementation for supporting MIN, MAX values in pyasn1.
Missing is the modifications to the pyasn1-modules.
Thank you for your submission!
However why can't we use float('inf') for MAX and float('-inf') for MIN?
I've just updated web page explaining that possibility.
What do you think?
This is definitely much easier and does not even require any change in the
code.
The only thing is that it is a little smelly is to compare the INTEGER with
a floating type, although it will not make a difference for the comparison.
But I fully agree much simpler than the patch I came up with,
Thanks Frank,
2015-09-08 21:30 GMT+02:00 Ilya Etingof elie@users.sf.net:
Related
Tickets: #2