class_docstr: An object that parses version numbers such as::
  
      12.2.5b
  
  The filter supports a limited subset of PEP 386 versions including::
  
      1
      1.2
      1.2c
      1.2c3
      1.2.3
      1.2.3a
      1.2.3b4
      10.7.5rc1
      999.999.999c999
class_docstr_tok: ["An","object","that","parses","version","numbers","such","as",":",":","12.2.5b","The","filter","supports","a","limited","subset","of","PEP","386","versions","including",":",":","1","1.2","1.2c","1.2c3","1.2.3","1.2.3a","1.2.3b4","10.7.5rc1","999.999.999c999"]
code: def from_int(cls, n):
      major = (n & (1023 << 34)) >> 34
      minor = (n & (1023 << 24)) >> 24
      release = (n & (1023 << 14)) >> 14
      exbits = (n & (7 << 10)) >> 10
      ex = cls._bits_ex.get(exbits, "z")
      exnum = n & 1023
  
      return cls(major, minor, release, ex, exnum)
  
file_path: whoosh/src/whoosh/util/versions.py
imports: from whoosh.util.text import rcompile
label_desc: Use image node_id 3 for calling the SimpleVersion obj's underlying member method code with example usage: obj.from_int(cls, n) and returns: cls