diff options
Diffstat (limited to 'rfc1982_serial_number.py')
-rwxr-xr-x | rfc1982_serial_number.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rfc1982_serial_number.py b/rfc1982_serial_number.py index bb9988c..7b9b845 100755 --- a/rfc1982_serial_number.py +++ b/rfc1982_serial_number.py @@ -19,15 +19,14 @@ class Serial: by the RFC. The default modulus is 2**32, you can change this by subclassing - the Serial class and overriding the class's modulus variable. The - modulus must be a power of two. + the Serial class and overriding the subclass's modulus variable. + The modulus must be a power of two. See RFC 1982 for discussion of the ways in which Serial numbers do not work like normal integers. In particular, note that there's a corner case in which one can have a pair of Serial numbers I1 and I2 where I1 is neither equal to, less than, nor greater than I2. This is deliberate and is not a bug in the code. See the RFC. - """ modulus = 2 ** 32 |