Menu

#2 Support for MIN and MAX in range size constraints

1.0
open
constraint (1)
2015-09-08
2015-08-25
No

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.

1 Attachments

Related

Tickets: #2

Discussion

  • Ilya Etingof

    Ilya Etingof - 2015-09-08

    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?

     
  • Ilya Etingof

    Ilya Etingof - 2015-09-08
    • assigned_to: Ilya Etingof
     
    • Frank Zonneveld

      Frank Zonneveld - 2015-09-08

      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:

      • assigned_to: Ilya Etingof

      Status: open
      Milestone: 1.0
      Labels: constraint
      Created: Tue Aug 25, 2015 07:29 PM UTC by Frank Zonneveld
      Last Updated: Tue Sep 08, 2015 07:30 PM UTC
      Owner: Ilya Etingof
      Attachments:

      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.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/pyasn1/tickets/2/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #2


Log in to post a comment.