Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
4d79003f
Commit
4d79003f
authored
Aug 09, 2019
by
Jeroen Demeyer
Committed by
Stefan Behnel
Aug 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PY_HEX_VERSION -> PY_VERSION_HEX (GH-3071)
parent
d4610f39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CHANGES.rst
CHANGES.rst
+1
-1
Cython/Utils.py
Cython/Utils.py
+1
-1
No files found.
CHANGES.rst
View file @
4d79003f
...
@@ -360,7 +360,7 @@ Features added
...
@@ -360,7 +360,7 @@ Features added
In this case, it is also automatically mapped to ``%r`` in Python 2.x.
In this case, it is also automatically mapped to ``%r`` in Python 2.x.
* New C macro ``CYTHON_HEX_VERSION`` to access Cython'
s
version
in
the
same
style
as
* New C macro ``CYTHON_HEX_VERSION`` to access Cython'
s
version
in
the
same
style
as
``
PY_
HEX_VERSION
``.
``
PY_
VERSION_HEX
``.
*
Constants
in
``
libc
.
math
``
are
now
declared
as
``
const
``
to
simplify
their
handling
.
*
Constants
in
``
libc
.
math
``
are
now
declared
as
``
const
``
to
simplify
their
handling
.
...
...
Cython/Utils.py
View file @
4d79003f
...
@@ -442,7 +442,7 @@ def raise_error_if_module_name_forbidden(full_module_name):
...
@@ -442,7 +442,7 @@ def raise_error_if_module_name_forbidden(full_module_name):
def
build_hex_version
(
version_string
):
def
build_hex_version
(
version_string
):
"""
"""
Parse and translate '4.3a1' into the readable hex representation '0x040300A1' (like PY_
HEX_VERSION
).
Parse and translate '4.3a1' into the readable hex representation '0x040300A1' (like PY_
VERSION_HEX
).
"""
"""
# First, parse '4.12a1' into [4, 12, 0, 0xA01].
# First, parse '4.12a1' into [4, 12, 0, 0xA01].
digits
=
[]
digits
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment