Skip to content
Snippets Groups Projects
Select Git revision
  • f1c3816ddf19076f8c16fa75a6846e32eba37fcb
  • main default protected
  • 3.10
  • 3.11
  • revert-15688-bpo-38031-_io-FileIO-opener-crash
  • 3.8
  • 3.9
  • 3.7
  • enum-fix_auto
  • branch-v3.11.0
  • backport-c3648f4-3.11
  • gh-93963/remove-importlib-resources-abcs
  • refactor-wait_for
  • shared-testcase
  • v3.12.0a2
  • v3.12.0a1
  • v3.11.0
  • v3.8.15
  • v3.9.15
  • v3.10.8
  • v3.7.15
  • v3.11.0rc2
  • v3.8.14
  • v3.9.14
  • v3.7.14
  • v3.10.7
  • v3.11.0rc1
  • v3.10.6
  • v3.11.0b5
  • v3.11.0b4
  • v3.10.5
  • v3.11.0b3
  • v3.11.0b2
  • v3.9.13
34 results

patchlevel.h

Blame
  • patchlevel.h 1.27 KiB
    
    /* Python version identification scheme.
    
       When the major or minor version changes, the VERSION variable in
       configure.ac must also be changed.
    
       There is also (independent) API version information in modsupport.h.
    */
    
    /* Values for PY_RELEASE_LEVEL */
    #define PY_RELEASE_LEVEL_ALPHA  0xA
    #define PY_RELEASE_LEVEL_BETA   0xB
    #define PY_RELEASE_LEVEL_GAMMA  0xC     /* For release candidates */
    #define PY_RELEASE_LEVEL_FINAL  0xF     /* Serial should be 0 here */
                                            /* Higher for patch releases */
    
    /* Version parsed out into numeric values */
    /*--start constants--*/
    #define PY_MAJOR_VERSION        3
    #define PY_MINOR_VERSION        8
    #define PY_MICRO_VERSION        13
    #define PY_RELEASE_LEVEL        PY_RELEASE_LEVEL_FINAL
    #define PY_RELEASE_SERIAL       0
    
    /* Version as a string */
    #define PY_VERSION              "3.8.13"
    /*--end constants--*/
    
    /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
       Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
    #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
                            (PY_MINOR_VERSION << 16) | \
                            (PY_MICRO_VERSION <<  8) | \
                            (PY_RELEASE_LEVEL <<  4) | \
                            (PY_RELEASE_SERIAL << 0))