Skip to content
  • Mathieu Bridon's avatar
    python: Explicitly add the 'L' suffix on Python 3 · ad363913
    Mathieu Bridon authored and Eric Engestrom's avatar Eric Engestrom committed
    
    
    Python 2 had two integer types: int and long. Python 3 dropped the
    latter, as it made the int type automatically support bigger numbers.
    
    As a result, Python 3 lost the 'L' suffix on integer litterals.
    
    This probably doesn't make much difference when compiling the generated
    C code, but adding it explicitly means that both Python 2 and 3 generate
    the exact same C code anyway, which makes it easier to compare and check
    for discrepencies when moving to Python 3.
    
    Signed-off-by: default avatarMathieu Bridon <bochecha@daitauha.fr>
    Reviewed-by: default avatarDylan Baker <dylan@pnwbakers.com>
    ad363913