Skip to content

Commit ace1814

Browse files
milanprotimfel
authored andcommitted
Added hexversion to sys module
1 parent 298ee69 commit ace1814

File tree

1 file changed

+5
-0
lines changed
  • graalpython/lib-graalpython

1 file changed

+5
-0
lines changed

graalpython/lib-graalpython/sys.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ def make_implementation_info():
5252
del make_implementation_info
5353
del __gmultiarch
5454
version_info = implementation.version
55+
hexversion = ((version_info.major << 24) |
56+
(version_info.minor << 16) |
57+
(version_info.micro << 8) |
58+
(0 << 4) |
59+
(version_info.serial << 0))
5560

5661

5762
def make_flags_class():

0 commit comments

Comments
 (0)