You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens with later versions as well, but I reproduced from the main branch @ 2384d91
Description
The get_module_constant function from setuptools.depends returns None instead of the actual constant value on Python 3.13.0a1. This works fine on Python 3.12.0.
Expected behavior
The function should work the same on Python 3.12 and 3.13.
How to Reproduce
Create a simple Python file with a constant in it.
Run setuptools.depends:get_module_constant to retrieve it.
This should use dis.opmap rather than hardcoding the numeric values.
However, there is also no guarantee that e.g. LOAD_CONST will continue to be used for all loads of a constant -- CPython could, for example, add LOAD_CONST_STR that load string constants. So even dis.opmap isn't future-proof.
setuptools version
65.6.3.post20230109
Python version
3.13.0a1
OS
Fedora Linux
Additional environment information
This happens with later versions as well, but I reproduced from the main branch @ 2384d91
Description
The
get_module_constant
function fromsetuptools.depends
returnsNone
instead of the actual constant value on Python 3.13.0a1. This works fine on Python 3.12.0.Expected behavior
The function should work the same on Python 3.12 and 3.13.
How to Reproduce
setuptools.depends:get_module_constant
to retrieve it.Output
The text was updated successfully, but these errors were encountered: